Documentation ¶
Index ¶
- Constants
- func DailDirect(host, port, category string, proxyConn net.Conn) error
- func GetDomainFromHost(host string) (string, error)
- func GetPodIpFromService(service string) (string, string, error)
- func GetRemoteAddr(host, category string) string
- func GetRemoteConn(nodeName, category string) (net.Conn, error)
- func GetRemoteProxyServerPort(category string) string
- func ProxyEdgeNode(nodename, host, port, category string, proxyConn net.Conn, req *bytes.Buffer) error
- func Read(conn net.Conn, node context.Node, category, handleType, uuid, addr string)
- func Write(conn net.Conn, ch context.Conn)
- type TargetType
Constants ¶
View Source
const (
BuferSize = 1 * 1024
)
Variables ¶
This section is empty.
Functions ¶
func DailDirect ¶ added in v0.8.2
func GetDomainFromHost ¶ added in v0.8.0
func GetPodIpFromService ¶ added in v0.8.0
func GetRemoteAddr ¶ added in v0.8.2
func GetRemoteConn ¶ added in v0.8.0
func GetRemoteProxyServerPort ¶ added in v0.8.0
func ProxyEdgeNode ¶ added in v0.7.0
Types ¶
type TargetType ¶ added in v0.8.0
type TargetType int
const ( LocalPodType TargetType = 0 //transfer through the tunnel of this tunnel-cloud pod RemotePodType TargetType = 1 //transfer through the tunnel of other tunnel-cloud pod CloudNodeType TargetType = 2 //send requests directly in this tunnel-cloud pod EdgeNodeType TargetType = 3 //the target node is on the edge and cannot send requests directly )
func GetTargetType ¶ added in v0.8.0
func GetTargetType(nodeName string) TargetType
Click to show internal directories.
Click to hide internal directories.