This directory contains private Go packages. Collectively these package are the measurement engine that empowers OONI Probe. Most of the code in this package derives from the ooni/probe-engine discontinued repository.
You can read the Go documentation of a package by using go doc -all.
For example:
go doc -all ./internal/netxliteYou can install the pkgsite tool using this command:
go install golang.org/x/pkgsite@latestTo run pkgsite, use:
pkgsiteThen visit http://127.0.0.1:8080/github.com/ooni/probe-cli/v3 with your browser to browse the documentation.
Use the go list -json subcommand. For example:
go list -json ./internal/netxlite
You can get a graph of the dependencies using kisielk/godepgraph.
For example:
godepgraph -s -novendor -p golang.org,gitlab.com ./internal/engine | dot -Tpng -o deps.pngYou can further tweak which packages to exclude by appending
prefixes to the list passed to the -p flag.
The tutorial package contains tutorials on writing new experiments, using measurements libraries, and networking code.