Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupConfig ¶
func SetupConfig(configFilename string)
SetupConfig read config file and store properties into Properties
Types ¶
type ServerProperties ¶ added in v1.2.5
type ServerProperties struct {
Bind string `cfg:"bind"`
Port int `cfg:"port"`
AppendOnly bool `cfg:"appendOnly"`
AppendFilename string `cfg:"appendFilename"`
MaxClients int `cfg:"maxclients"`
RequirePass string `cfg:"requirepass"`
Databases int `cfg:"databases"`
RDBFilename string `cfg:"dbfilename"`
Peers []string `cfg:"peers"`
Self string `cfg:"self"`
}
ServerProperties defines global config properties
var Properties *ServerProperties
Properties holds global config properties
Click to show internal directories.
Click to hide internal directories.