Documentation ¶
Index ¶
- Variables
- func ErrorCastingFailure(qualifier string) error
- func ErrorNilContext(qualifier string) error
- func ErrorNotInjected(qualifier string) error
- func ErrorResolveLoop(qualifier string) error
- func GetAll[T any](ctx context.Context, qualifier string) ([]T, error)
- func GetLast[T any](ctx context.Context, qualifier string) (T, error)
- func Register[T any](qualifier string, injector Injector[T])
- func RegisterInstance[T any](qualifier string, instance T)
- func RegisterInstances[T any](qualifier string, instances []T)
- func Release()
- func Reset()
- type Injector
- type QualifierContext
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotInjected = errors.New("qualifier not injected")
Functions ¶
func ErrorCastingFailure ¶
func ErrorNilContext ¶
func ErrorNotInjected ¶
func ErrorResolveLoop ¶
func RegisterInstance ¶ added in v0.0.15
func RegisterInstances ¶ added in v0.0.15
Types ¶
type QualifierContext ¶
type QualifierContext struct {
Name string
}
func Qualifier ¶
func Qualifier(name string) QualifierContext
Click to show internal directories.
Click to hide internal directories.