Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ManagerTunnelServerFun func(proxyId string, ch transport.Channel) error
ManagerTunnelServerFun handles heartbeat-driven tunnel management.
View Source
var OpenTunnelServerFun func(req *exchange.OpenTunnelReq, ch transport.Channel) (*TunnelCfg, error)
OpenTunnelServerFun handles open-tunnel requests on the server.
Functions ¶
func ManagerTunnelServer ¶
ManagerTunnelServer dispatches heartbeat tunnel updates to the configured handler.
Types ¶
type InServer ¶
type InServer struct {
srv.BaseServerHandler
// contains filtered or unexported fields
}
var Inserver *InServer
Inserver holds the active inbound server instance.
type TunnelCfg ¶
TunnelCfg describes the tunnel configuration returned by the server.
func NewTunnelCfg ¶
NewTunnelCfg creates a new TunnelCfg with the provided values.
func OpenTunnelServer ¶
OpenTunnelServer dispatches an open-tunnel request to the configured handler.
Click to show internal directories.
Click to hide internal directories.