remotedialer

package
v0.0.75 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientConnect

func ClientConnect(ctx context.Context, wsURL string, headers http.Header, dialer *websocket.Dialer,
	auth remotedialer.ConnectAuthorizer, onConnect func(context.Context, *remotedialer.Session) error) error

ClientConnect connect to WS and wait 5 seconds when error

func ConnectToProxy

func ConnectToProxy(rootCtx context.Context, proxyURL string, headers http.Header, auth remotedialer.ConnectAuthorizer, dialer *websocket.Dialer, onConnect func(context.Context, *remotedialer.Session) error) error

ConnectToProxy connect to websocket server

Types

type ConnectAuthorizer

type ConnectAuthorizer func(proto, address string) bool

ConnectAuthorizer custom for authorization

Jump to

Keyboard shortcuts

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