psiphon

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Overview

Package psiphon implements the psiphon network experiment. This implements, in particular, v0.2.0 of the spec.

See https://github.com/ooni/spec/blob/master/nettests/ts-015-psiphon.md

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExperiment

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

NewExperiment creates a new experiment.

Types

type Config

type Config struct {
	// 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 {
	// Agent is the HTTP agent we're using.
	Agent string `json:"agent"`

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

	// Failure contains the failure that occurred.
	Failure *string `json:"failure"`

	// MaxRuntime is the number of seconds after which we
	// interrupt the psiphon experiment.
	MaxRuntime float64 `json:"max_runtime"`

	// Requests contains HTTP measurements
	Requests oodatamodel.RequestList `json:"requests"`

	// SOCKSProxy is the address of the proxy we're using.
	SOCKSProxy string `json:"socksproxy"`
}

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