Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTunnelInfoInvalid = errors.New("tunnel info is invalid")
)
Functions ¶
func MarshalTunnelInfo ¶
func MarshalTunnelInfo(tunnelInfo TunnelInfo) ([]byte, error)
Types ¶
type Id ¶
func GenerateId ¶
func GenerateId() Id
type TunnelInfo ¶
type TunnelInfo interface { Id() Id Type() TunnelType EdgeServerAddr() string EdgeAgentAddr() string }
func GenerateTunnelInfo ¶
func GenerateTunnelInfo(tunnelId Id, tunnelType TunnelType, edgeServerAddr string, edgeAgentAddr string) ( TunnelInfo, error, )
func UnmarshalTunnelInfo ¶
func UnmarshalTunnelInfo(data []byte) (TunnelInfo, error)
type TunnelType ¶
type TunnelType string
const ( TunnelTypeHttp TunnelType = "http" TunnelTypeTcp TunnelType = "tcp" TunnelTypeUdp TunnelType = "udp" )
Click to show internal directories.
Click to hide internal directories.