psiphon

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: BSD-3-Clause Imports: 5 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 NewExperimentMeasurer added in v0.8.0

func NewExperimentMeasurer(config Config) model.ExperimentMeasurer

NewExperimentMeasurer creates a new ExperimentMeasurer.

Types

type Config

type Config struct {
	urlgetter.Config
}

Config contains the experiment's configuration.

type Measurer added in v0.11.0

type Measurer struct {
	BeforeGetHook func(g urlgetter.Getter)
	Config        Config
}

Measurer is the psiphon measurer.

func (*Measurer) ExperimentName added in v0.11.0

func (m *Measurer) ExperimentName() string

ExperimentName returns the experiment name

func (*Measurer) ExperimentVersion added in v0.11.0

func (m *Measurer) ExperimentVersion() string

ExperimentVersion returns the experiment version

func (*Measurer) Run added in v0.11.0

func (m *Measurer) Run(
	ctx context.Context, sess model.ExperimentSession,
	measurement *model.Measurement, callbacks model.ExperimentCallbacks,
) error

Run runs the measurement

type TestKeys

type TestKeys struct {
	urlgetter.TestKeys
	MaxRuntime float64 `json:"max_runtime"`
}

TestKeys contains the experiment's result.

Jump to

Keyboard shortcuts

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