tunnel

package
v0.8.7-279-gc57229de Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const Heartbeat = "\xf0\x9f\x91\x8b\xf0\x9f\x90\x92\x00"

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

Types

type Relay

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

Relay relays connections from a local listener to a remote host over TLS.

func (*Relay) ControlUp added in v0.9.0

func (r *Relay) ControlUp(ctx context.Context, ready chan struct{}) error

func (*Relay) Up

func (r *Relay) Up(ctx context.Context) error

type TunnelOptions

type TunnelOptions struct {
	ProxyPorts         []string `local:"true" long:"proxy-ports" short:"p" usage:"Ports to use for the proxies. Default start port is 4444"`
	ProxyControlPort   uint     `local:"true" long:"proxy-control-port" short:"P" usage:"Port to use for the proxy control" default:"4443"`
	TunnelServiceImage string   `local:"true" long:"tunnel-service-image" usage:"Tunnel service image to use" default:"official/utils/tunnel:latest"`
	Token              string   `noattribute:"true"`
	Metro              string   `noattribute:"true"`
	// contains filtered or unexported fields
}

func (*TunnelOptions) Pre

func (opts *TunnelOptions) Pre(cmd *cobra.Command, _ []string) error

func (*TunnelOptions) Run

func (opts *TunnelOptions) Run(ctx context.Context, args []string) error

Jump to

Keyboard shortcuts

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