libminiooni

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Overview

Package libminiooni implements the cmd/miniooni CLI.

This CLI is compatible with both OONI Probe v2.x and MK v0.10.x.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

Main is the main function of miniooni. This function parses the command line options and uses a global state. Use MainWithConfiguration if you want to avoid using any global state and relying on command line options.

This function will panic in case of a fatal error. It is up to you that integrate this function to either handle the panic of ignore it.

func MainWithConfiguration

func MainWithConfiguration(experimentName string, currentOptions Options)

MainWithConfiguration is the miniooni main with a specific configuration represented by the experiment name and the current options.

This function will panic in case of a fatal error. It is up to you that integrate this function to either handle the panic of ignore it.

Types

type Options

type Options struct {
	Annotations      []string
	Inputs           []string
	ExtraOptions     []string
	NoBouncer        bool
	NoGeoIP          bool
	NoJSON           bool
	NoCollector      bool
	ProbeServicesURL string
	Proxy            string
	ReportFile       string
	SelfCensorSpec   string
	TorArgs          []string
	TorBinary        string
	Tunnel           string
	Verbose          bool
}

Options contains the options you can set from the CLI.

Jump to

Keyboard shortcuts

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