provides

package
v0.30.24 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All added in v0.26.0

func All[T any](
	handler miruken.Handler,
	constraints ...any,
) (t []T, tp *promise.Promise[[]T], err error)

func Key added in v0.26.0

func Key[T any](
	handler miruken.Handler,
	key any,
	constraints ...any,
) (t T, tp *promise.Promise[T], err error)

func NewProvider

func NewProvider(value any) miruken.Handler

func Type added in v0.26.0

func Type[T any](
	handler miruken.Handler,
	constraints ...any,
) (T, *promise.Promise[T], error)

func With

func With(values ...any) miruken.BuilderFunc

Types

type Builder

type Builder = miruken.ProvidesBuilder

type For added in v0.28.0

type For[T any] struct {
	// contains filtered or unexported fields
}

For matches dependencies against a parent receiver.

func (*For[T]) Implied added in v0.28.0

func (f *For[T]) Implied() bool

func (*For[T]) Init added in v0.28.0

func (f *For[T]) Init() error

func (*For[T]) Required added in v0.28.0

func (f *For[T]) Required() bool

func (*For[T]) Satisfies added in v0.28.0

func (f *For[T]) Satisfies(
	required miruken.Constraint,
	callback miruken.Callback,
) bool

type ForGraph added in v0.28.0

type ForGraph[T any] struct {
	For[T]
}

ForGraph matches dependencies against a receiver hierarchy.

func (*ForGraph[T]) Init added in v0.28.0

func (f *ForGraph[T]) Init() error

type It

type It = miruken.Provides

type Single

type Single = miruken.Single

type Strict added in v0.25.0

type Strict = miruken.Strict

Jump to

Keyboard shortcuts

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