sessiontunnel

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 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 Session
}

Config contains config for the session tunnel.

type Session added in v0.18.0

type Session interface {
	psiphonx.Session
	torx.Session
	Logger() model.Logger
}

Session is the way in which this package sees a Session.

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