Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Close()
- func (c *Client) DialerControlFunc(network, address string, conn syscall.RawConn) error
- func (c *Client) EnhanceConn(conn net.Conn) error
- func (c *Client) GetDialer() *net.Dialer
- func (c *Client) GetHeaders() http.Header
- func (c *Client) GetProxyURL() *url.URL
- func (c *Client) GetServerURL() *url.URL
- func (c *Client) GetTLSConfig() *tls.Config
- func (c *Client) RegisterDefaultConnectors()
- func (c *Client) Reload()
- func (c *Client) Serve() error
- func (c *Client) ServeLoop()
- func (c *Client) SetBasicAuthFromUserInfo(userInfo *url.Userinfo)
- func (c *Client) SetLocalFeature(feature features.Feature, enabled bool)
- func (c *Client) SetMTU(mtu int) error
- func (c *Client) UpdateSocketConfig() error
- func (c *Client) Wait()
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownConnType = errors.New("not a known conn type")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { shared.EventConfigHolder TLSConfig *tls.Config ProxyURL *url.URL ServerURL *url.URL Headers http.Header FirewallMark int SetDefaultGateway bool SocketConfigurator sockets.SocketConfigurator InterfaceConfig *iface.InterfaceConfig AutoReconnectDelay time.Duration // contains filtered or unexported fields }
func (*Client) DialerControlFunc ¶
func (*Client) GetHeaders ¶
func (*Client) GetProxyURL ¶
func (*Client) GetServerURL ¶
func (*Client) GetTLSConfig ¶
func (*Client) RegisterDefaultConnectors ¶
func (c *Client) RegisterDefaultConnectors()
func (*Client) SetBasicAuthFromUserInfo ¶
func (*Client) SetLocalFeature ¶
func (*Client) UpdateSocketConfig ¶
Click to show internal directories.
Click to hide internal directories.