Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DBcfg maintains several Database config info DBcfg DatabaseConfigModels = make(DatabaseConfigModels) // Svccfg is an entry to ServerConfigModel Svccfg *ServerConfigModel = &ServerConfigModel{} )
variables about config
Functions ¶
Types ¶
type DatabaseConfigModel ¶
type DatabaseConfigModel struct { Host string Port int Username string Password string Database string }
DatabaseConfigModel (DBcfg), model of "db" part in arapgp.server.ini
func (*DatabaseConfigModel) Unmarshal ¶
func (cfg *DatabaseConfigModel) Unmarshal(res gjson.Result)
Unmarshal is to implement interface "Unmarshaler"
type DatabaseConfigModels ¶
type DatabaseConfigModels map[string]DatabaseConfigModel
DatabaseConfigModels is map(string => DatabaseConfigModel)
func (DatabaseConfigModels) Unmarshal ¶
func (cfg DatabaseConfigModels) Unmarshal(res gjson.Result)
Unmarshal is to implement interface "Unmarshaler"
type ServerConfigModel ¶
ServerConfigModel (Svccfg), model of "server" part in arapgp.server.ini
func (*ServerConfigModel) Unmarshal ¶
func (cfg *ServerConfigModel) Unmarshal(res gjson.Result)
Unmarshal is to implement interface "Unmarshaler"
Click to show internal directories.
Click to hide internal directories.