registry

package
v1.2.18 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option added in v1.2.0

type Option func(m *meta.Meta) bool

func FuncName added in v1.2.0

func FuncName(fn string) Option

func FuncNameAndResult added in v1.2.0

func FuncNameAndResult(fn, result string) Option

func Interface added in v1.2.0

func Interface(a any) Option

func InterfaceType added in v1.2.0

func InterfaceType(typ reflect.Type) Option

func Type added in v1.2.0

func Type(typ reflect.Type) Option

type Registry

type Registry interface {
	Register(cs ...any)
	SetScanner(scanner scanner.Scanner)
	SetExtraTags(tags ...string)
	Scan()
	GetComponents(opts ...Option) []*meta.Meta
	GetComponentByName(name string) *meta.Meta
	RemoveComponents(name string)
	ComponentInited(name string)
	IsComponentInited(name string) bool
}

func GlobalRegistry added in v1.2.4

func GlobalRegistry() Registry

func NewRegistry

func NewRegistry() Registry

Jump to

Keyboard shortcuts

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