Documentation ¶
Overview ¶
Package config manages custom configuration for FastGate
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // LogFile points to the desired log path chosen in the configuration file ( including STDOUT ). LogFile io.Writer // TLSEnabled is used to tell if the config package was os was not able to load key and certification pair from the specified path. TLSEnabled bool // ConfigParams *configStruct stores the values found in the config file, or the default values. ConfigParams = configStruct{ LogLocation: "", HTTPPort: "8000", HTTPSPort: "8443", TLSKeyLocation: "./devssl/server.key", TLSCertLocation: "./devssl/server.pem", DatabasePath: "./fastgate.db", Debug: true, ProxyMode: true, } )
Functions ¶
func ReadConfig ¶
ReadConfig tries to read a file in the provided path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.