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 ¶
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.