Documentation
¶
Index ¶
Constants ¶
View Source
const Version = "3.0.0-beta.1"
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
Location *utils.LocationInfo
IsBatch bool
Home string
TempDir string
// contains filtered or unexported fields
}
Context for OONI Probe
func (*Context) LocationLookup ¶
LocationLookup lookup the location of the user via geoip
func (*Context) MaybeDownloadDataFiles ¶
MaybeDownloadDataFiles will download geoip data files if they are not present
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
|
|
|
ooni
command
|
|
|
internal
|
|
|
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 |
Click to show internal directories.
Click to hide internal directories.