scan

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package scan defines scanning responsibilities for struct/DQL inputs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Path      string
	Name      string
	Index     []int
	Type      reflect.Type
	Tag       reflect.StructTag
	Anonymous bool

	HasViewTag  bool
	HasStateTag bool
	ViewTag     *tags.Tag
	StateTag    *tags.Tag
}

Field describes one scanned struct field.

type Result

type Result struct {
	RootType    reflect.Type
	EmbedFS     *embed.FS
	Fields      []*Field
	ByPath      map[string]*Field
	ViewFields  []*Field
	StateFields []*Field
}

Result holds scan output produced from a struct source.

type StructScanner

type StructScanner struct{}

StructScanner scans arbitrary struct types and extracts Datly-relevant tags.

func New

func New() *StructScanner

New returns a Scanner implementation for shape facade.

func (*StructScanner) Scan

Scan implements shape.Scanner.

Jump to

Keyboard shortcuts

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