scanner

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 5 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, err bool)

type ScanPolicy added in v1.3.6

type ScanPolicy interface {
	Tag() string
	ExtHandler() ExtTagHandler
}

func DefaultScanPolicy added in v1.3.6

func DefaultScanPolicy(tag string, handler ExtTagHandler) ScanPolicy

type Scanner

type Scanner interface {
	AddTags(policies []ScanPolicy)
	ScanComponent(c any) *meta.Meta
	ScanNodes(source *meta.Holder, policy ScanPolicy) []*meta.Node
}

func Default added in v1.3.0

func Default() Scanner

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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