Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDefaultConfig ¶
InitDefaultConfig reads the config from common locations or creates it if missing.
func MaybeInitializeHome ¶
MaybeInitializeHome does the setup for a new OONI Home
Types ¶
type Context ¶
type Context struct {
Config *config.Config
DB sqlbuilder.Database
IsBatch bool
Session *engine.Session
Home string
TempDir string
// contains filtered or unexported fields
}
Context for OONI Probe
func NewContext ¶
NewContext creates a new context instance.
func (*Context) MaybeLocationLookup ¶
MaybeLocationLookup will lookup the location of the user unless it's already cached
func (*Context) MaybeOnboarding ¶
MaybeOnboarding will run the onboarding process only if the informed consent config option is set to false
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
ooniprobe
command
|
|
|
internal
|
|
|
enginex
Package enginex contains ooni/probe-engine extensions.
|
Package enginex contains ooni/probe-engine extensions. |
|
log/handlers/cli/progress
Package progress provides a simple terminal progress bar.
|
Package progress provides a simple terminal progress bar. |
|
pkg
|
|
|
gobash
module
|
|
|
strcase
Package strcase converts strings to snake_case or CamelCase
|
Package strcase converts strings to snake_case or CamelCase |
|
Package version contains version information
|
Package version contains version information |
Click to show internal directories.
Click to hide internal directories.