gen

package
v0.0.2-rc-ci Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.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 Field

type Field struct {
	Type            string `yaml:"type"`
	Name            string `yaml:"name"`
	GoName          string `yaml:"go_name"`
	JSONName        string `yaml:"json_name"`
	GoType          string `yaml:"go_type"`
	NotFilterable   bool   `yaml:"not_filterable"`
	NotAggregatable bool   `yaml:"not_aggregatable"`
}

func (Field) Fill

func (f Field) Fill(name string) Field

func (Field) Validate

func (f Field) Validate(name string) error

type Model

type Model struct {
	Fields       map[string]Field `yaml:"fields"`
	SearchFields map[string]Field `yaml:"searchfields"`
}

func ReadModelFile

func ReadModelFile(path string) (*Model, error)

Directories

Path Synopsis
go
ts

Jump to

Keyboard shortcuts

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