inverse

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: GPL-3.0 Imports: 5 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorCastingFailure

func ErrorCastingFailure(qualifier string) error

func ErrorNilContext

func ErrorNilContext(qualifier string) error

func ErrorNotInjected

func ErrorNotInjected(qualifier string) error

func ErrorResolveLoop

func ErrorResolveLoop(qualifier string) error

func GetAll

func GetAll[T any](ctx context.Context, qualifier string) ([]T, error)

func GetLast

func GetLast[T any](ctx context.Context, qualifier string) (T, error)

func Register

func Register(qualifier string, injector Injector)

func Release

func Release()

func Reset

func Reset()

Types

type Injector

type Injector func(context.Context) (any, error)

type QualifierContext

type QualifierContext struct {
	Name string
}

func Qualifier

func Qualifier(name string) QualifierContext

Jump to

Keyboard shortcuts

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