scanner

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtTagHandler

type ExtTagHandler func(field reflect.StructField, value reflect.Value) (tag string, tagVal string, ok bool)

type ScanPolicy added in v1.3.6

type ScanPolicy interface {
	Group() meta.NodeType
	Tag() string
	ExtHandler() ExtTagHandler
}

func NewComponentScanPolicy added in v1.4.0

func NewComponentScanPolicy(tag string, handler ExtTagHandler) ScanPolicy

func NewConfigurationScanPolicy added in v1.4.0

func NewConfigurationScanPolicy(tag string, handler ExtTagHandler) ScanPolicy

type Scanner

type Scanner interface {
	AddScanPolicies(policies ...ScanPolicy)
	ScanComponent(c any) *meta.Meta
}

func Default added in v1.3.0

func Default() Scanner

func NewScanner added in v1.4.0

func NewScanner(policies ...ScanPolicy) Scanner

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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