Help us shape the future of Go! Take the 2026 Go Developer Survey

resolving

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: AGPL-3.0 Imports: 6 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Activate added in v0.6.0

func Activate[T any](resolver types.Resolver, ctx context.Context, activatorFunc any, options ...types.ResolverOptionsFunc) (T, error)

func NewResolver

func NewResolver(registry types.ServiceRegistry) types.Resolver

func NewScopedContext added in v0.5.1

func NewScopedContext(ctx context.Context) context.Context

func ResolveRequiredService

func ResolveRequiredService[T any](resolver types.Resolver, ctx context.Context) (T, error)

func ResolveRequiredServices added in v0.5.0

func ResolveRequiredServices[T any](resolver types.Resolver, ctx context.Context) ([]T, error)

func WithInstance

func WithInstance[T any](instance T) types.ResolverOptionsFunc

Types

type NamedServiceResolverActivatorFunc added in v0.6.0

type NamedServiceResolverActivatorFunc[T any] func(types.Resolver) func(string) (T, error)

func CreateNamedServiceResolverActivatorFunc added in v0.6.0

func CreateNamedServiceResolverActivatorFunc[T any]() NamedServiceResolverActivatorFunc[T]

Jump to

Keyboard shortcuts

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