Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(reg *Registration)
Register registers the given component implementations.
Types ¶
type LocalStubFnInfo ¶
type LocalStubFnInfo struct { Impl any Name string Interceptors []interceptor.Interceptor }
LocalStubFnInfo is the information passed to LocalStubFn.
type Registration ¶
type Registration struct { Name string // full package-prefixed component name Interface reflect.Type // interface type for the component Impl reflect.Type // implementation type (struct) Refs string LocalStubFn func(context.Context, *LocalStubFnInfo) any }
Registration is the registration information for a component.
func All ¶
func All() []*Registration
Click to show internal directories.
Click to hide internal directories.