locations

package
v1.4.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: MPL-2.0 Imports: 7 Imported by: 1

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 (
	ConfigBaseDir BaseDirEnum = "config"
	HomeBaseDir   BaseDirEnum = "home"
)

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"
)

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

Jump to

Keyboard shortcuts

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