meta

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InjectTag  = "wire"
	ProduceTag = "produce"
	PropTag    = "prop"
)

Variables

This section is empty.

Functions

func GetComponentName

func GetComponentName(t any) string

func StringEscape

func StringEscape(s string) string

Types

type Meta

type Meta struct {
	Name      string
	Address   string
	Raw       interface{}
	Type      reflect.Type
	Value     reflect.Value
	Produce   []*Meta
	DependsBy []*Meta

	Dependencies    []*Node
	Properties      []*Node
	CustomizedField []*Node
}

func (*Meta) AllDependencies

func (m *Meta) AllDependencies() []*Node

func (*Meta) DependBy

func (m *Meta) DependBy(parent *Meta)

func (*Meta) ID

func (m *Meta) ID() string

type Node

type Node struct {
	Field   reflect.StructField
	Tag     string
	TagVal  string
	Type    reflect.Type
	Value   reflect.Value
	Injects []*Meta
}

func (*Node) Id

func (n *Node) Id() string

func (*Node) Inject

func (n *Node) Inject(m ...*Meta)

Jump to

Keyboard shortcuts

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