metamodel

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Config         util.ValueMap             `json:"config,omitzero"`
	ConfigFile     jsontext.Value            `json:"-"`
	Enums          enum.Enums                `json:"enums,omitempty"`
	EnumFiles      map[string]jsontext.Value `json:"-"`
	Events         model.Events              `json:"events,omitempty"`
	EventFiles     map[string]jsontext.Value `json:"-"`
	Models         model.Models              `json:"models,omitempty"`
	ModelFiles     map[string]jsontext.Value `json:"-"`
	Groups         model.Groups              `json:"groups,omitempty"`
	GroupsFile     jsontext.Value            `json:"-"`
	Acronyms       []string                  `json:"acronyms,omitempty"`
	ExtraTypes     model.Models              `json:"extraTypes,omitempty"`
	ExtraTypesFile jsontext.Value            `json:"-"`
	Modules        []string                  `json:"-"`
	Database       string                    `json:"-"`
}

func (*Args) ApplyAcronyms

func (a *Args) ApplyAcronyms(acronyms ...string)

func (*Args) Audit

func (a *Args) Audit(m *model.Model) bool

func (*Args) DBRef

func (a *Args) DBRef() string

func (*Args) DatabaseNow

func (a *Args) DatabaseNow() string

func (*Args) Empty

func (a *Args) Empty() bool

func (*Args) HasModule

func (a *Args) HasModule(key string) bool

func (*Args) Validate

func (a *Args) Validate() error

type StringProvider added in v1.9.0

type StringProvider interface {
	PackageName() string
	Camel() string
	CamelLower() string
	CamelPlural() string
	Proper() string
	ProperPlural() string
	Kebab() string
	FirstLetter() string
	PackageWithGroup(prefix string) string
	GroupLen() int
	GroupAndPackage() []string
	ConfigMap() util.ValueMap
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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