tunnel

package
v1.29.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotifyDataChannelReady

func NotifyDataChannelReady(streamID string)

NotifyDataChannelReady notifies that data channel is ready for a stream

func ServeMuxFor added in v1.26.14

func ServeMuxFor(srv *http.Server) *http.ServeMux

ServeMuxFor returns the *http.ServeMux that srv dispatches to, or nil if srv uses a non-ServeMux Handler. When Handler is nil, net/http uses DefaultServeMux at serve time; we register there to match that behavior.

Types

type HTTPTunnel

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

HTTPTunnel handles HTTP tunnel requests

func CreateHTTPTunnel

func CreateHTTPTunnel(ctx *types.Context, domain string) *HTTPTunnel

CreateHTTPTunnel creates a new HTTP tunnel

func (*HTTPTunnel) Attach

func (t *HTTPTunnel) Attach(server *http.Server)

Attach registers the HTTP tunnel on the same *http.ServeMux as server (server.Handler must be that mux or nil).

type Options

type Options struct {
	ContainerID string
	Domain      string
}

Options contains options for creating a TCP tunnel server

type TCPTunnel

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

TCPTunnel handles TCP tunnel connections

func CreateTCPTunnel

func CreateTCPTunnel(ctx *types.Context) *TCPTunnel

CreateTCPTunnel creates a new TCP tunnel

func (*TCPTunnel) CreateServer

func (t *TCPTunnel) CreateServer(options Options) error

CreateServer creates a TCP tunnel server for a container

Jump to

Keyboard shortcuts

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