utils

package
v0.3.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ResultTimestamp = "2006-01-02T150405.999999999Z0700"

ResultTimestamp is a windows friendly timestamp

Variables

This section is empty.

Functions

func AssetsDir

func AssetsDir(home string) string

AssetsDir returns the assets data dir for the given OONI Home

func ConfigPath

func ConfigPath(home string) string

ConfigPath returns the default path to the config file

func DBDir

func DBDir(home string, name string) string

DBDir returns the database dir for the given name

func GetOONIHome

func GetOONIHome() (string, error)

GetOONIHome returns the path to the OONI Home

func MakeResultsDir

func MakeResultsDir(home string, name string, ts time.Time) (string, error)

MakeResultsDir creates and returns a directory for the result

func RequiredDirs

func RequiredDirs(home string) []string

RequiredDirs returns the required ooni home directories

Types

This section is empty.

Directories

Path Synopsis
Package strcase converts strings to snake_case or CamelCase
Package strcase converts strings to snake_case or CamelCase

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL