psiphon

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 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         string                          `json:"agent"`
	BootstrapTime float64                         `json:"bootstrap_time"`
	Failure       *string                         `json:"failure"`
	MaxRuntime    float64                         `json:"max_runtime"`
	Queries       oonidatamodel.DNSQueriesList    `json:"queries"`
	Requests      oonidatamodel.RequestList       `json:"requests"`
	SOCKSProxy    string                          `json:"socksproxy"`
	TLSHandshakes oonidatamodel.TLSHandshakesList `json:"tls_handshakes"`
}

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