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.
Click to show internal directories.
Click to hide internal directories.