Documentation
¶
Index ¶
- Constants
- func GetDiByCtx(ctx context.Context) interface{}
- func IniConfByEnv(path, env string, di interface{})
- func InitConfByByte(b []byte, di interface{})
- func InitConfByFile(f string, di interface{})
- func InitConfByUri(uri string, di interface{}) error
- func InitDefaultConf(path string, di interface{})
Constants ¶
View Source
const (
CtxServDiKey util.CtxKey = "ServiceDI"
)
Variables ¶
This section is empty.
Functions ¶
func GetDiByCtx ¶ added in v0.0.6
func IniConfByEnv ¶ added in v0.0.6
func IniConfByEnv(path, env string, di interface{})
初始化設定檔,讀YAML檔
func InitConfByByte ¶ added in v0.0.6
func InitConfByByte(b []byte, di interface{})
func InitConfByFile ¶ added in v0.0.6
func InitConfByFile(f string, di interface{})
func InitConfByUri ¶ added in v0.0.6
func InitDefaultConf ¶ added in v0.0.6
func InitDefaultConf(path string, di interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.