client

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(ctx context.Context, proxy string, caFile string, insecureSkipVerify bool, noBrowser, showQR bool) error

func DeleteAuthToken

func DeleteAuthToken(proxy string) error

func LoadAuthToken

func LoadAuthToken(proxy string) (string, func(string, string) error, error)

func NewDialer added in v0.5.0

func NewDialer(proxyPublicKey key.PublicKey, clientPrivateKey key.PrivateKey, connectUrl string, tlsConfig *tls.Config) func(context.Context, string, string) (net.Conn, error)

func StartClient

func StartClient(ctx context.Context, proxy string, localAddr string, remoteAddr string, caFile string, insecureSkipVerify bool, noBrowser, showQR bool, onConnect OnConnect) error

func StoreAuthToken

func StoreAuthToken(proxy, token string) error

Types

type Client

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

type OnConnect

type OnConnect func(ctx context.Context, addr, ip, port string) error

Jump to

Keyboard shortcuts

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