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{})
- type ChannelDI
- type CommonDI
Constants ¶
View Source
const (
CtxServDiKey = util.CtxKey("ServiceDI")
)
Variables ¶
This section is empty.
Functions ¶
func GetDiByCtx ¶ added in v1.0.0
func InitConfByByte ¶ added in v1.0.0
func InitConfByByte(b []byte, di interface{})
func InitConfByFile ¶
func InitConfByFile(f string, di interface{})
func InitConfByUri ¶ added in v0.17.5
func InitDefaultConf ¶
func InitDefaultConf(path string, di interface{})
Types ¶
Directories ¶
Path | Synopsis |
---|---|
model
|
|
Package util provides a variety of handy functions while developing backends
|
Package util provides a variety of handy functions while developing backends |
Click to show internal directories.
Click to hide internal directories.