Documentation ¶
Index ¶
- type Alias
- type AnnoContext
- type Annotations
- type App
- type AppAnnoContext
- type AppAnnotation
- type AppContext
- type AppTag
- type Endpoint
- type EndpointAnnoContext
- type EndpointAnnotation
- type EndpointContext
- type EndpointEvent
- type EndpointEventAppName
- type EndpointTag
- type Enum
- type Event
- type EventAnnoContext
- type EventAnnotation
- type EventContext
- type EventTag
- type Field
- type FieldAnnoContext
- type FieldAnnotation
- type FieldConstraint
- type FieldConstraintLength
- type FieldContext
- type FieldTag
- type Import
- type ImportContext
- type Location
- type Mixin
- type MixinAnnoContext
- type MixinAnnotation
- type MixinContext
- type MixinTag
- type Param
- type ParamAnnoContext
- type ParamAnnotation
- type ParamContext
- type ParamTag
- type QueryParam
- type Rest
- type Schema
- type SourceContext
- type SourceContexts
- type Statement
- type StatementAnnoContext
- type StatementAnnotation
- type StatementContext
- type StatementParent
- type StatementReturn
- type StatementReturnAttrs
- type StatementTag
- type Table
- type Tags
- type Type
- type TypeAnnoContext
- type TypeAnnotation
- type TypeContext
- type TypePrimitive
- type TypeRef
- type TypeSequence
- type TypeSet
- type TypeTag
- type TypeTuple
- type View
- type ViewAnnoContext
- type ViewAnnotation
- type ViewContext
- type ViewTag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnoContext ¶ added in v0.512.0
type AnnoContext struct { App []AppAnnoContext `arrai:",unordered"` Mixin []MixinAnnoContext `arrai:",unordered"` Ep []EndpointAnnoContext `arrai:",unordered"` Param []ParamAnnoContext `arrai:",unordered"` Stmt []StatementAnnoContext `arrai:",unordered"` Event []EventAnnoContext `arrai:",unordered"` Type []TypeAnnoContext `arrai:",unordered"` Field []FieldAnnoContext `arrai:",unordered"` View []ViewAnnoContext `arrai:",unordered"` }
type Annotations ¶
type Annotations struct { App []AppAnnotation `arrai:",unordered"` Mixin []MixinAnnotation `arrai:",unordered"` Ep []EndpointAnnotation `arrai:",unordered"` Param []ParamAnnotation `arrai:",unordered"` Stmt []StatementAnnotation `arrai:",unordered"` Event []EventAnnotation `arrai:",unordered"` Type []TypeAnnotation `arrai:",unordered"` Field []FieldAnnotation `arrai:",unordered"` View []ViewAnnotation `arrai:",unordered"` }
type AppAnnoContext ¶ added in v0.512.0
type AppAnnoContext struct { AnnoSrcs []SourceContext AppName []string AnnoName string }
type AppAnnotation ¶
type AppContext ¶
type AppContext struct { AppName []string AppSrc SourceContext AppSrcs []SourceContext }
type EndpointAnnoContext ¶ added in v0.512.0
type EndpointAnnoContext struct { AnnoSrcs []SourceContext AppName []string EpName string AnnoName string }
type EndpointAnnotation ¶
type EndpointContext ¶
type EndpointContext struct { AppName []string EpName string EpSrc SourceContext EpSrcs []SourceContext }
type EndpointEvent ¶
type EndpointEvent struct { AppName EndpointEventAppName EventName string }
type EndpointEventAppName ¶
type EndpointEventAppName struct {
Part []string
}
type EndpointTag ¶
type EventAnnoContext ¶ added in v0.512.0
type EventAnnoContext struct { AnnoSrcs []SourceContext AppName []string EventName string AnnoName string }
type EventAnnotation ¶
type EventContext ¶
type EventContext struct { AppName []string EventName string EventSrc SourceContext EventSrcs []SourceContext }
type Field ¶
type Field struct { AppName []string TypeName string FieldName string FieldOpt bool FieldType interface{} // Type* FieldConstraint FieldConstraint `arrai:",zeroempty"` }
type FieldAnnoContext ¶ added in v0.512.0
type FieldAnnoContext struct { AnnoSrcs []SourceContext AppName []string TypeName string FieldName string AnnoName string }
type FieldAnnotation ¶
type FieldConstraint ¶
type FieldConstraint struct { Length FieldConstraintLength Precision int32 Scale int32 }
type FieldConstraintLength ¶
type FieldContext ¶
type FieldContext struct { AppName []string TypeName string FieldName string FieldSrc SourceContext FieldSrcs []SourceContext }
type ImportContext ¶ added in v0.501.0
type ImportContext struct { Target string ImportSrc SourceContext ImportSrcs []SourceContext }
type MixinAnnoContext ¶ added in v0.512.0
type MixinAnnoContext struct { AnnoSrcs []SourceContext AppName []string MixinName []string AnnoName string }
type MixinAnnotation ¶
type MixinContext ¶
type MixinContext struct { AppName []string MixinName []string MixinSrc SourceContext MixinSrcs []SourceContext }
type ParamAnnoContext ¶ added in v0.512.0
type ParamAnnotation ¶
type ParamContext ¶
type ParamContext struct { AppName []string EpName string ParamName string ParamLoc string // enum ParamIndex int ParamSrc SourceContext ParamSrcs []SourceContext }
type QueryParam ¶
type QueryParam struct { Name string Type interface{} // Type* }
type Rest ¶
type Rest struct { Method string // GET, PUT, POST, DELETE, PATCH Path string QueryParam []QueryParam `arrai:"query_param,omitempty"` URLParam []QueryParam `arrai:"url_param,omitempty"` }
Backwards compatible. TODO: Design new structure.
type Schema ¶
type Schema struct { Import []Import App []App `arrai:",unordered"` Mixin []Mixin `arrai:",unordered"` Ep []Endpoint `arrai:",unordered"` Param []Param `arrai:",unordered"` Stmt []Statement `arrai:",unordered"` Event []Event `arrai:",unordered"` Type []Type `arrai:",unordered"` Field []Field `arrai:",unordered"` Table []Table `arrai:",unordered"` Alias []Alias `arrai:",unordered"` Enum []Enum `arrai:",unordered"` View []View `arrai:",unordered"` Anno Annotations Tag Tags Src SourceContexts }
type SourceContext ¶
type SourceContexts ¶
type SourceContexts struct { Import []ImportContext `arrai:",unordered"` App []AppContext `arrai:",unordered"` Mixin []MixinContext `arrai:",unordered"` Ep []EndpointContext `arrai:",unordered"` Param []ParamContext `arrai:",unordered"` Stmt []StatementContext `arrai:",unordered"` Event []EventContext `arrai:",unordered"` Type []TypeContext `arrai:",unordered"` Field []FieldContext `arrai:",unordered"` View []ViewContext `arrai:",unordered"` Anno AnnoContext `arrai:",unordered"` }
type Statement ¶
type Statement struct { AppName []string EpName string StmtIndex []int StmtParent StatementParent `arrai:",zeroempty"` StmtAction string `arrai:",zeroempty"` StmtCall map[string]interface{} `arrai:",zeroempty"` StmtCond map[string]interface{} `arrai:",zeroempty"` StmtLoop map[string]interface{} `arrai:",zeroempty"` StmtLoopN map[string]interface{} `arrai:",zeroempty"` StmtForeach map[string]interface{} `arrai:",zeroempty"` StmtAlt map[string]interface{} `arrai:",zeroempty"` StmtGroup map[string]interface{} `arrai:",zeroempty"` StmtRet StatementReturn `arrai:",zeroempty"` }
type StatementAnnoContext ¶ added in v0.512.0
type StatementAnnoContext struct { AnnoSrcs []SourceContext AppName []string EpName string AnnoName string StmtIndex []int }
type StatementAnnotation ¶
type StatementContext ¶
type StatementContext struct { AppName []string EpName string StmtIndex []int StmtSrc SourceContext StmtSrcs []SourceContext }
type StatementParent ¶
type StatementReturn ¶
type StatementReturn struct { Status string Attr StatementReturnAttrs Type interface{} // Type* }
type StatementReturnAttrs ¶
type StatementTag ¶
type Tags ¶
type Tags struct { App []AppTag `arrai:",unordered"` Mixin []MixinTag `arrai:",unordered"` Ep []EndpointTag `arrai:",unordered"` Param []ParamTag `arrai:",unordered"` Stmt []StatementTag `arrai:",unordered"` Event []EventTag `arrai:",unordered"` Type []TypeTag `arrai:",unordered"` Field []FieldTag `arrai:",unordered"` View []ViewTag `arrai:",unordered"` }
type TypeAnnoContext ¶ added in v0.512.0
type TypeAnnoContext struct { AnnoSrcs []SourceContext AppName []string TypeName string AnnoName string }
type TypeAnnotation ¶
type TypeContext ¶
type TypeContext struct { AppName []string TypeName string TypeSrc SourceContext TypeSrcs []SourceContext }
type TypePrimitive ¶
type TypePrimitive struct {
Primitive string
}
type TypeSequence ¶
type TypeSequence struct {
Sequence interface{} // Type*
}
type ViewAnnoContext ¶ added in v0.512.0
type ViewAnnoContext struct { AnnoSrcs []SourceContext AppName []string ViewName string AnnoName string }
type ViewAnnotation ¶
type ViewContext ¶
type ViewContext struct { AppName []string ViewName string ViewSrc SourceContext ViewSrcs []SourceContext }
Click to show internal directories.
Click to hide internal directories.