Documentation
¶
Index ¶
- Variables
- func IsReplay(key string) bool
- func SetClientSelectMode(v any) error
- type Bridge
- type Client
- func (c *Client) AddFile(f *nps_mux.Mux)
- func (c *Client) AddSignal(s *conn.Conn)
- func (c *Client) AddTunnel(t *nps_mux.Mux)
- func (c *Client) Close() error
- func (c *Client) GetFile() *nps_mux.Mux
- func (c *Client) GetSignal() *conn.Conn
- func (c *Client) GetTunnel() *nps_mux.Mux
- func (c *Client) IsClosed() bool
- func (c *Client) SwitchFile()
- func (c *Client) SwitchSignal()
- func (c *Client) SwitchTunnel()
- 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) SwitchFile ¶ added in v0.30.3
func (c *Client) SwitchFile()
func (*Client) SwitchSignal ¶ added in v0.30.3
func (c *Client) SwitchSignal()
func (*Client) SwitchTunnel ¶ added in v0.30.3
func (c *Client) SwitchTunnel()
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.