Documentation ¶
Overview ¶
Package settings handles the BitMonster settings.
Index ¶
Constants ¶
View Source
const ( ENVPrefix = "BM" // The socket types SocketTypeTCP = "tcp" SocketTypeUnix = "unix" )
Variables ¶
View Source
var ( // Create the initial settings value with default values. Settings = settings{ AutoCatchInterrupts: true, ListenAddress: ":9000", SocketType: SocketTypeTCP, DBAddress: "localhost:28015", DBName: "test", DBAuthKey: "", DBMaxIdle: 50, DBMaxOpen: 50, DBTimeout: time.Minute, AuthHashKey: defaultAuthHashKey, AuthBlockKey: defaultAuthBlockKey, AuthSessionMaxAge: 60 * 60 * 24 * 14, } )
Functions ¶
func LoadFromENV ¶
func LoadFromENV() error
LoadFromENV loads the settings from the environment variables.
Types ¶
type FileServer ¶
Click to show internal directories.
Click to hide internal directories.