Documentation
¶
Index ¶
- Variables
- func FixHost(host string) string
- type Client
- func (c *Client) Close()
- func (c *Client) GetController() (*controller.Client, error)
- func (c *Client) GetDataChannelStat() (string, error)
- func (c *Client) GetDchan() (*dchan.Client, error)
- func (c *Client) GetRoute() (*route.Route, error)
- func (c *Client) NeedLogin()
- func (c *Client) OnAllBackoff()
- func (c *Client) OnNewDC(ports []int)
- func (c *Client) Relogin()
- func (c *Client) Run()
- func (c *Client) SaveRoute() error
- func (c *Client) ShowControllerStage() ([]controller.StageInfo, error)
- type Config
- type DchanDelegate
- type HTTP
- type Shell
- type Tun
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotReady = logex.Define("not ready")
)
View Source
var Slogan = `
_ _______ ________
/ |/ / __/ |/_/_ __/
/ / _/_> < / /
/_/|_/___/_/|_| /_/
`
Functions ¶
Types ¶
type Client ¶
type Client struct { HTTP *HTTP // contains filtered or unexported fields }
func (*Client) GetController ¶
func (c *Client) GetController() (*controller.Client, error)
func (*Client) GetDataChannelStat ¶
func (*Client) OnAllBackoff ¶
func (c *Client) OnAllBackoff()
func (*Client) ShowControllerStage ¶
func (c *Client) ShowControllerStage() ([]controller.StageInfo, error)
type Config ¶
type Config struct { Debug bool DebugStack bool `default:"true"` DebugFlow bool DevId int UserName string Password string AesKey string `name:"key"` RouteFile string `default:"routes.conf"` Pprof string `default:":10060"` Sock string `desc:"unixsock for interactive with" default:"/tmp/next.sock"` Host2 string `name:"host"` Host string `type:"[0]"` }
func (*Config) FlaglyDesc ¶
func (*Config) FlaglyVerify ¶
func (*Config) GetHostName ¶
type DchanDelegate ¶
type DchanDelegate struct {
// contains filtered or unexported fields
}
func (*DchanDelegate) OnAllBackoff ¶
func (d *DchanDelegate) OnAllBackoff(cli *dchan.Client)
func (*DchanDelegate) OnLinkRefused ¶
func (d *DchanDelegate) OnLinkRefused()
type HTTP ¶
type Tun ¶
type Tun struct {
// contains filtered or unexported fields
}
func (*Tun) ConfigUpdate ¶
func (t *Tun) ConfigUpdate(remoteCfg *uc.AuthResponse)
ConfigUpdate: non-test
Click to show internal directories.
Click to hide internal directories.