provides

package
v0.30.113 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	With     = miruken.With
	New      = miruken.NewProvider
	Explicit = miruken.Explicit
)

Functions

func All added in v0.26.0

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

func Key added in v0.26.0

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

func Type added in v0.26.0

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

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, ctx miruken.HandleContext) 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 Init added in v0.30.28

type Init = miruken.Init

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