domain

package
v0.0.0-...-25ab0ae Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name          string     // Go field name
	DBName        string     // Database column name
	Type          FieldType  // Field type classification
	TypeName      string     // Go type name
	GoType        string     // Full Go type (e.g., "*time.Time")
	PointedToType *FieldType // For pointers, the type being pointed to (e.g., FieldTypeTime for *time.Time)
}

Field represents a struct field with its metadata

func (Field) IsFilterable

func (f Field) IsFilterable() bool

IsFilterable returns true if the field can be used in filters

func (Field) SupportedOperators

func (f Field) SupportedOperators() []repository.Operator

SupportedOperators returns the operators supported by this field type

type FieldType

type FieldType int

FieldType represents the type classification of a struct field

const (
	FieldTypeUnknown FieldType = iota
	FieldTypeString
	FieldTypeNumeric
	FieldTypeTime
	FieldTypeBool
	FieldTypePointer
	FieldTypeSlice
	FieldTypeStruct
	FieldTypeMap
)

func (FieldType) String

func (ft FieldType) String() string

String returns the string representation of FieldType

type Method

type Method struct {
	Name          string // Method name
	Receiver      string // Receiver type and name
	Parameters    string // Parameter list
	ReturnType    string // Return type
	Body          string // Method body
	Documentation string // Method documentation
}

Method represents a generated method

type Struct

type Struct struct {
	Name        string  // Go struct name
	PackageName string  // Package name
	Fields      []Field // Struct fields
}

Struct represents a Go struct with querybuilder generation metadata

func (Struct) FilterableFields

func (s Struct) FilterableFields() []Field

FilterableFields returns only the fields that can be used in filters

Jump to

Keyboard shortcuts

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