Documentation
¶
Index ¶
- Variables
- func IsReplay(key string) bool
- func SetClientSelectMode(v any) error
- type Bridge
- type Client
- func (c *Client) AddFile(key, addr string) error
- func (c *Client) AddNode(n *Node)
- func (c *Client) CheckNode() *Node
- func (c *Client) Close() error
- func (c *Client) GetNode() *Node
- func (c *Client) GetNodeByAddr(addr string) (*Node, bool)
- func (c *Client) GetNodeByFile(key string) (*Node, bool)
- func (c *Client) IsClosed() bool
- func (c *Client) NodeCount() int
- func (c *Client) RemoveFile(key string)
- type Node
- type SelectMode
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ServerTcpEnable = false ServerKcpEnable = false ServerQuicEnable = false ServerTlsEnable = false ServerWsEnable = false ServerWssEnable = false ServerSecureMode = false )
View Source
var ClientSelectMode = Primary
Functions ¶
func SetClientSelectMode ¶ added in v0.30.3
Types ¶
type Bridge ¶
type Bridge struct {
TunnelPort int
Client *sync.Map
Register *sync.Map
OpenTask chan *file.Tunnel
CloseTask chan *file.Tunnel
CloseClient chan int
SecretChan chan *conn.Secret
// contains filtered or unexported fields
}
func (*Bridge) GetHealthFromClient ¶
GetHealthFromClient get health information form client
func (*Bridge) SendLinkInfo ¶
func (*Bridge) StartTunnel ¶
type Client ¶
func (*Client) GetNodeByAddr ¶ added in v0.30.6
func (*Client) GetNodeByFile ¶ added in v0.30.6
func (*Client) RemoveFile ¶ added in v0.30.6
type Node ¶ added in v0.30.6
type SelectMode ¶ added in v0.30.3
type SelectMode int32
const ( Primary SelectMode = iota RoundRobin Random )
Click to show internal directories.
Click to hide internal directories.