data

package
v1.29.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 13 Imported by: 0

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

type CreateTCPMonitorOptions struct {
	Version string
	Domain  string
	Port    int
	Token   types.GetToken
}

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) Close

func (m *TCPMonitor) Close() error

Close closes the 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

Jump to

Keyboard shortcuts

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