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/netxlite
You can install the pkgsite
tool using this command:
go install golang.org/x/pkgsite@latest
To run pkgsite
, use:
pkgsite
Then 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.png
You 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.