Documentation ¶
Index ¶
- func ContextWith[T any](ctx context.Context, service T) context.Context
- func ContextWithDefaultRegistry(ctx context.Context) context.Context
- func ContextWithPtr[T any](ctx context.Context, servicePtr *T) context.Context
- func ContextWithRegistry(ctx context.Context, registry Registry) context.Context
- func FromContext[T any](ctx context.Context) T
- func MustRegister[T any](ctx context.Context, service T)
- func MustRegisterPtr[T any](ctx context.Context, servicePtr *T)
- func PtrFromContext[T any](ctx context.Context) *T
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithDefaultRegistry ¶ added in v0.2.5
func ContextWithPtr ¶
func ContextWithRegistry ¶
func FromContext ¶
func MustRegister ¶ added in v0.2.11
func MustRegisterPtr ¶ added in v0.2.11
func PtrFromContext ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.