registry

package
v0.0.0-...-bb15537 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 8 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
	InitComponent func(impl any, ctx context.Context) error
)

Functions

func GetImpl

func GetImpl(ctx context.Context, r reflect.Type) (any, error)

func GetIntf

func GetIntf(ctx context.Context, 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