clients

package
v0.0.0-...-821cffe Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

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 NewClient

func NewClient() *Client

func (*Client) Close

func (c *Client) Close()

func (*Client) DialerControlFunc

func (c *Client) DialerControlFunc(network, address string, conn syscall.RawConn) error

func (*Client) EnhanceConn

func (c *Client) EnhanceConn(conn net.Conn) error

func (*Client) GetDialer

func (c *Client) GetDialer() *net.Dialer

func (*Client) GetHeaders

func (c *Client) GetHeaders() http.Header

func (*Client) GetProxyURL

func (c *Client) GetProxyURL() *url.URL

func (*Client) GetServerURL

func (c *Client) GetServerURL() *url.URL

func (*Client) GetTLSConfig

func (c *Client) GetTLSConfig() *tls.Config

func (*Client) RegisterDefaultConnectors

func (c *Client) RegisterDefaultConnectors()

func (*Client) Reload

func (c *Client) Reload()

func (*Client) Serve

func (c *Client) Serve() error

func (*Client) ServeLoop

func (c *Client) ServeLoop()

func (*Client) SetBasicAuthFromUserInfo

func (c *Client) SetBasicAuthFromUserInfo(userInfo *url.Userinfo)

func (*Client) SetLocalFeature

func (c *Client) SetLocalFeature(feature features.Feature, enabled bool)

func (*Client) SetMTU

func (c *Client) SetMTU(mtu int) error

func (*Client) UpdateSocketConfig

func (c *Client) UpdateSocketConfig() error

func (*Client) Wait

func (c *Client) Wait()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL