tunnel

package
v0.9.2-32-g5cc772a5 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 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 {
	TunnelProxyPorts   []string `` /* 134-byte string literal not displayed */
	ProxyControlPort   uint     `` /* 131-byte string literal not displayed */
	TunnelServiceImage string   `local:"true" long:"tunnel-image" usage:"Tunnel service image" 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