Documentation ¶
Index ¶
- Constants
- func NeedEdgeCreate(sch *Schema, cfg *annotations.EdgeConfig) bool
- func NeedEdgeDelete(sch *Schema, cfg *annotations.EdgeConfig) bool
- func NeedEdgeRead(sch *Schema, cfg *annotations.EdgeConfig) bool
- func NeedEdgeUpdate(sch *Schema, cfg *annotations.EdgeConfig) bool
- type Edge
- type EdgeType
- type Entity
- type Field
- type FieldType
- type Openapi
- type Parser
- type Schema
- type TypeInfo
Constants ¶
View Source
const ( EdgeO2O = iota EdgeO2M EdgeM2O EdgeM2M )
View Source
const ImportsEntities = "entities"
Variables ¶
This section is empty.
Functions ¶
func NeedEdgeCreate ¶ added in v0.0.30
func NeedEdgeCreate(sch *Schema, cfg *annotations.EdgeConfig) bool
func NeedEdgeDelete ¶ added in v0.0.30
func NeedEdgeDelete(sch *Schema, cfg *annotations.EdgeConfig) bool
func NeedEdgeRead ¶
func NeedEdgeRead(sch *Schema, cfg *annotations.EdgeConfig) bool
func NeedEdgeUpdate ¶ added in v0.0.30
func NeedEdgeUpdate(sch *Schema, cfg *annotations.EdgeConfig) bool
Types ¶
type Edge ¶
type Entity ¶
type Entity struct { Model any Path string Name string NeedFlat bool Fields []Field Edges []*Edge HasReadEdges bool HasCreateEdges bool HasUpdateEdges bool HasDeleteEdges bool Config *annotations.EntityConfig }
func (Entity) GetIDField ¶
type FieldType ¶
type FieldType uint8
func (FieldType) OApiTypeName ¶
func (FieldType) ProtoTypeName ¶
func (FieldType) TemplateName ¶
Click to show internal directories.
Click to hide internal directories.