client

package
v0.0.0-...-9678cfa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cobra.Command

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) Run

func (c *Client) Run() error

type Config

type Config struct {
	SvrAddr   string  `mapstructure:"server-addr"`
	Token     string  `mapstructure:"token"`
	Multiplex bool    `mapstructure:"multiplex"`
	Proxys    []Proxy `mapstructure:"proxys"`
}

func LoadConfig

func LoadConfig(cfgFile string, args []string) (config Config, err error)

type Proxy

type Proxy struct {
	ProxyName  string `mapstructure:"proxy-name"`
	Subdomain  string `mapstructure:"subdomain"`
	RemotePort int    `mapstructure:"remote-port"`
	LocalPort  int    `mapstructure:"local-port"`
	SpeedLimit string `mapstructure:"speed-limit"`
	ProxyType  string `mapstructure:"proxy-type"`
}

type Proxyer

type Proxyer struct {
	// contains filtered or unexported fields
}

func (*Proxyer) Run

func (f *Proxyer) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳