Documentation
¶
Index ¶
- func GetLoginInfo() (string, string, error)
- func Run(cCtx *cli.Context) error
- func SendKeepalive(conn *net.UDPConn, addr string) error
- type Client
- func (c *Client) CheckAuthed() bool
- func (c *Client) Close() error
- func (c *Client) DoKeepalive(interval int) error
- func (c *Client) HandleConn(netToIface chan *packet.VLPkt) error
- func (c *Client) HandleSignal(sigChan chan os.Signal) error
- func (c *Client) Launch() error
- func (c *Client) SetLogLevel()
- type ClientOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLoginInfo ¶
Types ¶
type Client ¶
type Client struct { Conn *net.UDPConn IPAddr string Iface *water.Interface // contains filtered or unexported fields }
func (*Client) CheckAuthed ¶
func (*Client) DoKeepalive ¶
func (*Client) SetLogLevel ¶
func (c *Client) SetLogLevel()
type ClientOpt ¶
type ClientOpt func(*Client)
func ClientSetKey ¶
func ClientSetLogLevel ¶
func ClientSetPasswd ¶
func ClientSetTarget ¶
func ClientSetUser ¶
Click to show internal directories.
Click to hide internal directories.