signal

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package signal implements the signal experiment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Measurer

type Measurer struct {
	// RawOptions contains the raw options for this experiment.
	RawOptions json.RawMessage
}

Measurer is the signal measurer.

func NewMeasurer

func NewMeasurer(rawOptions json.RawMessage) *Measurer

NewMeasurer returns a new Measurer instance.

func (*Measurer) ExperimentName

func (m *Measurer) ExperimentName() string

ExperimentName implements model.ExperimentMeasurer

func (*Measurer) ExperimentVersion

func (m *Measurer) ExperimentVersion() string

ExperimentVersion implements model.ExperimentMeasurer

func (*Measurer) GetSummaryKeys

func (m *Measurer) GetSummaryKeys(*model.Measurement) (any, error)

GetSummaryKeys implements model.ExperimentMeasurer

func (*Measurer) Run

func (m *Measurer) Run(ctx context.Context, args *model.ExperimentArgs) error

Run implements model.ExperimentMeasurer

type SummaryKeys

type SummaryKeys struct {
	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.

Jump to

Keyboard shortcuts

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