Documentation
¶
Overview ¶
Package sniblocking contains the SNI blocking network experiment. This file in particular is a pure-Go implementation of that.
See https://github.com/ooni/spec/blob/master/nettests/ts-024-sni-blocking.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 {
// ControlSNI is the SNI to be used for the control.
ControlSNI string
// TestHelperAddress is the address of the test helper.
TestHelperAddress string
}
Config contains the experiment config.
type Subresult ¶
type Subresult struct {
BytesReceived int64 `json:"-"`
BytesSent int64 `json:"-"`
Cached bool `json:"-"`
Failure *string `json:"failure"`
NetworkEvents oonidatamodel.NetworkEventsList `json:"network_events"`
Queries oonidatamodel.DNSQueriesList `json:"queries"`
Requests oonidatamodel.RequestList `json:"requests"`
SNI string `json:"sni"`
TCPConnect oonidatamodel.TCPConnectList `json:"tcp_connect"`
THAddress string `json:"th_address"`
TLSHandshakes oonidatamodel.TLSHandshakesList `json:"tls_handshakes"`
}
Subresult contains the keys of a single measurement that targets either the target or the control.
Click to show internal directories.
Click to hide internal directories.