Documentation ¶
Index ¶
- func AssetsDir(home string) string
- func ConfigPath(home string) string
- func DBDir(home string, name string) string
- func DidLegacyInformedConsent() bool
- func EngineDir(home string) string
- func EscapeAwareRuneCountInString(s string) int
- func Fatal(err error)
- func GetOONIHome() (string, error)
- func Log(msg string, v ...interface{})
- func RequiredDirs(home string) []string
- func RightPad(str string, length int) string
- func TunnelDir(home string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
ConfigPath returns the default path to the config file
func DidLegacyInformedConsent ¶
func DidLegacyInformedConsent() bool
DidLegacyInformedConsent checks if the user did the informed consent procedure in probe-legacy
func EngineDir ¶
EngineDir returns the directory where ooni/probe-engine should store its private data given a specific OONI Home.
func EscapeAwareRuneCountInString ¶
EscapeAwareRuneCountInString counts the number of runes in a string taking into account escape sequences.
func RequiredDirs ¶
RequiredDirs returns the required ooni home directories
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.