di

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Dig = NewDI()

	Type = reflect.TypeOf(NewDI())
)

Functions

func Group

func Group(group string) utils.OptionFunc[provideOption]

func Name

func Name(name string) utils.OptionFunc[provideOption]

Types

type DI

type DI interface {
	Invoke(fn any) error
	MustInvoke(fn any)
	Provide(fn any, opts ...utils.OptionExtender) error
	MustProvide(fn any, opts ...utils.OptionExtender) DI
	Decorate(decorator any) error
	MustDecorate(decorator any) DI
	String() string
	Clear()
	Preload()
}

func NewDI

func NewDI() DI

type In

type In struct {
	dig.In
}

type Out

type Out struct {
	dig.Out
}

Jump to

Keyboard shortcuts

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