config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MemoryOnlyStorage        = "MemoryOnlyStorage"
	LocationDatastore        = "LocationDatastore"
	LocationHTTPS            = "LocationHTTPS"
	LocationWebFolder        = "LocationWebFolder"
	LocationUserDB           = "LocationUserDB"
	LocationAccessDB         = "LocationAccessDB"
	HTTPSCertificate         = "HTTPSCertificate"
	HTTPSKey                 = "HTTPSKey"
	LockFile                 = "LockFile"
	HTTPSHost                = "HTTPSHost"
	HTTPSPort                = "HTTPSPort"
	CookieMaxAgeSeconds      = "CookieMaxAgeSeconds"
	EnableReadOnly           = "EnableReadOnly"
	EnableECALScripts        = "EnableECALScripts"
	EnableECALDebugServer    = "EnableECALDebugServer"
	EnableWebFolder          = "EnableWebFolder"
	EnableAccessControl      = "EnableAccessControl"
	EnableWebTerminal        = "EnableWebTerminal"
	EnableCluster            = "EnableCluster"
	EnableClusterTerminal    = "EnableClusterTerminal"
	ResultCacheMaxSize       = "ResultCacheMaxSize"
	ResultCacheMaxAgeSeconds = "ResultCacheMaxAgeSeconds"
	ClusterStateInfoFile     = "ClusterStateInfoFile"
	ClusterConfigFile        = "ClusterConfigFile"
	ClusterLogHistory        = "ClusterLogHistory"
	ECALScriptFolder         = "ECALScriptFolder"
	ECALWorkerCount          = "ECALWorkerCount"
	ECALEntryScript          = "ECALEntryScript"
	ECALLogLevel             = "ECALLogLevel"
	ECALLogFile              = "ECALLogFile"
	ECALDebugServerHost      = "ECALDebugServerHost"
	ECALDebugServerPort      = "ECALDebugServerPort"
)

Known configuration options for EliasDB

View Source
const ProductVersion = "1.3.0"

ProductVersion is the current version of EliasDB

Variables

View Source
var Config map[string]interface{}

Config is the actual config which is used

DefaultConfig is the defaut configuration

View Source
var DefaultConfigFile = "eliasdb.config.json"

DefaultConfigFile is the default config file which will be used to configure EliasDB

Functions

func Bool

func Bool(key string) bool

Bool reads a config value as a boolean value.

func Int

func Int(key string) int64

Int reads a config value as an int value.

func LoadConfigFile

func LoadConfigFile(configfile string) error

LoadConfigFile loads a given config file. If the config file does not exist it is created with the default options.

func LoadDefaultConfig

func LoadDefaultConfig()

LoadDefaultConfig loads the default configuration.

func Str

func Str(key string) string

Str reads a config value as a string value.

func WebPath

func WebPath(parts ...string) string

WebPath returns a path relative to the web directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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