di

package
v0.14.31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	As   = dig.As
	Name = dig.Name
)

Functions

func Invoke

func Invoke(function interface{}) error

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

func ProvideSqlSession(s *gorm.DB)

Types

type Container added in v0.14.3

type Container = dig.Container

func New added in v0.14.3

func New() *Container

type In

type In = dig.In

type Out

type Out = dig.Out

type ProvideOption added in v0.14.12

type ProvideOption = dig.ProvideOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL