package
0.13.0
Repository: https://github.com/veertech/go-kallax.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewField creates a new field with its name, type and struct tag.
NewGenerator creates a new generator that can save on the given filename.
NewModel creates a new model with the given name.
NewPackage creates a new package.
NewProcessor creates a new Processor for the given path and ignored files.

# Constants

AfterDelete is an event that will happen after Delete.
AfterInsert is an event that will happen after Insert operations.
AfterSave is an event that will happen after Insert or Update operations.
AfterUpdate is an event that will happen after Update operations.
Array is a field with an array type.
BaseModel is the type name of the kallax base model.
Basic is a field with a basic type.
BeforeDelete is an event that will happen before Delete.
BeforeInsert is an event that will happen before Insert operations.
BeforeSave is an event that will happen before Insert or Update operations.
BeforeUpdate is an event that will happen before Update operations.
Interface is a field with an interface type.
Map is a field with a map type.
QueryNamePattern is the pattern used to name queries.
Relationship is a field which is a relationship to other model/s.
ResultSetNamePattern is the pattern used to name result sets.
Slice is a field with a slice type.
StoreNamePattern is the pattern used to name stores.
Struct is a field with a struct type.

# Variables

Base is the default Template instance with all templates preloaded.

# Structs

Field is the representation of a model field.
Generator is in charge of generating files for packages.
Model is the representation of an user-defined model.
Package is the representation of a scanned package.
Processor is in charge of processing the package in a patch and scan models from it.
Template renders the kallax templates using given packages.
TemplateData is the structure passed to fill the templates.

# Type aliases

Event is the name of an event.
Events is a collection of events.
FieldKind is the kind of a field.