Documentation
¶
Index ¶
Constants ¶
View Source
const ( AuthAction = "Auth" // 认证,由SA发起 CreateAction = "Create" // 认证通过, 创建数据通道客户端,由SC发起 NewAction = "New" // 新建一个TCP连接,由SC发起 ErrorAction = "Error" // 错误事件 )
View Source
const ( DefaultTCPKeepAlivePeriod = (5 * time.Minute) DefaultLingerSecond = 30 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthActionData ¶
type AuthActionData struct {
SAID string `json:"sa_id"`
Key string `json:"key"`
ServiceName string `json:"service_name"`
}
AuthActionData 认证事件数据格式
type CreateActionData ¶
CreateActionData 新建时间数据格式
type NewActionData ¶
type NewActionData struct {
ServiceName string `json:"service_name"`
ConnectionKey string `json:"key"`
}
NewActionData 新建TCP连接数据格式
type TunnelClient ¶
type TunnelClient struct {
// contains filtered or unexported fields
}
func NewTunnelClient ¶
func NewTunnelClient(option *TunnelClientOption) *TunnelClient
Click to show internal directories.
Click to hide internal directories.