di

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func As

func As[T any](ctr any, group string) any

func AsHandler

func AsHandler(ctr any, group string) any

func AsOnlyGroup

func AsOnlyGroup(ctr any, group string) any

func ByValue

func ByValue[T any](t T) func() T

Types

type Injector

type Injector struct {
	// contains filtered or unexported fields
}

func NewInjector

func NewInjector() *Injector

func (*Injector) Decorate

func (d *Injector) Decorate(ctr ...any)

func (*Injector) Invoke

func (d *Injector) Invoke(ctr ...any)

func (*Injector) Provide

func (d *Injector) Provide(ctr ...any)

func (*Injector) Start

func (d *Injector) Start(timeout time.Duration) error

Jump to

Keyboard shortcuts

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