Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Holder{}
Functions ¶
func SetupConfig ¶
func SetupConfig(fileName string)
Types ¶
type HTTPSServer ¶
type HTTPSServer struct {
Enabled bool `toml:"enabled"`
Address string `toml:"address"`
Port int `toml:"port"`
APIUserAgent string `toml:"api_user_agent"`
TlsConfiguration HttpsTlsConfiguration `toml:"tls_configuration"`
}
HTTPSServer -------------- HTTPS config holders --------------
type Holder ¶
type Holder struct {
Debug bool `toml:"debug"`
HTTPSServer HTTPSServer `toml:"https_server"`
SQLLiteConfiguration SQLLiteConfiguration `toml:"database"`
Tokenizer Tokenizer `toml:"tokenizer"`
}
var ConfigHolder Holder
type HttpsTlsConfiguration ¶
type SQLLiteConfiguration ¶
type SQLLiteConfiguration struct {
Enabled bool `toml:"enabled"`
DatabaseFileLocation string `toml:"file_location"`
}
SQLLiteConfiguration -------------- SQLLite config holders --------------
Click to show internal directories.
Click to hide internal directories.