Documentation
¶
Overview ¶
Package dash implements the DASH network experiment.
Spec: https://github.com/ooni/spec/blob/master/nettests/ts-021-dash.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 {
Tunnel string `ooni:"Run experiment over a tunnel, e.g. psiphon"`
}
Config contains the experiment config.
type Measurer ¶ added in v0.17.0
type Measurer struct {
// contains filtered or unexported fields
}
Measurer performs the measurement.
func (Measurer) ExperimentName ¶ added in v0.17.0
ExperimentName implements model.ExperimentMeasurer.ExperimentName.
func (Measurer) ExperimentVersion ¶ added in v0.17.0
ExperimentVersion implements model.ExperimentMeasurer.ExperimentVersion.
func (Measurer) Run ¶ added in v0.17.0
func (m Measurer) Run( ctx context.Context, sess model.ExperimentSession, measurement *model.Measurement, callbacks model.ExperimentCallbacks, ) error
Run implements model.ExperimentMeasurer.Run.
type ServerInfo ¶ added in v0.11.0
ServerInfo contains information on the selected server
This is currently an extension to the DASH specification until the data format of the new mlab locate is clear.
type Simple ¶ added in v0.10.0
type Simple struct {
ConnectLatency float64 `json:"connect_latency"`
MedianBitrate int64 `json:"median_bitrate"`
MinPlayoutDelay float64 `json:"min_playout_delay"`
}
Simple contains the experiment total summary
type TestKeys ¶ added in v0.10.0
type TestKeys struct {
BootstrapTime float64 `json:"bootstrap_time,omitempty"`
Server ServerInfo `json:"server"`
Simple Simple `json:"simple"`
Failure *string `json:"failure"`
ReceiverData []clientResults `json:"receiver_data"`
SOCKSProxy string `json:"socksproxy,omitempty"`
Tunnel string `json:"tunnel,omitempty"`
}
TestKeys contains the test keys