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 NewExperimentMeasurer ¶
func NewExperimentMeasurer(config Config) model.ExperimentMeasurer
NewExperimentMeasurer creates a new ExperimentMeasurer.
Types ¶
type Measurer ¶
Measurer is the psiphon measurer.
func (*Measurer) ExperimentName ¶
ExperimentName returns the experiment name
func (*Measurer) ExperimentVersion ¶
ExperimentVersion returns the experiment version
func (Measurer) GetSummaryKeys ¶
func (m Measurer) GetSummaryKeys(measurement *model.Measurement) (interface{}, error)
GetSummaryKeys implements model.ExperimentMeasurer.GetSummaryKeys.
func (*Measurer) Run ¶
func (m *Measurer) Run( ctx context.Context, sess model.ExperimentSession, measurement *model.Measurement, callbacks model.ExperimentCallbacks, ) error
Run runs the measurement
type SummaryKeys ¶
type SummaryKeys struct { BootstrapTime float64 `json:"bootstrap_time"` Failure string `json:"failure"` IsAnomaly bool `json:"-"` }
SummaryKeys contains summary keys for this experiment.
Note that this structure is part of the ABI contract with ooniprobe therefore we should be careful when changing it.
Click to show internal directories.
Click to hide internal directories.