Documentation
¶
Index ¶
Constants ¶
View Source
const ( // TUNNEL_TCP_FLAG is the TCP tunnel authentication flag TUNNEL_TCP_FLAG = "3e55f8e5-021b-441c-8e3b-64e87ea5f263" // TUNNEL_TCP_OK_FLAG is the TCP tunnel authentication success flag TUNNEL_TCP_OK_FLAG = TUNNEL_TCP_FLAG + "200\n" // UID_LENGTH is the length of UUID (36 bytes) UID_LENGTH = 36 // REQUEST_ID_LENGTH is the length of request ID (36 bytes) REQUEST_ID_LENGTH = 36 // SIGNATURE_LENGTH is the length of HMAC-SHA256 signature (64 bytes) SIGNATURE_LENGTH = 64 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateTCPMonitorOptions ¶
CreateTCPMonitorOptions contains options for creating TCP monitor
type TCPMonitor ¶
type TCPMonitor struct {
// contains filtered or unexported fields
}
TCPMonitor manages TCP connections for legacy protocol
func NewDataChannelHandlerLegacy ¶
func NewDataChannelHandlerLegacy(ctx *types.Context, options *CreateTCPMonitorOptions) (*TCPMonitor, error)
NewDataChannelHandlerLegacy creates a new TCP monitor
func (*TCPMonitor) GetPort ¶
func (m *TCPMonitor) GetPort() int
GetPort returns the port the TCP monitor is listening on
type WebSocketDataChannelHandler ¶
type WebSocketDataChannelHandler struct {
// contains filtered or unexported fields
}
WebSocketDataChannelHandler handles WebSocket data channel connections for new protocol
func NewDataChannelHandler ¶
func NewDataChannelHandler(ctx *types.Context) *WebSocketDataChannelHandler
NewDataChannelHandler creates a new WebSocket data channel handler
func (*WebSocketDataChannelHandler) HandleConnection ¶
func (h *WebSocketDataChannelHandler) HandleConnection(w http.ResponseWriter, r *http.Request)
HandleConnection handles WebSocket upgrade requests for data channel
Click to show internal directories.
Click to hide internal directories.