Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProxyServerTcp string = "tcp" ProxyServerWebsocket string = "websocket" )
View Source
const ( CommandLoad string = "load" CommandUpdate string = "update" CommandConnect string = "connect" CommandFingerprint string = "fingerprint" )
View Source
const ( StatusConnecting string = "connecting" StatusConnected string = "connected" StatusDisconnected string = "disconnected" )
Variables ¶
This section is empty.
Functions ¶
func RegisterProxyServer ¶ added in v1.1.0
func RegisterProxyServer(serverType string, server IProxyServer)
Types ¶
type ClientHandler ¶ added in v1.1.0
type ConnectionRequest ¶
type ConnectionResponse ¶
type FingerprintResponse ¶ added in v1.1.0
type IProxyServer ¶ added in v1.1.0
type IProxyServer interface {
Open(s *ProxyServer, h IProxyServerHandler, fingerprint string) error
Close()
Write(uuid string, buffer []byte) error
CloseConnection(uuid string) error
Fingerprint() string
SetServer(server Server)
Server() Server
Port() int
}
func NewProxyServer ¶ added in v1.1.0
func NewProxyServer(serverType string, s *ProxyServer, h IProxyServerHandler, fingerprint string) (IProxyServer, error)
type IProxyServerHandler ¶ added in v1.1.0
type IProxyServerHandler interface {
OnNewConnection(p IProxyServer, uuid string)
OnDisconnected(p IProxyServer, uuid string)
OnRead(p IProxyServer, uuid string, buffer []byte)
}
type LoadResponse ¶
type ProxyServer ¶
Click to show internal directories.
Click to hide internal directories.