Documentation ¶
Index ¶
- Variables
- func Invoke(function interface{}) error
- func MustInvoke(function interface{})
- func MustProvide(constructor interface{}, opt ...ProvideOption)
- func Provide(constructor interface{}, opt ...ProvideOption) error
- func ProvideCqlSession(s gocqlx.Session)
- func ProvideSqlSession(s *gorm.DB)
- type Container
- type In
- type Out
- type ProvideOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ( As = dig.As Name = dig.Name )
Functions ¶
func MustInvoke ¶
func MustInvoke(function interface{})
func MustProvide ¶
func MustProvide(constructor interface{}, opt ...ProvideOption)
func Provide ¶
func Provide(constructor interface{}, opt ...ProvideOption) error
func ProvideCqlSession ¶ added in v0.14.3
func ProvideCqlSession(s gocqlx.Session)
func ProvideSqlSession ¶ added in v0.14.3
Types ¶
type ProvideOption ¶ added in v0.14.12
type ProvideOption = dig.ProvideOption
Click to show internal directories.
Click to hide internal directories.