sessiontunnel

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name    string
	Session model.ExperimentSession
}

Config contains config for the session tunnel.

type Tunnel

type Tunnel interface {
	BootstrapTime() time.Duration
	SOCKS5ProxyURL() *url.URL
	Stop()
}

Tunnel is a tunnel used by the session

func Start

func Start(ctx context.Context, config Config) (Tunnel, error)

Start starts a new tunnel by name or returns an error. Note that if you pass to this function the "" tunnel, you get back nil, nil.

Jump to

Keyboard shortcuts

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