Documentation ¶
Index ¶
Constants ¶
View Source
const ( SEP_POINT = "." TPL_SYMBOL = "{{}}" )
Variables ¶
View Source
var ( // Cmc ... Cmc *cmc // ConfuSrv ... ConfuSrv *confu )
View Source
var ( CmcIp = "{{IP}}" CmcPort = "{{PORT}}" CmcAddr = "{{ADDR}}" CmcDsn = "{{DSN}}" CmcUrl = "{{URL}}" CmcUserName = "{{USERNAME}}" CmcPassword = "{{PASSWORD}}" CmcAll = "{{ALL}}" // 全部解析 CmcArr = []string{CmcIp, CmcPort, CmcUserName, CmcPassword, CmcAddr, CmcDsn, CmcUrl, CmcAll} )
Functions ¶
Types ¶
type CmcToml ¶ added in v0.3.0
type CmcToml struct { Viper *viper.Viper view.RespOneConfig // contains filtered or unexported fields }
func InitCmcToml ¶ added in v0.3.0
func InitCmcToml(db *gorm.DB, value view.RespOneConfig) *CmcToml
func (*CmcToml) ParseConfig ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.