enum

package
v0.0.0-...-b532d83 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TunnelTypeNULL = "unknown"
	TunnelTypeWST  = "websocket"
	TunnelTypeGRT  = "grpc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthType

type AuthType int8
const (
	AuthEmpty  AuthType = iota + 1 // 无认证
	AuthAdmin                      // 后台账户
	AuthBasic                      // HTTP Basic 认证
	AuthBearer                     // HTTP Bearer 认证

	AuthSignature // FC Signature 认证, 这类认证好处在于认证失败 403 不计次数
	AuthJwt       // FC Jwt 认证。 需要 jwks
	AuthParis     // SCF 网管密钥对认证
)

func TransAuthType

func TransAuthType(t string) AuthType

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 ProxyType

type ProxyType string
const (
	ProxyTypeAUTO        ProxyType = "auto"
	ProxyTypeHTTP        ProxyType = "http"
	ProxyTypeSOCKS5      ProxyType = "socks5"
	ProxyTypeShadowSocks ProxyType = "shadowsocks"
	ProxyTypeVmess       ProxyType = "vmess"
	ProxyTypeVless       ProxyType = "vless"
)

func (ProxyType) Path

func (t ProxyType) Path(p string) string

func (ProxyType) ProtoString

func (t ProxyType) ProtoString() string

func (ProxyType) String

func (t ProxyType) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL