telegram

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

Package telegram contains the Telegram network experiment. This file in particular is a pure-Go implementation of that.

See https://github.com/ooni/spec/blob/master/nettests/ts-020-telegram.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExperiment

func NewExperiment(
	sess *session.Session, config Config,
) *experiment.Experiment

NewExperiment creates a new experiment.

Types

type Config

type Config struct{}

Config contains the experiment config.

type TestKeys added in v0.3.0

type TestKeys struct {
	Agent                string                          `json:"agent"`
	Queries              oonidatamodel.DNSQueriesList    `json:"queries"`
	Requests             oonidatamodel.RequestList       `json:"requests"`
	TCPConnect           oonidatamodel.TCPConnectList    `json:"tcp_connect"`
	TelegramHTTPBlocking bool                            `json:"telegram_http_blocking"`
	TelegramTCPBlocking  bool                            `json:"telegram_tcp_blocking"`
	TelegramWebFailure   *string                         `json:"telegram_web_failure"`
	TelegramWebStatus    string                          `json:"telegram_web_status"`
	TLSHandshakes        oonidatamodel.TLSHandshakesList `json:"tls_handshakes"`
}

TestKeys contains telegram test keys.

Jump to

Keyboard shortcuts

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