psiphon

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

Package psiphon implements the psiphon network experiment.

Index

Constants

This section is empty.

Variables

View Source
var ErrDisabled = errors.New("Psiphon disabled at compile time")

ErrDisabled indicates that we disabled psiphon at compile time

Functions

func NewExperiment

func NewExperiment(
	sess *session.Session, config Config,
) *experiment.Experiment

NewExperiment creates a new experiment.

Types

type Config

type Config struct {
	// ConfigFilePath is the path where Psiphon config file is located.
	ConfigFilePath string `ooni:"configuration file path"`

	// WorkDir is the directory where Psiphon should store
	// its configuration database.
	WorkDir string `ooni:"experiment working directory"`
}

Config contains the experiment's configuration.

type TestKeys

type TestKeys struct {
	// Failure contains the failure that occurred.
	Failure string `json:"failure"`

	// BootstrapTime is the time it took to bootstrap Psiphon.
	BootstrapTime float64 `json:"bootstrap_time"`
}

TestKeys contains the experiment's result.

This is what will end up into the Measurement.TestKeys field when you run this experiment.

Jump to

Keyboard shortcuts

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