telegram

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 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 {
	Requests             oodatamodel.RequestList    `json:"requests"`
	TCPConnect           oodatamodel.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"`
}

TestKeys contains telegram test keys.

Jump to

Keyboard shortcuts

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