client

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConnect = "https://exhaust-timing-harmless-saved-startup.tunnel.example.com"
)
View Source
const (
	DefaultWhere = "tunnel.example.com"
)

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, opts ConnectOpts)

func Forward

func Forward(ctx context.Context, opts ForwardOpts)

func Tunnel

func Tunnel(ctx context.Context, opts TunnelOpts)

Types

type ConnectOpts

type ConnectOpts struct {
	Logger *zap.Logger
	URL    string
	Debug  bool
	Sigs   chan os.Signal
}

type ForwardOpts

type ForwardOpts struct {
	Logger *zap.Logger
	Sigs   chan os.Signal
	URL    string
	Addr   string
	Debug  bool
	// contains filtered or unexported fields
}

type TunnelOpts

type TunnelOpts struct {
	Logger    *zap.Logger
	AppName   string
	Forward   string
	Where     string
	Proto     int
	Debug     bool
	Overwrite bool
	Version   string
	Concise   bool
	Sigs      chan os.Signal
}

Jump to

Keyboard shortcuts

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