registry

package
v0.0.0-...-86833b7 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[Type any](c *container.Registry) Type

func Provider

func Provider[Type any](c *container.Registry, builder func(registry *container.Registry) Type) (err error)

func Set

func Set[Type any](c ContainerAware, val Type) (err error)

Types

type ContainerAware

type ContainerAware interface {
	Container() *container.Registry
}

type Definer

type Definer[Type any] interface {
	Config(d TypeDefinition[Type]) error
}

type LifeCycle

type LifeCycle string

type TypeDefinition

type TypeDefinition[Type any] struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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