tunnelstest

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAccessToken

func WithAccessToken(accessToken string) func(*RelayServer)

Types

type RelayServer

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

func NewRelayServer

func NewRelayServer(opts ...RelayServerOption) (*RelayServer, error)

func (*RelayServer) Err

func (rs *RelayServer) Err() <-chan error

func (*RelayServer) ForwardPort

func (rs *RelayServer) ForwardPort(ctx context.Context, port uint16) error

func (*RelayServer) URL

func (rs *RelayServer) URL() string

type RelayServerOption

type RelayServerOption func(*RelayServer)

func WithForwardedStream

func WithForwardedStream(pfc *messages.PortForwardChannel, port uint16, data *bytes.Buffer) RelayServerOption

Jump to

Keyboard shortcuts

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