client

package
v0.0.0-...-f2a809f Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(ctx context.Context, cfg Config)

Main is the entry point of client

Types

type Config

type Config struct {
	LocalAddr       string
	RemoteAddr      string
	ServerAddr      string
	InteractiveMode bool
	SkipVerify      bool
	RootCA          string
}

Config is where configuration of client

type ProxyParement

type ProxyParement string

ProxyParement is the type of key in context

const (
	//ServiceAddr is the key of service addr
	ServiceAddr ProxyParement = "ServiceAddress"
	//RemoteAddr is as it name
	RemoteAddr ProxyParement = "RemoteAddress"
)

Jump to

Keyboard shortcuts

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