registry

package
v0.0.0-...-c5057df Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SetLogger func(impl any, logger *slog.Logger) error

	HasRefs func(impl any) bool

	FillRefs func(impl any, get func(reflect.Type) (any, error)) error
)

Functions

func GetImpl

func GetImpl(r reflect.Type, tag string) (any, error)

func GetIntf

func GetIntf(r reflect.Type, tag string) (any, error)

func Register

func Register(reg Registration)

Types

type Registration

type Registration struct {
	Iface reflect.Type
	Impl  reflect.Type
}

Jump to

Keyboard shortcuts

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