tunnel

package
v0.0.0-...-5da1e5c Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClosed = errors.New("tunnel closed")

Functions

func IsClosed

func IsClosed(err error) bool

Types

type TokenRefresher

type TokenRefresher interface {
	SetToken(token string)
}

type Tunnel

type Tunnel interface {
	net.Listener
	Address() string

	StateChanges() <-chan string
	NewVersions() <-chan semver.Version
}

func OpenHTTP

func OpenHTTP(ctx context.Context, log *zap.Logger, host *url.URL) (Tunnel, error)

func OpenTCP

func OpenTCP(ctx context.Context, log *zap.Logger, host *url.URL) (Tunnel, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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