Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(location LocationEnum) string

func GetBaseDir

func GetBaseDir(baseDir BaseDirEnum) string

func GetTimestamped

func GetTimestamped(key LocationEnum) string

func SetBaseDir

func SetBaseDir(baseDirName BaseDirEnum, path string) error

Types

type BaseDirEnum

type BaseDirEnum string
const (
	// Overridden by -home flag
	ConfigBaseDir BaseDirEnum = "config"
	DataBaseDir   BaseDirEnum = "data"
	// User's home directory, *not* -home flag
	UserHomeBaseDir BaseDirEnum = "userHome"

	LevelDBDir = "index-v0.14.0.db"
)

type LocationEnum

type LocationEnum string
const (
	ConfigFile    LocationEnum = "config"
	CertFile      LocationEnum = "certFile"
	KeyFile       LocationEnum = "keyFile"
	HTTPSCertFile LocationEnum = "httpsCertFile"
	HTTPSKeyFile  LocationEnum = "httpsKeyFile"
	Database      LocationEnum = "database"
	LogFile       LocationEnum = "logFile"
	CsrfTokens    LocationEnum = "csrfTokens"
	PanicLog      LocationEnum = "panicLog"
	AuditLog      LocationEnum = "auditLog"
	GUIAssets     LocationEnum = "GUIAssets"
	DefFolder     LocationEnum = "defFolder"
	FailuresFile  LocationEnum = "FailuresFile"
)

Use strings as keys to make printout and serialization of the locations map more meaningful.

Source Files