Documentation
¶
Index ¶
- Constants
- type Field
- type Filter
- type HTTPDefaults
- type IDDefaults
- type IR
- type List
- type Logging
- type Manifest
- type Methods
- type Options
- type OrderingPolicy
- type Outputs
- type Resource
- type Result
- type SchemaInfo
- type SoftDelete
- type Sort
- type TabularMethods
- type TabularPart
- type TabularQueries
- type TemplateEntry
- type Transaction
Constants ¶
View Source
const IRVersion = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPDefaults ¶
type IDDefaults ¶
type IR ¶
type IR struct {
IRVersion int
SpecVersion int
Workdir string
ModulePath string
Output Outputs
Logging Logging
ID IDDefaults
HTTP HTTPDefaults
Schema SchemaInfo
Resources []*Resource
}
type Manifest ¶
type Manifest struct {
Version int `yaml:"version"`
RequiresIRVersion int `yaml:"requires_ir_version"`
Templates []*TemplateEntry `yaml:"templates"`
}
func ParseManifest ¶
type OrderingPolicy ¶
type Resource ¶
type Resource struct {
Name string
Dir string
Schema string
Table string
Route string
Kind string
GoName string
Package string
DomainPkg string
RepoPkg string
ServicePkg string
TransPkg string
DomainImport string
RepoImport string
ServiceImport string
TransportImport string
SQLCImport string
HTTPImport string
IDMode string
PK Field
Fields []Field
CreateFields []Field
PatchFields []Field
ResponseFields []Field
Methods Methods
List *List
Tabular []TabularPart
HasTabular bool
HasTabularReplaceAll bool
SoftDelete *SoftDelete
Transaction *Transaction
}
type SchemaInfo ¶
type SchemaInfo struct {
Hash string
}
type SoftDelete ¶
type TabularMethods ¶
type TabularPart ¶
type TabularPart struct {
Name string
Dir string
Table string
Route string
FKField string
FKGoName string
IDField string
IDGoName string
IDDomainType string
IDMode string
UniqueFields []string
UniqueFieldsInfo []Field
PatchKeys []Field
Methods TabularMethods
Ordering *OrderingPolicy
List *List
Fields []Field
CreateFields []Field
PatchFields []Field
ResponseFields []Field
ReplaceKey *Field
Queries TabularQueries
}
type TabularQueries ¶
type TemplateEntry ¶
type Transaction ¶
type Transaction struct {
RequiredFor []string
}
Click to show internal directories.
Click to hide internal directories.