Documentation ¶
Index ¶
Constants ¶
View Source
const ( TunnelTypeNULL = "unknown" TunnelTypeWST = "websocket" TunnelTypeGRT = "grpc" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProviderStatus ¶
type ProviderStatus int8
const ( ProvStatusCreate ProviderStatus = iota + 1 ProvStatusSuccess ProvStatusFailed ProvStatusSync ProvStatusForbidden ProvStatusSyncError ProvStatusDelete )
type ProviderType ¶
type ProviderType int8
const ( ProvTypeALiYun ProviderType = iota + 1 ProvTypeTencentYun ProvTypeHuaweiYun ProvTypeBaiduYun ProvTypeSealos )
type ProxyStatus ¶
type ProxyStatus int8
const ( ProxyStatusInitializing ProxyStatus = iota + 1 ProxyStatusActive ProxyStatusInactive ProxyStatusError ProxyStatusSpeeding ProxyStatusRecover ProxyStatusDelete )
type TunnelStatus ¶
type TunnelStatus int8
const ( TunnelInitializing TunnelStatus = iota + 1 // 初始化 TunnelActive // 可用 TunnelInactive // 停用 TunnelError // 不可用 TunnelWaiting // 异常 TunnelDelete // 删除 )
type TunnelType ¶
type TunnelType string
func TransTunnelType ¶
func TransTunnelType(t string) TunnelType
func (TunnelType) String ¶
func (t TunnelType) String() string
func (TunnelType) ToPtr ¶
func (t TunnelType) ToPtr() *string
func (TunnelType) TranAddr ¶
func (t TunnelType) TranAddr(tls bool) string
Click to show internal directories.
Click to hide internal directories.