Documentation
¶
Index ¶
- Constants
- func GenApplyStub(g *Group, typ string) (ident string)
- func GenEqual(f *File, typ string, flds []EqualFld)
- func GenFuncErrors(f *File, typ string) (ident string)
- func GenFuncFacts(f *File, typ string) (ident string)
- func GenFuncHandleStub(f *File, typ string, entity QualId) (ident string)
- func GenFuncraise(f *File, typ string) (ident string)
- func GenFuncrecordOn(f *File, typ string, entity QualId) (ident string)
- func GenGetters(f *File, typ string, flds []QualField)
- func GenMustNew(f *File, typ string, publicFlds []QualField)
- func GenNew(f *File, typ string, publicFlds []QualField, validations []Validation, ...)
- func GenSetters(f *File, typ string, flds []QualField)
- func GenStringer(f *File, typ string, flds []QualField)
- func GenUnmarshalFromStore(f *File, typ string, publicFlds, privateFlds []QualField)
- type EqualFld
- type QualField
- type QualId
- type Validation
Constants ¶
View Source
const ( // Entity Stringer string = "String" SetterPrefix = "Set" Neww = "New" MustNew = "MustNew" Equal = "Equal" UnmarshalFromStore = "UnmarshalFromStore" Apply = "Apply" // DomainCommandHandler Handle = "Handle" Facts = "Facts" FactsField = "facts" Errors = "Errors" ErrorsField = "errors" RecordOn = "recordOn" Raise = "raise" )
Constants represent invariant contract requirements that would have been too cumbersome to expose as configuration They _could_ be configuration, there is just not much gain in it.
Variables ¶
This section is empty.
Functions ¶
func GenApplyStub ¶
func GenFuncErrors ¶
func GenFuncFacts ¶
func GenFuncHandleStub ¶
func GenFuncraise ¶
func GenFuncrecordOn ¶
func GenGetters ¶
func GenMustNew ¶
func GenNew ¶
func GenNew(f *File, typ string, publicFlds []QualField, validations []Validation, validatorMethod string)
func GenSetters ¶
func GenStringer ¶
func GenUnmarshalFromStore ¶
Types ¶
type Validation ¶
Click to show internal directories.
Click to hide internal directories.