tunnel

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCustomHTTPHeader

func BuildCustomHTTPHeader(r *http.Response, size int) []byte

BuildCustomHTTPHeader constructs a custom HTTP header from an HTTP response It formats the headers into a byte slice following the HTTP protocol standard Parameters:

r - pointer to the httpx.Response object containing the response data

Returns:

[]byte - formatted HTTP header as a byte slice

Types

type HttpBridge

type HttpBridge struct {
	// contains filtered or unexported fields
}

func (*HttpBridge) Close

func (b *HttpBridge) Close()

func (*HttpBridge) Read

func (b *HttpBridge) Read(p []byte) (n int, err error)

func (*HttpBridge) Write

func (b *HttpBridge) Write(p []byte) (n int, err error)

func (*HttpBridge) WriterToRight

func (b *HttpBridge) WriterToRight(p []byte) (int, error)

type HttpClientManager

type HttpClientManager struct {
	// contains filtered or unexported fields
}

func NewHttpClientManager

func NewHttpClientManager() *HttpClientManager

func (*HttpClientManager) GetHttpBridge

func (r *HttpClientManager) GetHttpBridge(ctx context.Context,
	left io.ReadWriteCloser,
	rightAddress string,
	reqId int64, isWs bool) (*HttpBridge, error)

type HttpTunnelClient

type HttpTunnelClient struct {
	*clis.BaseTunnelClient
	// contains filtered or unexported fields
}

HttpTunnelClient is a tunnel client that handles HTTP connections.

func NewHttpTunnelClient

func NewHttpTunnelClient(config *configs.ClientTunnelConfig) (*HttpTunnelClient, error)

func (*HttpTunnelClient) GetName

func (h *HttpTunnelClient) GetName() string

GetName returns the name of the tunnel client.

type MultipleTunnelClient

type MultipleTunnelClient struct {
	// contains filtered or unexported fields
}

func (*MultipleTunnelClient) Close

func (m *MultipleTunnelClient) Close()

type TcpTunnelClient

type TcpTunnelClient struct {
	*clis.BaseTunnelClient
}

func (*TcpTunnelClient) GetName

func (t *TcpTunnelClient) GetName() string

type UdpTunnelClient

type UdpTunnelClient struct {
	*clis.BaseTunnelClient
	// contains filtered or unexported fields
}

func (*UdpTunnelClient) GetName

func (t *UdpTunnelClient) GetName() string

type WebsocketBridge

type WebsocketBridge struct {
	// contains filtered or unexported fields
}

func (*WebsocketBridge) Close

func (c *WebsocketBridge) Close(isCloseLeft bool)

func (*WebsocketBridge) Write

func (c *WebsocketBridge) Write(p []byte) (n int, err error)

func (*WebsocketBridge) WriteToRight

func (c *WebsocketBridge) WriteToRight(code ws.OpCode, data []byte)

type WebsocketClientManager

type WebsocketClientManager struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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