impl

package
v0.0.0-...-e537141 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[T any](d Deps, id deps.ID) (T, error)

Types

type Dependencies

type Dependencies map[deps.ID]any

type Deps

type Deps struct {
	// contains filtered or unexported fields
}

func DefaultDeps

func DefaultDeps() Deps

func NewDeps

func NewDeps(methods *Methods) Deps

func (Deps) GetDep

func (d Deps) GetDep(id deps.ID) (any, bool)

func (Deps) GetMulti

func (d Deps) GetMulti(deps []deps.Dep) error

func (Deps) InjectDep

func (d Deps) InjectDep(id deps.ID, dep any) error

func (Deps) InjectDeps

func (d Deps) InjectDeps(deps map[deps.ID]any) error

type Methods

type Methods struct {
	Caster  types.Caster
	Mapping *mapping.Methods
}

func DefaultMethods

func DefaultMethods() *Methods

Jump to

Keyboard shortcuts

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