Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct { // Driver database driven Driver string `json:"driver" yaml:"Driver"` // Source connection string Source string `json:"source" yaml:"Source"` // ShowSQL whether to display the SQL statement ShowSQL bool `json:"showSQL" yaml:"ShowSQL"` // MaxOpenConn number of database connections MaxOpenConn int `json:"maxOpenConn" yaml:"MaxOpenConn" ` // MaxIdleConn maximum number of idle database connections MaxIdleConn int `json:"maxIdleConn" yaml:"MaxIdleConn" ` // Cache cache size Cache int `json:"cache" yaml:"Cache"` }
DB database config
type Server ¶
type Server struct { // Address listen address Address string `json:"address" yaml:"Address"` // CertFile certificate verification file CertFile string `json:"CertFile" yaml:"CertFile"` // KeyFile certificate KeyFile string `json:"keyFile" yaml:"KeyFile"` // Release is it a release version Release bool `json:"release" yaml:"Release"` }
Server server config
Click to show internal directories.
Click to hide internal directories.