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.4.0"
ProductVersion is the current version of EliasDB
Variables ¶
View Source
var Config map[string]interface{}
Config is the actual config which is used
View Source
var DefaultConfig = map[string]interface{}{ MemoryOnlyStorage: false, EnableReadOnly: false, EnableECALScripts: false, EnableECALDebugServer: false, EnableWebFolder: true, EnableAccessControl: false, EnableWebTerminal: true, EnableCluster: false, EnableClusterTerminal: false, LocationDatastore: "db", LocationHTTPS: "ssl", LocationWebFolder: "web", LocationUserDB: "users.db", LocationAccessDB: "access.db", HTTPSHost: "127.0.0.1", HTTPSPort: "9090", CookieMaxAgeSeconds: "86400", HTTPSCertificate: "cert.pem", HTTPSKey: "key.pem", LockFile: "eliasdb.lck", ResultCacheMaxSize: 0, ResultCacheMaxAgeSeconds: 0, ClusterStateInfoFile: "cluster.stateinfo", ClusterConfigFile: "cluster.config.json", ClusterLogHistory: 100.0, ECALScriptFolder: "scripts", ECALWorkerCount: 10, ECALEntryScript: "main.ecal", ECALLogLevel: "info", ECALLogFile: "", ECALDebugServerHost: "127.0.0.1", ECALDebugServerPort: "33274", }
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 LoadConfigFile ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.