psiphonfeat

package
v3.21.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package psiphonfeat implements the psiphon feature. When it is possible to enable this feature, we are able to start psiphon tunnels. Otherwise, it's not possible to start psiphon tunnels.

Index

Constants

View Source
const Enabled = false

Enabled indicates whether this feature is enabled.

Variables

View Source
var ErrFeatureNotEnabled = errors.New("psiphonfeat: not enabled")

ErrFeatureNotEnabled indicates that the Psiphon feature is not enabled in this build.

Functions

This section is empty.

Types

type Tunnel

type Tunnel interface {
	// Stop stops a running Psiphon tunnel.
	Stop()

	// GetSOCKSProxyPort returns the SOCKS5 port used by the tunnel.
	GetSOCKSProxyPort() int
}

Tunnel is the interface implementing the Psiphon tunnel.

func Start

func Start(ctx context.Context, config []byte, workdir string) (Tunnel, error)

Start attempts to start the Psiphon tunnel and returns either a Tunnel or an error.

Jump to

Keyboard shortcuts

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