Documentation
¶
Overview ¶
Default generated models package docs (at least one file is necessary in a models package)
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
Index ¶
- Constants
- func AfterCreateFromFront[Type Gongstruct](stage *Stage, instance *Type)
- func AfterDeleteFromFront[Type Gongstruct](stage *Stage, staged, front *Type)
- func AfterReadFromFront[Type Gongstruct](stage *Stage, instance *Type)
- func ApplyDiff(b, c string) (string, error)
- func CompareGongstructByName[T PointerToGongstruct](a, b T) int
- func ComputeDiff(a, b string) string
- func CopyBranch[Type Gongstruct](from *Type) (to *Type)
- func GetAssociationName[Type Gongstruct]() *Type
- func GetFields[Type Gongstruct]() (res []string)
- func GetFieldsFromPointer[Type PointerToGongstruct]() (res []string)
- func GetGongstrucsSorted[T PointerToGongstruct](stage *Stage) (sortedSlice []T)
- func GetGongstructInstancesMap[Type Gongstruct](stage *Stage) *map[string]*Type
- func GetGongstructInstancesSet[Type Gongstruct](stage *Stage) *map[*Type]any
- func GetGongstructInstancesSetFromPointerType[Type PointerToGongstruct](stage *Stage) *map[Type]any
- func GetGongstructName[Type Gongstruct]() (res string)
- func GetNamedStructInstances[T PointerToGongstruct](set map[T]any, order map[T]uint) (res []string)
- func GetOrder[Type Gongstruct](stage *Stage, instance *Type) uint
- func GetOrderPointerGongstruct[Type PointerToGongstruct](stage *Stage, instance Type) uint
- func GetPointerReverseMap[Start, End Gongstruct](fieldname string, stage *Stage) map[*End][]*Start
- func GetPointerToGongstructName[Type PointerToGongstruct]() (res string)
- func GetReverseFieldOwner[T Gongstruct](stage *Stage, instance *T, reverseField *ReverseField) (res any)
- func GetReverseFieldOwnerName(stage *Stage, instance any, reverseField *ReverseField) (res string)
- func GetSliceOfPointersReverseMap[Start, End Gongstruct](fieldname string, stage *Stage) map[*End][]*Start
- func GetStructInstancesByOrder[T PointerToGongstruct](set map[T]any, order map[T]uint) (res []T)
- func GetStructInstancesByOrderAuto[T PointerToGongstruct](stage *Stage) (res []T)
- func GongGetMap[Type GongstructMapString](stage *Stage) *Type
- func GongGetSet[Type GongstructSet](stage *Stage) *Type
- func IntToLetters(number int32) (letters string)
- func IsStaged[Type Gongstruct](stage *Stage, instance *Type) (ok bool)
- func OnAfterUpdateFromFront[Type Gongstruct](stage *Stage, old, new *Type, mouseEvent *Gong__MouseEvent)
- func ParseAstEmbeddedFile(stage *Stage, directory embed.FS, pathToFile string) error
- func ParseAstFile(stage *Stage, pathToFile string) error
- func ParseAstFileFromAst(stage *Stage, inFile *ast.File, fset *token.FileSet) error
- func ReplaceOldDeclarationsInFile(pathToFile string) error
- func Serialize[Type Gongstruct](stage *Stage, tab Tabulator)
- func SerializeExcelize[Type Gongstruct](stage *Stage, f *excelize.File)
- func SerializeExcelizePointerToGongstruct[Type PointerToGongstruct](stage *Stage, f *excelize.File)
- func SerializeStage(stage *Stage, filename string)
- func SetCallbackAfterCreateFromFront[Type Gongstruct](stage *Stage, callback OnAfterCreateInterface[Type])
- func SetCallbackAfterDeleteFromFront[Type Gongstruct](stage *Stage, callback OnAfterDeleteInterface[Type])
- func SetCallbackAfterReadFromFront[Type Gongstruct](stage *Stage, callback OnAfterReadInterface[Type])
- func SetCallbackAfterUpdateFromFront[Type Gongstruct](stage *Stage, callback OnAfterUpdateInterface[Type])
- func SetOrchestratorOnAfterUpdate[Type Gongstruct](stage *Stage)
- func SetOrchestratorOnAfterUpdateWithMouseEvent[Type Gongstruct](stage *Stage)
- func SortGongstructSetByName[T PointerToGongstruct](set map[T]any) (sortedSlice []T)
- func StageBranch[Type Gongstruct](stage *Stage, instance *Type)
- func UnmarshallGongstructStaging(stage *Stage, cmap *ast.CommentMap, assignStmt *ast.AssignStmt, ...) (instance any, identifier string, gongstructName string, fieldName string)
- func UnstageBranch[Type Gongstruct](stage *Stage, instance *Type)
- type AllModelsStructCreateInterface
- type AllModelsStructDeleteInterface
- type BackRepoInterface
- type Cell
- func (cell *Cell) Checkout(stage *Stage) *Cell
- func (cell *Cell) Commit(stage *Stage) *Cell
- func (cell *Cell) CommitVoid(stage *Stage)
- func (from *Cell) CopyBasicFields(to *Cell)
- func (cell *Cell) GetName() (res string)
- func (cell *Cell) Stage(stage *Stage) *Cell
- func (cell *Cell) Unstage(stage *Stage) *Cell
- func (cell *Cell) UnstageVoid(stage *Stage)
- type CellBoolean
- func (cellboolean *CellBoolean) Checkout(stage *Stage) *CellBoolean
- func (cellboolean *CellBoolean) Commit(stage *Stage) *CellBoolean
- func (cellboolean *CellBoolean) CommitVoid(stage *Stage)
- func (from *CellBoolean) CopyBasicFields(to *CellBoolean)
- func (cellboolean *CellBoolean) GetName() (res string)
- func (cellboolean *CellBoolean) Stage(stage *Stage) *CellBoolean
- func (cellboolean *CellBoolean) Unstage(stage *Stage) *CellBoolean
- func (cellboolean *CellBoolean) UnstageVoid(stage *Stage)
- type CellBoolean_WOP
- type CellFloat64
- func (cellfloat64 *CellFloat64) Checkout(stage *Stage) *CellFloat64
- func (cellfloat64 *CellFloat64) Commit(stage *Stage) *CellFloat64
- func (cellfloat64 *CellFloat64) CommitVoid(stage *Stage)
- func (from *CellFloat64) CopyBasicFields(to *CellFloat64)
- func (cellfloat64 *CellFloat64) GetName() (res string)
- func (cellfloat64 *CellFloat64) Stage(stage *Stage) *CellFloat64
- func (cellfloat64 *CellFloat64) Unstage(stage *Stage) *CellFloat64
- func (cellfloat64 *CellFloat64) UnstageVoid(stage *Stage)
- type CellFloat64_WOP
- type CellIcon
- func (cellicon *CellIcon) Checkout(stage *Stage) *CellIcon
- func (cellicon *CellIcon) Commit(stage *Stage) *CellIcon
- func (cellicon *CellIcon) CommitVoid(stage *Stage)
- func (from *CellIcon) CopyBasicFields(to *CellIcon)
- func (cellicon *CellIcon) GetName() (res string)
- func (cellIcon *CellIcon) OnAfterUpdate(stage *Stage, stagedInstance, frontCellIcon *CellIcon)
- func (cellicon *CellIcon) Stage(stage *Stage) *CellIcon
- func (cellicon *CellIcon) Unstage(stage *Stage) *CellIcon
- func (cellicon *CellIcon) UnstageVoid(stage *Stage)
- type CellIconImplInterface
- type CellIconOrchestrator
- type CellIcon_WOP
- type CellInt
- func (cellint *CellInt) Checkout(stage *Stage) *CellInt
- func (cellint *CellInt) Commit(stage *Stage) *CellInt
- func (cellint *CellInt) CommitVoid(stage *Stage)
- func (from *CellInt) CopyBasicFields(to *CellInt)
- func (cellint *CellInt) GetName() (res string)
- func (cellint *CellInt) Stage(stage *Stage) *CellInt
- func (cellint *CellInt) Unstage(stage *Stage) *CellInt
- func (cellint *CellInt) UnstageVoid(stage *Stage)
- type CellInt_WOP
- type CellString
- func (cellstring *CellString) Checkout(stage *Stage) *CellString
- func (cellstring *CellString) Commit(stage *Stage) *CellString
- func (cellstring *CellString) CommitVoid(stage *Stage)
- func (from *CellString) CopyBasicFields(to *CellString)
- func (cellstring *CellString) GetName() (res string)
- func (cellstring *CellString) Stage(stage *Stage) *CellString
- func (cellstring *CellString) Unstage(stage *Stage) *CellString
- func (cellstring *CellString) UnstageVoid(stage *Stage)
- type CellString_WOP
- type Cell_WOP
- type CheckBox
- func (checkbox *CheckBox) Checkout(stage *Stage) *CheckBox
- func (checkbox *CheckBox) Commit(stage *Stage) *CheckBox
- func (checkbox *CheckBox) CommitVoid(stage *Stage)
- func (from *CheckBox) CopyBasicFields(to *CheckBox)
- func (checkbox *CheckBox) GetName() (res string)
- func (checkbox *CheckBox) Stage(stage *Stage) *CheckBox
- func (checkbox *CheckBox) Unstage(stage *Stage) *CheckBox
- func (checkbox *CheckBox) UnstageVoid(stage *Stage)
- type CheckBox_WOP
- type DiffHunk
- type DiffOp
- type DisplayedColumn
- func (displayedcolumn *DisplayedColumn) Checkout(stage *Stage) *DisplayedColumn
- func (displayedcolumn *DisplayedColumn) Commit(stage *Stage) *DisplayedColumn
- func (displayedcolumn *DisplayedColumn) CommitVoid(stage *Stage)
- func (from *DisplayedColumn) CopyBasicFields(to *DisplayedColumn)
- func (displayedcolumn *DisplayedColumn) GetName() (res string)
- func (displayedcolumn *DisplayedColumn) Stage(stage *Stage) *DisplayedColumn
- func (displayedcolumn *DisplayedColumn) Unstage(stage *Stage) *DisplayedColumn
- func (displayedcolumn *DisplayedColumn) UnstageVoid(stage *Stage)
- type DisplayedColumn_WOP
- type ExcelizeTabulator
- type FormDiv
- func (formdiv *FormDiv) Checkout(stage *Stage) *FormDiv
- func (formdiv *FormDiv) Commit(stage *Stage) *FormDiv
- func (formdiv *FormDiv) CommitVoid(stage *Stage)
- func (from *FormDiv) CopyBasicFields(to *FormDiv)
- func (formdiv *FormDiv) GetName() (res string)
- func (formdiv *FormDiv) Stage(stage *Stage) *FormDiv
- func (formdiv *FormDiv) Unstage(stage *Stage) *FormDiv
- func (formdiv *FormDiv) UnstageVoid(stage *Stage)
- type FormDiv_WOP
- type FormEditAssocButton
- func (formeditassocbutton *FormEditAssocButton) Checkout(stage *Stage) *FormEditAssocButton
- func (formeditassocbutton *FormEditAssocButton) Commit(stage *Stage) *FormEditAssocButton
- func (formeditassocbutton *FormEditAssocButton) CommitVoid(stage *Stage)
- func (from *FormEditAssocButton) CopyBasicFields(to *FormEditAssocButton)
- func (formeditassocbutton *FormEditAssocButton) GetName() (res string)
- func (formEditAssocButton *FormEditAssocButton) OnAfterUpdate(stage *Stage, stagedInstance, frontInstance *FormEditAssocButton)
- func (formeditassocbutton *FormEditAssocButton) Stage(stage *Stage) *FormEditAssocButton
- func (formeditassocbutton *FormEditAssocButton) Unstage(stage *Stage) *FormEditAssocButton
- func (formeditassocbutton *FormEditAssocButton) UnstageVoid(stage *Stage)
- type FormEditAssocButtonInterface
- type FormEditAssocButtonOrchestrator
- type FormEditAssocButton_WOP
- type FormField
- func (formfield *FormField) Checkout(stage *Stage) *FormField
- func (formfield *FormField) Commit(stage *Stage) *FormField
- func (formfield *FormField) CommitVoid(stage *Stage)
- func (from *FormField) CopyBasicFields(to *FormField)
- func (formfield *FormField) GetName() (res string)
- func (formfield *FormField) Stage(stage *Stage) *FormField
- func (formfield *FormField) Unstage(stage *Stage) *FormField
- func (formfield *FormField) UnstageVoid(stage *Stage)
- type FormFieldDate
- func (formfielddate *FormFieldDate) Checkout(stage *Stage) *FormFieldDate
- func (formfielddate *FormFieldDate) Commit(stage *Stage) *FormFieldDate
- func (formfielddate *FormFieldDate) CommitVoid(stage *Stage)
- func (from *FormFieldDate) CopyBasicFields(to *FormFieldDate)
- func (formfielddate *FormFieldDate) GetName() (res string)
- func (formfielddate *FormFieldDate) Stage(stage *Stage) *FormFieldDate
- func (formfielddate *FormFieldDate) Unstage(stage *Stage) *FormFieldDate
- func (formfielddate *FormFieldDate) UnstageVoid(stage *Stage)
- type FormFieldDateTime
- func (formfielddatetime *FormFieldDateTime) Checkout(stage *Stage) *FormFieldDateTime
- func (formfielddatetime *FormFieldDateTime) Commit(stage *Stage) *FormFieldDateTime
- func (formfielddatetime *FormFieldDateTime) CommitVoid(stage *Stage)
- func (from *FormFieldDateTime) CopyBasicFields(to *FormFieldDateTime)
- func (formfielddatetime *FormFieldDateTime) GetName() (res string)
- func (formfielddatetime *FormFieldDateTime) Stage(stage *Stage) *FormFieldDateTime
- func (formfielddatetime *FormFieldDateTime) Unstage(stage *Stage) *FormFieldDateTime
- func (formfielddatetime *FormFieldDateTime) UnstageVoid(stage *Stage)
- type FormFieldDateTime_WOP
- type FormFieldDate_WOP
- type FormFieldFloat64
- func (formfieldfloat64 *FormFieldFloat64) Checkout(stage *Stage) *FormFieldFloat64
- func (formfieldfloat64 *FormFieldFloat64) Commit(stage *Stage) *FormFieldFloat64
- func (formfieldfloat64 *FormFieldFloat64) CommitVoid(stage *Stage)
- func (from *FormFieldFloat64) CopyBasicFields(to *FormFieldFloat64)
- func (formfieldfloat64 *FormFieldFloat64) GetName() (res string)
- func (formfieldfloat64 *FormFieldFloat64) Stage(stage *Stage) *FormFieldFloat64
- func (formfieldfloat64 *FormFieldFloat64) Unstage(stage *Stage) *FormFieldFloat64
- func (formfieldfloat64 *FormFieldFloat64) UnstageVoid(stage *Stage)
- type FormFieldFloat64_WOP
- type FormFieldInt
- func (formfieldint *FormFieldInt) Checkout(stage *Stage) *FormFieldInt
- func (formfieldint *FormFieldInt) Commit(stage *Stage) *FormFieldInt
- func (formfieldint *FormFieldInt) CommitVoid(stage *Stage)
- func (from *FormFieldInt) CopyBasicFields(to *FormFieldInt)
- func (formfieldint *FormFieldInt) GetName() (res string)
- func (formfieldint *FormFieldInt) Stage(stage *Stage) *FormFieldInt
- func (formfieldint *FormFieldInt) Unstage(stage *Stage) *FormFieldInt
- func (formfieldint *FormFieldInt) UnstageVoid(stage *Stage)
- type FormFieldInt_WOP
- type FormFieldSelect
- func (formfieldselect *FormFieldSelect) Checkout(stage *Stage) *FormFieldSelect
- func (formfieldselect *FormFieldSelect) Commit(stage *Stage) *FormFieldSelect
- func (formfieldselect *FormFieldSelect) CommitVoid(stage *Stage)
- func (from *FormFieldSelect) CopyBasicFields(to *FormFieldSelect)
- func (formfieldselect *FormFieldSelect) GetName() (res string)
- func (formfieldselect *FormFieldSelect) Stage(stage *Stage) *FormFieldSelect
- func (formfieldselect *FormFieldSelect) Unstage(stage *Stage) *FormFieldSelect
- func (formfieldselect *FormFieldSelect) UnstageVoid(stage *Stage)
- type FormFieldSelect_WOP
- type FormFieldString
- func (formfieldstring *FormFieldString) Checkout(stage *Stage) *FormFieldString
- func (formfieldstring *FormFieldString) Commit(stage *Stage) *FormFieldString
- func (formfieldstring *FormFieldString) CommitVoid(stage *Stage)
- func (from *FormFieldString) CopyBasicFields(to *FormFieldString)
- func (formfieldstring *FormFieldString) GetName() (res string)
- func (formfieldstring *FormFieldString) Stage(stage *Stage) *FormFieldString
- func (formfieldstring *FormFieldString) Unstage(stage *Stage) *FormFieldString
- func (formfieldstring *FormFieldString) UnstageVoid(stage *Stage)
- type FormFieldString_WOP
- type FormFieldTime
- func (formfieldtime *FormFieldTime) Checkout(stage *Stage) *FormFieldTime
- func (formfieldtime *FormFieldTime) Commit(stage *Stage) *FormFieldTime
- func (formfieldtime *FormFieldTime) CommitVoid(stage *Stage)
- func (from *FormFieldTime) CopyBasicFields(to *FormFieldTime)
- func (formfieldtime *FormFieldTime) GetName() (res string)
- func (formfieldtime *FormFieldTime) Stage(stage *Stage) *FormFieldTime
- func (formfieldtime *FormFieldTime) Unstage(stage *Stage) *FormFieldTime
- func (formfieldtime *FormFieldTime) UnstageVoid(stage *Stage)
- type FormFieldTime_WOP
- type FormField_WOP
- type FormGroup
- func (formgroup *FormGroup) Checkout(stage *Stage) *FormGroup
- func (formgroup *FormGroup) Commit(stage *Stage) *FormGroup
- func (formgroup *FormGroup) CommitVoid(stage *Stage)
- func (from *FormGroup) CopyBasicFields(to *FormGroup)
- func (formgroup *FormGroup) GetName() (res string)
- func (formGroup *FormGroup) OnAfterUpdate(stage *Stage, stagedInstance, frontInstance *FormGroup)
- func (formgroup *FormGroup) Stage(stage *Stage) *FormGroup
- func (formgroup *FormGroup) Unstage(stage *Stage) *FormGroup
- func (formgroup *FormGroup) UnstageVoid(stage *Stage)
- type FormGroupName
- func (formgroupname FormGroupName) CodeValues() (res []string)
- func (formgroupname FormGroupName) Codes() (res []string)
- func (formgroupname *FormGroupName) FromCodeString(input string) (err error)
- func (formgroupname *FormGroupName) FromString(input string) (err error)
- func (formgroupname *FormGroupName) ToCodeString() (res string)
- func (formgroupname FormGroupName) ToString() (res string)
- type FormGroupOrchestrator
- type FormGroup_WOP
- type FormSortAssocButton
- func (formsortassocbutton *FormSortAssocButton) Checkout(stage *Stage) *FormSortAssocButton
- func (formsortassocbutton *FormSortAssocButton) Commit(stage *Stage) *FormSortAssocButton
- func (formsortassocbutton *FormSortAssocButton) CommitVoid(stage *Stage)
- func (from *FormSortAssocButton) CopyBasicFields(to *FormSortAssocButton)
- func (formsortassocbutton *FormSortAssocButton) GetName() (res string)
- func (formSortAssocButton *FormSortAssocButton) OnAfterUpdate(stage *Stage, stagedInstance, frontInstance *FormSortAssocButton)
- func (formsortassocbutton *FormSortAssocButton) Stage(stage *Stage) *FormSortAssocButton
- func (formsortassocbutton *FormSortAssocButton) Unstage(stage *Stage) *FormSortAssocButton
- func (formsortassocbutton *FormSortAssocButton) UnstageVoid(stage *Stage)
- type FormSortAssocButtonInterface
- type FormSortAssocButtonOrchestrator
- type FormSortAssocButton_WOP
- type GONG__ExpressionType
- type GONG__Identifier
- type GongFieldValue
- type GongFieldValueType
- type GongStructInterface
- type Gong__MouseEvent
- type Gongstruct
- type GongstructEnumIntField
- type GongstructEnumStringField
- type GongstructMapString
- type GongstructSet
- type GongtructBasicField
- type InputTypeEnum
- func (inputtypeenum InputTypeEnum) CodeValues() (res []string)
- func (inputtypeenum InputTypeEnum) Codes() (res []string)
- func (inputtypeenum *InputTypeEnum) FromCodeString(input string) (err error)
- func (inputtypeenum *InputTypeEnum) FromString(input string) (err error)
- func (inputtypeenum *InputTypeEnum) ToCodeString() (res string)
- func (inputtypeenum InputTypeEnum) ToString() (res string)
- type NamedStruct
- type OnAfterCreateInterface
- type OnAfterDeleteInterface
- type OnAfterReadInterface
- type OnAfterUpdateInterface
- type OnAfterUpdateWithMouseEventInterface
- type OnInitCommitInterface
- type OnSaveInterface
- type Option
- func (option *Option) Checkout(stage *Stage) *Option
- func (option *Option) Commit(stage *Stage) *Option
- func (option *Option) CommitVoid(stage *Stage)
- func (from *Option) CopyBasicFields(to *Option)
- func (option *Option) GetName() (res string)
- func (option *Option) Stage(stage *Stage) *Option
- func (option *Option) Unstage(stage *Stage) *Option
- func (option *Option) UnstageVoid(stage *Stage)
- type Option_WOP
- type PointerToGongstruct
- type PointerToGongstructEnumIntField
- type PointerToGongstructEnumStringField
- type ReverseField
- type Row
- func (row *Row) Checkout(stage *Stage) *Row
- func (row *Row) Commit(stage *Stage) *Row
- func (row *Row) CommitVoid(stage *Stage)
- func (from *Row) CopyBasicFields(to *Row)
- func (row *Row) GetName() (res string)
- func (row *Row) OnAfterUpdate(stage *Stage, _, frontRow *Row)
- func (row *Row) Stage(stage *Stage) *Row
- func (row *Row) Unstage(stage *Stage) *Row
- func (row *Row) UnstageVoid(stage *Stage)
- type RowImplInterface
- type RowOrchestrator
- type Row_WOP
- type Stage
- func (stage *Stage) Backup(dirPath string)
- func (stage *Stage) BackupXL(dirPath string)
- func (stage *Stage) Checkout()
- func (stage *Stage) Commit()
- func (stage *Stage) CommitWithSuspendedCallbacks()
- func (stage *Stage) ComputeReverseMaps()
- func (stage *Stage) GetCommitId() uint
- func (stage *Stage) GetCommitTS() time.Time
- func (stage *Stage) GetDigramsEmbededDir() embed.FS
- func (stage *Stage) GetMap_GongStructName_InstancesNb() map[string]int
- func (stage *Stage) GetModelsEmbededDir() embed.FS
- func (stage *Stage) GetName() string
- func (stage *Stage) GetNamedStructNamesByOrder(namedStructName string) (res []string)
- func (stage *Stage) GetNamedStructsNames() (res []string)
- func (stage *Stage) GetProbeFormStageName() string
- func (stage *Stage) GetProbeSplitStageName() string
- func (stage *Stage) GetProbeTableStageName() string
- func (stage *Stage) GetProbeTreeSidebarStageName() string
- func (stage *Stage) GetType() string
- func (stage *Stage) IsStagedCell(cell *Cell) (ok bool)
- func (stage *Stage) IsStagedCellBoolean(cellboolean *CellBoolean) (ok bool)
- func (stage *Stage) IsStagedCellFloat64(cellfloat64 *CellFloat64) (ok bool)
- func (stage *Stage) IsStagedCellIcon(cellicon *CellIcon) (ok bool)
- func (stage *Stage) IsStagedCellInt(cellint *CellInt) (ok bool)
- func (stage *Stage) IsStagedCellString(cellstring *CellString) (ok bool)
- func (stage *Stage) IsStagedCheckBox(checkbox *CheckBox) (ok bool)
- func (stage *Stage) IsStagedDisplayedColumn(displayedcolumn *DisplayedColumn) (ok bool)
- func (stage *Stage) IsStagedFormDiv(formdiv *FormDiv) (ok bool)
- func (stage *Stage) IsStagedFormEditAssocButton(formeditassocbutton *FormEditAssocButton) (ok bool)
- func (stage *Stage) IsStagedFormField(formfield *FormField) (ok bool)
- func (stage *Stage) IsStagedFormFieldDate(formfielddate *FormFieldDate) (ok bool)
- func (stage *Stage) IsStagedFormFieldDateTime(formfielddatetime *FormFieldDateTime) (ok bool)
- func (stage *Stage) IsStagedFormFieldFloat64(formfieldfloat64 *FormFieldFloat64) (ok bool)
- func (stage *Stage) IsStagedFormFieldInt(formfieldint *FormFieldInt) (ok bool)
- func (stage *Stage) IsStagedFormFieldSelect(formfieldselect *FormFieldSelect) (ok bool)
- func (stage *Stage) IsStagedFormFieldString(formfieldstring *FormFieldString) (ok bool)
- func (stage *Stage) IsStagedFormFieldTime(formfieldtime *FormFieldTime) (ok bool)
- func (stage *Stage) IsStagedFormGroup(formgroup *FormGroup) (ok bool)
- func (stage *Stage) IsStagedFormSortAssocButton(formsortassocbutton *FormSortAssocButton) (ok bool)
- func (stage *Stage) IsStagedOption(option *Option) (ok bool)
- func (stage *Stage) IsStagedRow(row *Row) (ok bool)
- func (stage *Stage) IsStagedTable(table *Table) (ok bool)
- func (stage *Stage) Marshall(file *os.File, modelsPackageName, packageName string)
- func (stage *Stage) MarshallToString(modelsPackageName, packageName string) (res string, err error)
- func (stage *Stage) Nil()
- func (stage *Stage) Reset()
- func (stage *Stage) Restore(dirPath string)
- func (stage *Stage) RestoreXL(dirPath string)
- func (stage *Stage) SetGeneratesDiff(generatesDiff bool)
- func (stage *Stage) StageBranchCell(cell *Cell)
- func (stage *Stage) StageBranchCellBoolean(cellboolean *CellBoolean)
- func (stage *Stage) StageBranchCellFloat64(cellfloat64 *CellFloat64)
- func (stage *Stage) StageBranchCellIcon(cellicon *CellIcon)
- func (stage *Stage) StageBranchCellInt(cellint *CellInt)
- func (stage *Stage) StageBranchCellString(cellstring *CellString)
- func (stage *Stage) StageBranchCheckBox(checkbox *CheckBox)
- func (stage *Stage) StageBranchDisplayedColumn(displayedcolumn *DisplayedColumn)
- func (stage *Stage) StageBranchFormDiv(formdiv *FormDiv)
- func (stage *Stage) StageBranchFormEditAssocButton(formeditassocbutton *FormEditAssocButton)
- func (stage *Stage) StageBranchFormField(formfield *FormField)
- func (stage *Stage) StageBranchFormFieldDate(formfielddate *FormFieldDate)
- func (stage *Stage) StageBranchFormFieldDateTime(formfielddatetime *FormFieldDateTime)
- func (stage *Stage) StageBranchFormFieldFloat64(formfieldfloat64 *FormFieldFloat64)
- func (stage *Stage) StageBranchFormFieldInt(formfieldint *FormFieldInt)
- func (stage *Stage) StageBranchFormFieldSelect(formfieldselect *FormFieldSelect)
- func (stage *Stage) StageBranchFormFieldString(formfieldstring *FormFieldString)
- func (stage *Stage) StageBranchFormFieldTime(formfieldtime *FormFieldTime)
- func (stage *Stage) StageBranchFormGroup(formgroup *FormGroup)
- func (stage *Stage) StageBranchFormSortAssocButton(formsortassocbutton *FormSortAssocButton)
- func (stage *Stage) StageBranchOption(option *Option)
- func (stage *Stage) StageBranchRow(row *Row)
- func (stage *Stage) StageBranchTable(table *Table)
- func (stage *Stage) Unstage()
- func (stage *Stage) UnstageBranchCell(cell *Cell)
- func (stage *Stage) UnstageBranchCellBoolean(cellboolean *CellBoolean)
- func (stage *Stage) UnstageBranchCellFloat64(cellfloat64 *CellFloat64)
- func (stage *Stage) UnstageBranchCellIcon(cellicon *CellIcon)
- func (stage *Stage) UnstageBranchCellInt(cellint *CellInt)
- func (stage *Stage) UnstageBranchCellString(cellstring *CellString)
- func (stage *Stage) UnstageBranchCheckBox(checkbox *CheckBox)
- func (stage *Stage) UnstageBranchDisplayedColumn(displayedcolumn *DisplayedColumn)
- func (stage *Stage) UnstageBranchFormDiv(formdiv *FormDiv)
- func (stage *Stage) UnstageBranchFormEditAssocButton(formeditassocbutton *FormEditAssocButton)
- func (stage *Stage) UnstageBranchFormField(formfield *FormField)
- func (stage *Stage) UnstageBranchFormFieldDate(formfielddate *FormFieldDate)
- func (stage *Stage) UnstageBranchFormFieldDateTime(formfielddatetime *FormFieldDateTime)
- func (stage *Stage) UnstageBranchFormFieldFloat64(formfieldfloat64 *FormFieldFloat64)
- func (stage *Stage) UnstageBranchFormFieldInt(formfieldint *FormFieldInt)
- func (stage *Stage) UnstageBranchFormFieldSelect(formfieldselect *FormFieldSelect)
- func (stage *Stage) UnstageBranchFormFieldString(formfieldstring *FormFieldString)
- func (stage *Stage) UnstageBranchFormFieldTime(formfieldtime *FormFieldTime)
- func (stage *Stage) UnstageBranchFormGroup(formgroup *FormGroup)
- func (stage *Stage) UnstageBranchFormSortAssocButton(formsortassocbutton *FormSortAssocButton)
- func (stage *Stage) UnstageBranchOption(option *Option)
- func (stage *Stage) UnstageBranchRow(row *Row)
- func (stage *Stage) UnstageBranchTable(table *Table)
- type Table
- func (table *Table) Checkout(stage *Stage) *Table
- func (table *Table) Commit(stage *Stage) *Table
- func (table *Table) CommitVoid(stage *Stage)
- func (from *Table) CopyBasicFields(to *Table)
- func (table *Table) GetName() (res string)
- func (table *Table) OnAfterUpdate(stage *Stage, _, frontTable *Table)
- func (table *Table) Stage(stage *Stage) *Table
- func (table *Table) Unstage(stage *Stage) *Table
- func (table *Table) UnstageVoid(stage *Stage)
- type TableExtraNameEnum
- func (tableextranameenum TableExtraNameEnum) CodeValues() (res []string)
- func (tableextranameenum TableExtraNameEnum) Codes() (res []string)
- func (tableextranameenum *TableExtraNameEnum) FromCodeString(input string) (err error)
- func (tableextranameenum *TableExtraNameEnum) FromString(input string) (err error)
- func (tableextranameenum *TableExtraNameEnum) ToCodeString() (res string)
- func (tableextranameenum TableExtraNameEnum) ToString() (res string)
- type TableExtraPathEnum
- func (tableextrapathenum TableExtraPathEnum) CodeValues() (res []string)
- func (tableextrapathenum TableExtraPathEnum) Codes() (res []string)
- func (tableextrapathenum *TableExtraPathEnum) FromCodeString(input string) (err error)
- func (tableextrapathenum *TableExtraPathEnum) FromString(input string) (err error)
- func (tableextrapathenum *TableExtraPathEnum) ToCodeString() (res string)
- func (tableextrapathenum TableExtraPathEnum) ToString() (res string)
- type TableImplInterface
- type TableName
- func (tablename TableName) CodeValues() (res []string)
- func (tablename TableName) Codes() (res []string)
- func (tablename *TableName) FromCodeString(input string) (err error)
- func (tablename *TableName) FromString(input string) (err error)
- func (tablename *TableName) ToCodeString() (res string)
- func (tablename TableName) ToString() (res string)
- type TableOrchestrator
- type TableTestNameEnum
- func (tabletestnameenum TableTestNameEnum) CodeValues() (res []string)
- func (tabletestnameenum TableTestNameEnum) Codes() (res []string)
- func (tabletestnameenum *TableTestNameEnum) FromCodeString(input string) (err error)
- func (tabletestnameenum *TableTestNameEnum) FromString(input string) (err error)
- func (tabletestnameenum *TableTestNameEnum) ToCodeString() (res string)
- func (tabletestnameenum TableTestNameEnum) ToString() (res string)
- type Table_WOP
- type Tabulator
Constants ¶
const IdentifiersDecls = `
{{Identifier}} := (&models.{{GeneratedStructName}}{}).Stage(stage)`
const MetaFieldStructInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = ` + `{{GeneratedFieldNameValue}}`
const NoteOnFormFieldDateTime = ""
GONGDOC(NoteOnFormFieldDateTime): models.FormFieldDateTime provides two form fields that will make the precision of go time.Time
const NumberInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
const PointerFieldInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
const ProbeFormSuffix = ":form of the probe"
const ProbeSplitSuffix = ":probe of the probe"
const ProbeTableSuffix = ":table of the probe"
const ProbeTreeSidebarSuffix = ":sidebar of the probe"
const SliceOfPointersFieldInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = append({{Identifier}}.{{GeneratedFieldName}}, {{GeneratedFieldNameValue}})`
const StringEnumInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
const StringInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = ` + "`" + `{{GeneratedFieldNameValue}}` + "`"
const TimeInitStatement = `` /* 129-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func AfterCreateFromFront ¶
func AfterCreateFromFront[Type Gongstruct](stage *Stage, instance *Type)
AfterCreateFromFront is called after a create from front
func AfterDeleteFromFront ¶
func AfterDeleteFromFront[Type Gongstruct](stage *Stage, staged, front *Type)
AfterDeleteFromFront is called after a delete from front
func AfterReadFromFront ¶
func AfterReadFromFront[Type Gongstruct](stage *Stage, instance *Type)
AfterReadFromFront is called after a Read from front
func CompareGongstructByName ¶
func CompareGongstructByName[T PointerToGongstruct](a, b T) int
func ComputeDiff ¶
ComputeDiff generates a git-style unified diff from string a to string b
func CopyBranch ¶
func CopyBranch[Type Gongstruct](from *Type) (to *Type)
CopyBranch stages instance and apply CopyBranch on all gongstruct instances that are referenced by pointers or slices of pointers of the instance
the algorithm stops along the course of graph if a vertex is already staged
func GetAssociationName ¶
func GetAssociationName[Type Gongstruct]() *Type
GetAssociationName is a generic function that returns an instance of Type where each association is filled with an instance whose name is the name of the association
This function can be handy for generating navigation function that are refactorable
func GetFields ¶
func GetFields[Type Gongstruct]() (res []string)
GetFields return the array of the fields
func GetFieldsFromPointer ¶
func GetFieldsFromPointer[Type PointerToGongstruct]() (res []string)
GetFieldsFromPointer return the array of the fields
func GetGongstrucsSorted ¶
func GetGongstrucsSorted[T PointerToGongstruct](stage *Stage) (sortedSlice []T)
func GetGongstructInstancesMap ¶
func GetGongstructInstancesMap[Type Gongstruct](stage *Stage) *map[string]*Type
GetGongstructInstancesMap returns the map of staged GongstructType instances it is usefull because it allows refactoring of gong struct identifier
func GetGongstructInstancesSet ¶
func GetGongstructInstancesSet[Type Gongstruct](stage *Stage) *map[*Type]any
GetGongstructInstancesSet returns the set staged GongstructType instances it is usefull because it allows refactoring of gongstruct identifier
func GetGongstructInstancesSetFromPointerType ¶
func GetGongstructInstancesSetFromPointerType[Type PointerToGongstruct](stage *Stage) *map[Type]any
GetGongstructInstancesSetFromPointerType returns the set staged GongstructType instances it is usefull because it allows refactoring of gongstruct identifier
func GetGongstructName ¶
func GetGongstructName[Type Gongstruct]() (res string)
GetGongstructName returns the name of the Gongstruct this can be usefull if one want program robust to refactoring
func GetNamedStructInstances ¶
func GetNamedStructInstances[T PointerToGongstruct](set map[T]any, order map[T]uint) (res []string)
func GetOrder ¶
func GetOrder[Type Gongstruct](stage *Stage, instance *Type) uint
func GetOrderPointerGongstruct ¶
func GetOrderPointerGongstruct[Type PointerToGongstruct](stage *Stage, instance Type) uint
func GetPointerReverseMap ¶
func GetPointerReverseMap[Start, End Gongstruct](fieldname string, stage *Stage) map[*End][]*Start
GetPointerReverseMap allows backtrack navigation of any Start.Fieldname associations (0..1) that is a pointer from one staged Gongstruct (type Start) instances to another (type End)
The function provides a map with keys as instances of End and values to arrays of *Start the map is construed by iterating over all Start instances and populationg keys with End instances and values with slice of Start instances
func GetPointerToGongstructName ¶
func GetPointerToGongstructName[Type PointerToGongstruct]() (res string)
GetPointerToGongstructName returns the name of the Gongstruct this can be usefull if one want program robust to refactoring
func GetReverseFieldOwner ¶
func GetReverseFieldOwner[T Gongstruct]( stage *Stage, instance *T, reverseField *ReverseField) (res any)
func GetReverseFieldOwnerName ¶
func GetReverseFieldOwnerName( stage *Stage, instance any, reverseField *ReverseField) (res string)
func GetSliceOfPointersReverseMap ¶
func GetSliceOfPointersReverseMap[Start, End Gongstruct](fieldname string, stage *Stage) map[*End][]*Start
GetSliceOfPointersReverseMap allows backtrack navigation of any Start.Fieldname associations (0..N) between one staged Gongstruct instances and many others
The function provides a map with keys as instances of End and values to *Start instances the map is construed by iterating over all Start instances and populating keys with End instances and values with the Start instances
func GetStructInstancesByOrder ¶
func GetStructInstancesByOrder[T PointerToGongstruct](set map[T]any, order map[T]uint) (res []T)
func GetStructInstancesByOrderAuto ¶
func GetStructInstancesByOrderAuto[T PointerToGongstruct](stage *Stage) (res []T)
func GongGetMap ¶
func GongGetMap[Type GongstructMapString](stage *Stage) *Type
GongGetMap returns the map of staged GongstructType instances it is usefull because it allows refactoring of gong struct identifier
func GongGetSet ¶
func GongGetSet[Type GongstructSet](stage *Stage) *Type
GongGetSet returns the set staged GongstructType instances it is usefull because it allows refactoring of gong struct identifier
func IntToLetters ¶
func IsStaged ¶
func IsStaged[Type Gongstruct](stage *Stage, instance *Type) (ok bool)
func OnAfterUpdateFromFront ¶
func OnAfterUpdateFromFront[Type Gongstruct](stage *Stage, old, new *Type, mouseEvent *Gong__MouseEvent)
OnAfterUpdateFromFront is called after a update from front
func ParseAstEmbeddedFile ¶
ParseAstEmbeddedFile parses the Go source code from an embedded file specified by pathToFile within the provided embed.FS directory and stages instances declared in the file using the provided Stage.
Parameters:
stage: The staging area to populate. directory: The embedded filesystem containing the file. pathToFile: The path to the Go source file within the embedded filesystem.
Returns:
An error if reading or parsing the file fails, or if ParseAstFileFromAst fails.
func ParseAstFile ¶
ParseAstFile Parse pathToFile and stages all instances declared in the file
func ParseAstFileFromAst ¶
ParseAstFile Parse pathToFile and stages all instances declared in the file
func ReplaceOldDeclarationsInFile ¶
ReplaceOldDeclarationsInFile replaces specific text in a file at the given path.
func Serialize ¶
func Serialize[Type Gongstruct](stage *Stage, tab Tabulator)
func SerializeExcelize ¶
func SerializeExcelize[Type Gongstruct](stage *Stage, f *excelize.File)
func SerializeExcelizePointerToGongstruct ¶
func SerializeExcelizePointerToGongstruct[Type PointerToGongstruct](stage *Stage, f *excelize.File)
func SerializeStage ¶
func SetCallbackAfterCreateFromFront ¶
func SetCallbackAfterCreateFromFront[Type Gongstruct](stage *Stage, callback OnAfterCreateInterface[Type])
func SetCallbackAfterDeleteFromFront ¶
func SetCallbackAfterDeleteFromFront[Type Gongstruct](stage *Stage, callback OnAfterDeleteInterface[Type])
func SetCallbackAfterReadFromFront ¶
func SetCallbackAfterReadFromFront[Type Gongstruct](stage *Stage, callback OnAfterReadInterface[Type])
func SetCallbackAfterUpdateFromFront ¶
func SetCallbackAfterUpdateFromFront[Type Gongstruct](stage *Stage, callback OnAfterUpdateInterface[Type])
SetCallbackAfterUpdateFromFront is a function to set up callback that is robust to refactoring
func SetOrchestratorOnAfterUpdate ¶
func SetOrchestratorOnAfterUpdate[Type Gongstruct](stage *Stage)
func SetOrchestratorOnAfterUpdateWithMouseEvent ¶
func SetOrchestratorOnAfterUpdateWithMouseEvent[Type Gongstruct](stage *Stage)
func SortGongstructSetByName ¶
func SortGongstructSetByName[T PointerToGongstruct](set map[T]any) (sortedSlice []T)
func StageBranch ¶
func StageBranch[Type Gongstruct](stage *Stage, instance *Type)
StageBranch stages instance and apply StageBranch on all gongstruct instances that are referenced by pointers or slices of pointers of the instance
the algorithm stops along the course of graph if a vertex is already staged
func UnmarshallGongstructStaging ¶
func UnmarshallGongstructStaging(stage *Stage, cmap *ast.CommentMap, assignStmt *ast.AssignStmt, astCoordinate_ string) ( instance any, identifier string, gongstructName string, fieldName string)
UnmarshallGoStaging unmarshall a go assign statement
func UnstageBranch ¶
func UnstageBranch[Type Gongstruct](stage *Stage, instance *Type)
UnstageBranch stages instance and apply UnstageBranch on all gongstruct instances that are referenced by pointers or slices of pointers of the insance
the algorithm stops along the course of graph if a vertex is already staged
Types ¶
type AllModelsStructCreateInterface ¶
type AllModelsStructCreateInterface interface {
CreateORMCell(Cell *Cell)
CreateORMCellBoolean(CellBoolean *CellBoolean)
CreateORMCellFloat64(CellFloat64 *CellFloat64)
CreateORMCellIcon(CellIcon *CellIcon)
CreateORMCellInt(CellInt *CellInt)
CreateORMCellString(CellString *CellString)
CreateORMCheckBox(CheckBox *CheckBox)
CreateORMDisplayedColumn(DisplayedColumn *DisplayedColumn)
CreateORMFormDiv(FormDiv *FormDiv)
CreateORMFormEditAssocButton(FormEditAssocButton *FormEditAssocButton)
CreateORMFormField(FormField *FormField)
CreateORMFormFieldDate(FormFieldDate *FormFieldDate)
CreateORMFormFieldDateTime(FormFieldDateTime *FormFieldDateTime)
CreateORMFormFieldFloat64(FormFieldFloat64 *FormFieldFloat64)
CreateORMFormFieldInt(FormFieldInt *FormFieldInt)
CreateORMFormFieldSelect(FormFieldSelect *FormFieldSelect)
CreateORMFormFieldString(FormFieldString *FormFieldString)
CreateORMFormFieldTime(FormFieldTime *FormFieldTime)
CreateORMFormGroup(FormGroup *FormGroup)
CreateORMFormSortAssocButton(FormSortAssocButton *FormSortAssocButton)
CreateORMOption(Option *Option)
CreateORMRow(Row *Row)
CreateORMTable(Table *Table)
}
swagger:ignore
type AllModelsStructDeleteInterface ¶
type AllModelsStructDeleteInterface interface {
DeleteORMCell(Cell *Cell)
DeleteORMCellBoolean(CellBoolean *CellBoolean)
DeleteORMCellFloat64(CellFloat64 *CellFloat64)
DeleteORMCellIcon(CellIcon *CellIcon)
DeleteORMCellInt(CellInt *CellInt)
DeleteORMCellString(CellString *CellString)
DeleteORMCheckBox(CheckBox *CheckBox)
DeleteORMDisplayedColumn(DisplayedColumn *DisplayedColumn)
DeleteORMFormDiv(FormDiv *FormDiv)
DeleteORMFormEditAssocButton(FormEditAssocButton *FormEditAssocButton)
DeleteORMFormField(FormField *FormField)
DeleteORMFormFieldDate(FormFieldDate *FormFieldDate)
DeleteORMFormFieldDateTime(FormFieldDateTime *FormFieldDateTime)
DeleteORMFormFieldFloat64(FormFieldFloat64 *FormFieldFloat64)
DeleteORMFormFieldInt(FormFieldInt *FormFieldInt)
DeleteORMFormFieldSelect(FormFieldSelect *FormFieldSelect)
DeleteORMFormFieldString(FormFieldString *FormFieldString)
DeleteORMFormFieldTime(FormFieldTime *FormFieldTime)
DeleteORMFormGroup(FormGroup *FormGroup)
DeleteORMFormSortAssocButton(FormSortAssocButton *FormSortAssocButton)
DeleteORMOption(Option *Option)
DeleteORMRow(Row *Row)
DeleteORMTable(Table *Table)
}
type BackRepoInterface ¶
type BackRepoInterface interface {
Commit(stage *Stage)
Checkout(stage *Stage)
Backup(stage *Stage, dirPath string)
Restore(stage *Stage, dirPath string)
BackupXL(stage *Stage, dirPath string)
RestoreXL(stage *Stage, dirPath string)
// insertion point for Commit and Checkout signatures
CommitCell(cell *Cell)
CheckoutCell(cell *Cell)
CommitCellBoolean(cellboolean *CellBoolean)
CheckoutCellBoolean(cellboolean *CellBoolean)
CommitCellFloat64(cellfloat64 *CellFloat64)
CheckoutCellFloat64(cellfloat64 *CellFloat64)
CommitCellIcon(cellicon *CellIcon)
CheckoutCellIcon(cellicon *CellIcon)
CommitCellInt(cellint *CellInt)
CheckoutCellInt(cellint *CellInt)
CommitCellString(cellstring *CellString)
CheckoutCellString(cellstring *CellString)
CommitCheckBox(checkbox *CheckBox)
CheckoutCheckBox(checkbox *CheckBox)
CommitDisplayedColumn(displayedcolumn *DisplayedColumn)
CheckoutDisplayedColumn(displayedcolumn *DisplayedColumn)
CommitFormDiv(formdiv *FormDiv)
CheckoutFormDiv(formdiv *FormDiv)
CommitFormEditAssocButton(formeditassocbutton *FormEditAssocButton)
CheckoutFormEditAssocButton(formeditassocbutton *FormEditAssocButton)
CommitFormField(formfield *FormField)
CheckoutFormField(formfield *FormField)
CommitFormFieldDate(formfielddate *FormFieldDate)
CheckoutFormFieldDate(formfielddate *FormFieldDate)
CommitFormFieldDateTime(formfielddatetime *FormFieldDateTime)
CheckoutFormFieldDateTime(formfielddatetime *FormFieldDateTime)
CommitFormFieldFloat64(formfieldfloat64 *FormFieldFloat64)
CheckoutFormFieldFloat64(formfieldfloat64 *FormFieldFloat64)
CommitFormFieldInt(formfieldint *FormFieldInt)
CheckoutFormFieldInt(formfieldint *FormFieldInt)
CommitFormFieldSelect(formfieldselect *FormFieldSelect)
CheckoutFormFieldSelect(formfieldselect *FormFieldSelect)
CommitFormFieldString(formfieldstring *FormFieldString)
CheckoutFormFieldString(formfieldstring *FormFieldString)
CommitFormFieldTime(formfieldtime *FormFieldTime)
CheckoutFormFieldTime(formfieldtime *FormFieldTime)
CommitFormGroup(formgroup *FormGroup)
CheckoutFormGroup(formgroup *FormGroup)
CommitFormSortAssocButton(formsortassocbutton *FormSortAssocButton)
CheckoutFormSortAssocButton(formsortassocbutton *FormSortAssocButton)
CommitOption(option *Option)
CheckoutOption(option *Option)
CommitRow(row *Row)
CheckoutRow(row *Row)
CommitTable(table *Table)
CheckoutTable(table *Table)
GetLastCommitFromBackNb() uint
GetLastPushFromFrontNb() uint
}
type Cell ¶
type Cell struct {
Name string
CellString *CellString
CellFloat64 *CellFloat64
CellInt *CellInt
CellBool *CellBoolean
CellIcon *CellIcon
}
Cell is the sum type for cell
func CopyBranchCell ¶
insertion point for stage branch per struct
func (*Cell) CommitVoid ¶
func (*Cell) CopyBasicFields ¶
func (*Cell) Stage ¶
insertion point for cumulative sub template with model space calls Stage puts cell to the model stage
func (*Cell) UnstageVoid ¶
UnstageVoid removes cell off the model stage
type CellBoolean ¶
func CopyBranchCellBoolean ¶
func CopyBranchCellBoolean(mapOrigCopy map[any]any, cellbooleanFrom *CellBoolean) (cellbooleanTo *CellBoolean)
func (*CellBoolean) Checkout ¶
func (cellboolean *CellBoolean) Checkout(stage *Stage) *CellBoolean
Checkout cellboolean to the back repo (if it is already staged)
func (*CellBoolean) Commit ¶
func (cellboolean *CellBoolean) Commit(stage *Stage) *CellBoolean
commit cellboolean to the back repo (if it is already staged)
func (*CellBoolean) CommitVoid ¶
func (cellboolean *CellBoolean) CommitVoid(stage *Stage)
func (*CellBoolean) CopyBasicFields ¶
func (from *CellBoolean) CopyBasicFields(to *CellBoolean)
func (*CellBoolean) GetName ¶
func (cellboolean *CellBoolean) GetName() (res string)
for satisfaction of GongStruct interface
func (*CellBoolean) Stage ¶
func (cellboolean *CellBoolean) Stage(stage *Stage) *CellBoolean
Stage puts cellboolean to the model stage
func (*CellBoolean) Unstage ¶
func (cellboolean *CellBoolean) Unstage(stage *Stage) *CellBoolean
Unstage removes cellboolean off the model stage
func (*CellBoolean) UnstageVoid ¶
func (cellboolean *CellBoolean) UnstageVoid(stage *Stage)
UnstageVoid removes cellboolean off the model stage
type CellBoolean_WOP ¶
type CellFloat64 ¶
func CopyBranchCellFloat64 ¶
func CopyBranchCellFloat64(mapOrigCopy map[any]any, cellfloat64From *CellFloat64) (cellfloat64To *CellFloat64)
func (*CellFloat64) Checkout ¶
func (cellfloat64 *CellFloat64) Checkout(stage *Stage) *CellFloat64
Checkout cellfloat64 to the back repo (if it is already staged)
func (*CellFloat64) Commit ¶
func (cellfloat64 *CellFloat64) Commit(stage *Stage) *CellFloat64
commit cellfloat64 to the back repo (if it is already staged)
func (*CellFloat64) CommitVoid ¶
func (cellfloat64 *CellFloat64) CommitVoid(stage *Stage)
func (*CellFloat64) CopyBasicFields ¶
func (from *CellFloat64) CopyBasicFields(to *CellFloat64)
func (*CellFloat64) GetName ¶
func (cellfloat64 *CellFloat64) GetName() (res string)
for satisfaction of GongStruct interface
func (*CellFloat64) Stage ¶
func (cellfloat64 *CellFloat64) Stage(stage *Stage) *CellFloat64
Stage puts cellfloat64 to the model stage
func (*CellFloat64) Unstage ¶
func (cellfloat64 *CellFloat64) Unstage(stage *Stage) *CellFloat64
Unstage removes cellfloat64 off the model stage
func (*CellFloat64) UnstageVoid ¶
func (cellfloat64 *CellFloat64) UnstageVoid(stage *Stage)
UnstageVoid removes cellfloat64 off the model stage
type CellFloat64_WOP ¶
type CellIcon ¶
type CellIcon struct {
Name string
// reference of the material icon (ex "home", "delete", "edit")
Icon string
// needs confirmation ? (for instance if the icon is a delete icon)
NeedsConfirmation bool
ConfirmationMessage string
// swagger:ignore
Impl CellIconImplInterface
}
func CopyBranchCellIcon ¶
func (*CellIcon) CommitVoid ¶
func (*CellIcon) CopyBasicFields ¶
func (*CellIcon) OnAfterUpdate ¶
func (*CellIcon) UnstageVoid ¶
UnstageVoid removes cellicon off the model stage
type CellIconImplInterface ¶
type CellIconOrchestrator ¶
type CellIconOrchestrator struct {
}
insertion point CellIconOrchestrator
func (*CellIconOrchestrator) OnAfterUpdate ¶
func (orchestrator *CellIconOrchestrator) OnAfterUpdate( gongsvgStage *Stage, stagedCellIcon, backRepoCellIcon *CellIcon)
type CellIcon_WOP ¶
type CellInt ¶
func CopyBranchCellInt ¶
func (*CellInt) CommitVoid ¶
func (*CellInt) CopyBasicFields ¶
func (*CellInt) UnstageVoid ¶
UnstageVoid removes cellint off the model stage
type CellInt_WOP ¶
type CellString ¶
func CopyBranchCellString ¶
func CopyBranchCellString(mapOrigCopy map[any]any, cellstringFrom *CellString) (cellstringTo *CellString)
func (*CellString) Checkout ¶
func (cellstring *CellString) Checkout(stage *Stage) *CellString
Checkout cellstring to the back repo (if it is already staged)
func (*CellString) Commit ¶
func (cellstring *CellString) Commit(stage *Stage) *CellString
commit cellstring to the back repo (if it is already staged)
func (*CellString) CommitVoid ¶
func (cellstring *CellString) CommitVoid(stage *Stage)
func (*CellString) CopyBasicFields ¶
func (from *CellString) CopyBasicFields(to *CellString)
func (*CellString) GetName ¶
func (cellstring *CellString) GetName() (res string)
for satisfaction of GongStruct interface
func (*CellString) Stage ¶
func (cellstring *CellString) Stage(stage *Stage) *CellString
Stage puts cellstring to the model stage
func (*CellString) Unstage ¶
func (cellstring *CellString) Unstage(stage *Stage) *CellString
Unstage removes cellstring off the model stage
func (*CellString) UnstageVoid ¶
func (cellstring *CellString) UnstageVoid(stage *Stage)
UnstageVoid removes cellstring off the model stage
type CellString_WOP ¶
type CheckBox ¶
func CopyBranchCheckBox ¶
func (*CheckBox) CommitVoid ¶
func (*CheckBox) CopyBasicFields ¶
func (*CheckBox) UnstageVoid ¶
UnstageVoid removes checkbox off the model stage
type CheckBox_WOP ¶
type DisplayedColumn ¶
type DisplayedColumn struct {
Name string
}
func CopyBranchDisplayedColumn ¶
func CopyBranchDisplayedColumn(mapOrigCopy map[any]any, displayedcolumnFrom *DisplayedColumn) (displayedcolumnTo *DisplayedColumn)
func (*DisplayedColumn) Checkout ¶
func (displayedcolumn *DisplayedColumn) Checkout(stage *Stage) *DisplayedColumn
Checkout displayedcolumn to the back repo (if it is already staged)
func (*DisplayedColumn) Commit ¶
func (displayedcolumn *DisplayedColumn) Commit(stage *Stage) *DisplayedColumn
commit displayedcolumn to the back repo (if it is already staged)
func (*DisplayedColumn) CommitVoid ¶
func (displayedcolumn *DisplayedColumn) CommitVoid(stage *Stage)
func (*DisplayedColumn) CopyBasicFields ¶
func (from *DisplayedColumn) CopyBasicFields(to *DisplayedColumn)
func (*DisplayedColumn) GetName ¶
func (displayedcolumn *DisplayedColumn) GetName() (res string)
for satisfaction of GongStruct interface
func (*DisplayedColumn) Stage ¶
func (displayedcolumn *DisplayedColumn) Stage(stage *Stage) *DisplayedColumn
Stage puts displayedcolumn to the model stage
func (*DisplayedColumn) Unstage ¶
func (displayedcolumn *DisplayedColumn) Unstage(stage *Stage) *DisplayedColumn
Unstage removes displayedcolumn off the model stage
func (*DisplayedColumn) UnstageVoid ¶
func (displayedcolumn *DisplayedColumn) UnstageVoid(stage *Stage)
UnstageVoid removes displayedcolumn off the model stage
type DisplayedColumn_WOP ¶
type DisplayedColumn_WOP struct {
Name string
}
type ExcelizeTabulator ¶
type ExcelizeTabulator struct {
// contains filtered or unexported fields
}
func (*ExcelizeTabulator) AddCell ¶
func (tab *ExcelizeTabulator) AddCell(sheetName string, rowId, columnIndex int, value string)
func (*ExcelizeTabulator) AddRow ¶
func (tab *ExcelizeTabulator) AddRow(sheetName string) (rowId int)
func (*ExcelizeTabulator) AddSheet ¶
func (tab *ExcelizeTabulator) AddSheet(sheetName string)
func (*ExcelizeTabulator) SetExcelizeFile ¶
func (tab *ExcelizeTabulator) SetExcelizeFile(f *excelize.File)
type FormDiv ¶
type FormDiv struct {
Name string
FormFields []*FormField
CheckBoxs []*CheckBox
FormEditAssocButton *FormEditAssocButton
FormSortAssocButton *FormSortAssocButton
}
func CopyBranchFormDiv ¶
func (*FormDiv) CommitVoid ¶
func (*FormDiv) CopyBasicFields ¶
func (*FormDiv) UnstageVoid ¶
UnstageVoid removes formdiv off the model stage
type FormDiv_WOP ¶
type FormDiv_WOP struct {
Name string
}
type FormEditAssocButton ¶
type FormEditAssocButton struct {
Name string
Label string
// AssociationStorage is the encoding into a string of the IDs of the associatied instances
// the format is json
AssociationStorage string
// HasChanged is true when the end user has used this form
// When true, the instance will be updated to the back
HasChanged bool
// IsForSavePurpose is true when the FormEditAssocButton is updated
// by the submit of the front (it is false when the button is pressed)
IsForSavePurpose bool
// swagger:ignore
OnAssocEditon FormEditAssocButtonInterface
HasToolTip bool
ToolTipText string
}
FormEditAssocButton is a button on the front end to edit a N-N association the association is stored in the object and
func CopyBranchFormEditAssocButton ¶
func CopyBranchFormEditAssocButton(mapOrigCopy map[any]any, formeditassocbuttonFrom *FormEditAssocButton) (formeditassocbuttonTo *FormEditAssocButton)
func (*FormEditAssocButton) Checkout ¶
func (formeditassocbutton *FormEditAssocButton) Checkout(stage *Stage) *FormEditAssocButton
Checkout formeditassocbutton to the back repo (if it is already staged)
func (*FormEditAssocButton) Commit ¶
func (formeditassocbutton *FormEditAssocButton) Commit(stage *Stage) *FormEditAssocButton
commit formeditassocbutton to the back repo (if it is already staged)
func (*FormEditAssocButton) CommitVoid ¶
func (formeditassocbutton *FormEditAssocButton) CommitVoid(stage *Stage)
func (*FormEditAssocButton) CopyBasicFields ¶
func (from *FormEditAssocButton) CopyBasicFields(to *FormEditAssocButton)
func (*FormEditAssocButton) GetName ¶
func (formeditassocbutton *FormEditAssocButton) GetName() (res string)
for satisfaction of GongStruct interface
func (*FormEditAssocButton) OnAfterUpdate ¶
func (formEditAssocButton *FormEditAssocButton) OnAfterUpdate( stage *Stage, stagedInstance, frontInstance *FormEditAssocButton)
OnAfterUpdate is called when the button is pressed
func (*FormEditAssocButton) Stage ¶
func (formeditassocbutton *FormEditAssocButton) Stage(stage *Stage) *FormEditAssocButton
Stage puts formeditassocbutton to the model stage
func (*FormEditAssocButton) Unstage ¶
func (formeditassocbutton *FormEditAssocButton) Unstage(stage *Stage) *FormEditAssocButton
Unstage removes formeditassocbutton off the model stage
func (*FormEditAssocButton) UnstageVoid ¶
func (formeditassocbutton *FormEditAssocButton) UnstageVoid(stage *Stage)
UnstageVoid removes formeditassocbutton off the model stage
type FormEditAssocButtonInterface ¶
type FormEditAssocButtonInterface interface {
OnButtonPressed()
}
type FormEditAssocButtonOrchestrator ¶
type FormEditAssocButtonOrchestrator struct {
}
FormEditAssocButtonOrchestrator
func (*FormEditAssocButtonOrchestrator) OnAfterUpdate ¶
func (orchestrator *FormEditAssocButtonOrchestrator) OnAfterUpdate( gongsvgStage *Stage, stagedFormEditAssocButton, backRepoFormEditAssocButton *FormEditAssocButton)
type FormEditAssocButton_WOP ¶
type FormField ¶
type FormField struct {
Name string
InputTypeEnum InputTypeEnum
// label for the input field.
// for instance "First Name" in <mat-label>First Name</mat-label>
Label string
// suggestion for the field
Placeholder string
FormFieldString *FormFieldString
FormFieldFloat64 *FormFieldFloat64
FormFieldInt *FormFieldInt
FormFieldDate *FormFieldDate
FormFieldTime *FormFieldTime
FormFieldDateTime *FormFieldDateTime
FormFieldSelect *FormFieldSelect
// set up specific width
HasBespokeWidth bool
BespokeWidthPx int
// set up specific height
HasBespokeHeight bool
BespokeHeightPx int
}
func CopyBranchFormField ¶
func (*FormField) CommitVoid ¶
func (*FormField) CopyBasicFields ¶
func (*FormField) UnstageVoid ¶
UnstageVoid removes formfield off the model stage
type FormFieldDate ¶
func CopyBranchFormFieldDate ¶
func CopyBranchFormFieldDate(mapOrigCopy map[any]any, formfielddateFrom *FormFieldDate) (formfielddateTo *FormFieldDate)
func (*FormFieldDate) Checkout ¶
func (formfielddate *FormFieldDate) Checkout(stage *Stage) *FormFieldDate
Checkout formfielddate to the back repo (if it is already staged)
func (*FormFieldDate) Commit ¶
func (formfielddate *FormFieldDate) Commit(stage *Stage) *FormFieldDate
commit formfielddate to the back repo (if it is already staged)
func (*FormFieldDate) CommitVoid ¶
func (formfielddate *FormFieldDate) CommitVoid(stage *Stage)
func (*FormFieldDate) CopyBasicFields ¶
func (from *FormFieldDate) CopyBasicFields(to *FormFieldDate)
func (*FormFieldDate) GetName ¶
func (formfielddate *FormFieldDate) GetName() (res string)
for satisfaction of GongStruct interface
func (*FormFieldDate) Stage ¶
func (formfielddate *FormFieldDate) Stage(stage *Stage) *FormFieldDate
Stage puts formfielddate to the model stage
func (*FormFieldDate) Unstage ¶
func (formfielddate *FormFieldDate) Unstage(stage *Stage) *FormFieldDate
Unstage removes formfielddate off the model stage
func (*FormFieldDate) UnstageVoid ¶
func (formfielddate *FormFieldDate) UnstageVoid(stage *Stage)
UnstageVoid removes formfielddate off the model stage
type FormFieldDateTime ¶
func CopyBranchFormFieldDateTime ¶
func CopyBranchFormFieldDateTime(mapOrigCopy map[any]any, formfielddatetimeFrom *FormFieldDateTime) (formfielddatetimeTo *FormFieldDateTime)
func (*FormFieldDateTime) Checkout ¶
func (formfielddatetime *FormFieldDateTime) Checkout(stage *Stage) *FormFieldDateTime
Checkout formfielddatetime to the back repo (if it is already staged)
func (*FormFieldDateTime) Commit ¶
func (formfielddatetime *FormFieldDateTime) Commit(stage *Stage) *FormFieldDateTime
commit formfielddatetime to the back repo (if it is already staged)
func (*FormFieldDateTime) CommitVoid ¶
func (formfielddatetime *FormFieldDateTime) CommitVoid(stage *Stage)
func (*FormFieldDateTime) CopyBasicFields ¶
func (from *FormFieldDateTime) CopyBasicFields(to *FormFieldDateTime)
func (*FormFieldDateTime) GetName ¶
func (formfielddatetime *FormFieldDateTime) GetName() (res string)
for satisfaction of GongStruct interface
func (*FormFieldDateTime) Stage ¶
func (formfielddatetime *FormFieldDateTime) Stage(stage *Stage) *FormFieldDateTime
Stage puts formfielddatetime to the model stage
func (*FormFieldDateTime) Unstage ¶
func (formfielddatetime *FormFieldDateTime) Unstage(stage *Stage) *FormFieldDateTime
Unstage removes formfielddatetime off the model stage
func (*FormFieldDateTime) UnstageVoid ¶
func (formfielddatetime *FormFieldDateTime) UnstageVoid(stage *Stage)
UnstageVoid removes formfielddatetime off the model stage
type FormFieldDateTime_WOP ¶
type FormFieldDate_WOP ¶
type FormFieldFloat64 ¶
type FormFieldFloat64 struct {
Name string
Value float64
HasMinValidator bool
MinValue float64
HasMaxValidator bool
MaxValue float64
}
func CopyBranchFormFieldFloat64 ¶
func CopyBranchFormFieldFloat64(mapOrigCopy map[any]any, formfieldfloat64From *FormFieldFloat64) (formfieldfloat64To *FormFieldFloat64)
func (*FormFieldFloat64) Checkout ¶
func (formfieldfloat64 *FormFieldFloat64) Checkout(stage *Stage) *FormFieldFloat64
Checkout formfieldfloat64 to the back repo (if it is already staged)
func (*FormFieldFloat64) Commit ¶
func (formfieldfloat64 *FormFieldFloat64) Commit(stage *Stage) *FormFieldFloat64
commit formfieldfloat64 to the back repo (if it is already staged)
func (*FormFieldFloat64) CommitVoid ¶
func (formfieldfloat64 *FormFieldFloat64) CommitVoid(stage *Stage)
func (*FormFieldFloat64) CopyBasicFields ¶
func (from *FormFieldFloat64) CopyBasicFields(to *FormFieldFloat64)
func (*FormFieldFloat64) GetName ¶
func (formfieldfloat64 *FormFieldFloat64) GetName() (res string)
for satisfaction of GongStruct interface
func (*FormFieldFloat64) Stage ¶
func (formfieldfloat64 *FormFieldFloat64) Stage(stage *Stage) *FormFieldFloat64
Stage puts formfieldfloat64 to the model stage
func (*FormFieldFloat64) Unstage ¶
func (formfieldfloat64 *FormFieldFloat64) Unstage(stage *Stage) *FormFieldFloat64
Unstage removes formfieldfloat64 off the model stage
func (*FormFieldFloat64) UnstageVoid ¶
func (formfieldfloat64 *FormFieldFloat64) UnstageVoid(stage *Stage)
UnstageVoid removes formfieldfloat64 off the model stage
type FormFieldFloat64_WOP ¶
type FormFieldInt ¶
type FormFieldInt struct {
Name string
Value int
HasMinValidator bool
MinValue int
HasMaxValidator bool
MaxValue int
}
func CopyBranchFormFieldInt ¶
func CopyBranchFormFieldInt(mapOrigCopy map[any]any, formfieldintFrom *FormFieldInt) (formfieldintTo *FormFieldInt)
func (*FormFieldInt) Checkout ¶
func (formfieldint *FormFieldInt) Checkout(stage *Stage) *FormFieldInt
Checkout formfieldint to the back repo (if it is already staged)
func (*FormFieldInt) Commit ¶
func (formfieldint *FormFieldInt) Commit(stage *Stage) *FormFieldInt
commit formfieldint to the back repo (if it is already staged)
func (*FormFieldInt) CommitVoid ¶
func (formfieldint *FormFieldInt) CommitVoid(stage *Stage)
func (*FormFieldInt) CopyBasicFields ¶
func (from *FormFieldInt) CopyBasicFields(to *FormFieldInt)
func (*FormFieldInt) GetName ¶
func (formfieldint *FormFieldInt) GetName() (res string)
for satisfaction of GongStruct interface
func (*FormFieldInt) Stage ¶
func (formfieldint *FormFieldInt) Stage(stage *Stage) *FormFieldInt
Stage puts formfieldint to the model stage
func (*FormFieldInt) Unstage ¶
func (formfieldint *FormFieldInt) Unstage(stage *Stage) *FormFieldInt
Unstage removes formfieldint off the model stage
func (*FormFieldInt) UnstageVoid ¶
func (formfieldint *FormFieldInt) UnstageVoid(stage *Stage)
UnstageVoid removes formfieldint off the model stage
type FormFieldInt_WOP ¶
type FormFieldSelect ¶
type FormFieldSelect struct {
Name string
Value *Option
Options []*Option
CanBeEmpty bool
// PreserveInitialOrder overides default alphabetical
// ordering of Options in the pulldown menu
PreserveInitialOrder bool
}
func CopyBranchFormFieldSelect ¶
func CopyBranchFormFieldSelect(mapOrigCopy map[any]any, formfieldselectFrom *FormFieldSelect) (formfieldselectTo *FormFieldSelect)
func (*FormFieldSelect) Checkout ¶
func (formfieldselect *FormFieldSelect) Checkout(stage *Stage) *FormFieldSelect
Checkout formfieldselect to the back repo (if it is already staged)
func (*FormFieldSelect) Commit ¶
func (formfieldselect *FormFieldSelect) Commit(stage *Stage) *FormFieldSelect
commit formfieldselect to the back repo (if it is already staged)
func (*FormFieldSelect) CommitVoid ¶
func (formfieldselect *FormFieldSelect) CommitVoid(stage *Stage)
func (*FormFieldSelect) CopyBasicFields ¶
func (from *FormFieldSelect) CopyBasicFields(to *FormFieldSelect)
func (*FormFieldSelect) GetName ¶
func (formfieldselect *FormFieldSelect) GetName() (res string)
for satisfaction of GongStruct interface
func (*FormFieldSelect) Stage ¶
func (formfieldselect *FormFieldSelect) Stage(stage *Stage) *FormFieldSelect
Stage puts formfieldselect to the model stage
func (*FormFieldSelect) Unstage ¶
func (formfieldselect *FormFieldSelect) Unstage(stage *Stage) *FormFieldSelect
Unstage removes formfieldselect off the model stage
func (*FormFieldSelect) UnstageVoid ¶
func (formfieldselect *FormFieldSelect) UnstageVoid(stage *Stage)
UnstageVoid removes formfieldselect off the model stage
type FormFieldSelect_WOP ¶
type FormFieldString ¶
type FormFieldString struct {
Name string
Value string
// IsTextArea is for telling angular whether to put a, <input ..> or a <textarea ..> which
// allows for multi text editing
IsTextArea bool
}
func CopyBranchFormFieldString ¶
func CopyBranchFormFieldString(mapOrigCopy map[any]any, formfieldstringFrom *FormFieldString) (formfieldstringTo *FormFieldString)
func (*FormFieldString) Checkout ¶
func (formfieldstring *FormFieldString) Checkout(stage *Stage) *FormFieldString
Checkout formfieldstring to the back repo (if it is already staged)
func (*FormFieldString) Commit ¶
func (formfieldstring *FormFieldString) Commit(stage *Stage) *FormFieldString
commit formfieldstring to the back repo (if it is already staged)
func (*FormFieldString) CommitVoid ¶
func (formfieldstring *FormFieldString) CommitVoid(stage *Stage)
func (*FormFieldString) CopyBasicFields ¶
func (from *FormFieldString) CopyBasicFields(to *FormFieldString)
func (*FormFieldString) GetName ¶
func (formfieldstring *FormFieldString) GetName() (res string)
for satisfaction of GongStruct interface
func (*FormFieldString) Stage ¶
func (formfieldstring *FormFieldString) Stage(stage *Stage) *FormFieldString
Stage puts formfieldstring to the model stage
func (*FormFieldString) Unstage ¶
func (formfieldstring *FormFieldString) Unstage(stage *Stage) *FormFieldString
Unstage removes formfieldstring off the model stage
func (*FormFieldString) UnstageVoid ¶
func (formfieldstring *FormFieldString) UnstageVoid(stage *Stage)
UnstageVoid removes formfieldstring off the model stage
type FormFieldString_WOP ¶
type FormFieldTime ¶
type FormFieldTime struct {
Name string
// we will only update the hours, minutes, seconds, ...
Value time.Time
// For an <input> element with type="time",
// the step attribute determines the step size between time values. Its value is specified in seconds.
// When you set step="1", it means the smallest interval of time the user can select or input is one second.
// This allows users to pick any time down to the second. If you omit the step attribute or set it to
// a value like 60 (which corresponds to one minute), users can only pick times in one-minute intervals.
//
// For type="time", it determines the step between times.
// If you want granularity down to milliseconds, you can set step="0.001", which is 1 millisecond
Step float64
}
func CopyBranchFormFieldTime ¶
func CopyBranchFormFieldTime(mapOrigCopy map[any]any, formfieldtimeFrom *FormFieldTime) (formfieldtimeTo *FormFieldTime)
func (*FormFieldTime) Checkout ¶
func (formfieldtime *FormFieldTime) Checkout(stage *Stage) *FormFieldTime
Checkout formfieldtime to the back repo (if it is already staged)
func (*FormFieldTime) Commit ¶
func (formfieldtime *FormFieldTime) Commit(stage *Stage) *FormFieldTime
commit formfieldtime to the back repo (if it is already staged)
func (*FormFieldTime) CommitVoid ¶
func (formfieldtime *FormFieldTime) CommitVoid(stage *Stage)
func (*FormFieldTime) CopyBasicFields ¶
func (from *FormFieldTime) CopyBasicFields(to *FormFieldTime)
func (*FormFieldTime) GetName ¶
func (formfieldtime *FormFieldTime) GetName() (res string)
for satisfaction of GongStruct interface
func (*FormFieldTime) Stage ¶
func (formfieldtime *FormFieldTime) Stage(stage *Stage) *FormFieldTime
Stage puts formfieldtime to the model stage
func (*FormFieldTime) Unstage ¶
func (formfieldtime *FormFieldTime) Unstage(stage *Stage) *FormFieldTime
Unstage removes formfieldtime off the model stage
func (*FormFieldTime) UnstageVoid ¶
func (formfieldtime *FormFieldTime) UnstageVoid(stage *Stage)
UnstageVoid removes formfieldtime off the model stage
type FormField_WOP ¶
type FormGroup ¶
type FormGroup struct {
Name string
Label string
FormDivs []*FormDiv
// If yes, a suppress button is present
HasSuppressButton bool
// HasSuppressButtonBeenPressed is set to true
// when the suppress button is pressed. It is the responsability
// of the backend to reset this value to false
HasSuppressButtonBeenPressed bool
// swagger:ignore
OnSave OnSaveInterface
}
func CopyBranchFormGroup ¶
func (*FormGroup) CommitVoid ¶
func (*FormGroup) CopyBasicFields ¶
func (*FormGroup) OnAfterUpdate ¶
OnAfterUpdate is called when the form group is updated
func (*FormGroup) UnstageVoid ¶
UnstageVoid removes formgroup off the model stage
type FormGroupName ¶
type FormGroupName string
FormGroupName - Authorized name for form group
const (
FormGroupDefaultName FormGroupName = "Form"
)
values for FormGroupName
func (FormGroupName) CodeValues ¶
func (formgroupname FormGroupName) CodeValues() (res []string)
func (FormGroupName) Codes ¶
func (formgroupname FormGroupName) Codes() (res []string)
func (*FormGroupName) FromCodeString ¶
func (formgroupname *FormGroupName) FromCodeString(input string) (err error)
func (*FormGroupName) FromString ¶
func (formgroupname *FormGroupName) FromString(input string) (err error)
func (*FormGroupName) ToCodeString ¶
func (formgroupname *FormGroupName) ToCodeString() (res string)
func (FormGroupName) ToString ¶
func (formgroupname FormGroupName) ToString() (res string)
insertion point of enum utility functions Utility function for FormGroupName if enum values are string, it is stored with the value if enum values are int, they are stored with the code of the value
type FormGroupOrchestrator ¶
type FormGroupOrchestrator struct {
}
FormGroupOrchestrator
func (*FormGroupOrchestrator) OnAfterUpdate ¶
func (orchestrator *FormGroupOrchestrator) OnAfterUpdate( gongsvgStage *Stage, stagedFormGroup, backRepoFormGroup *FormGroup)
type FormGroup_WOP ¶
type FormSortAssocButton ¶
type FormSortAssocButton struct {
Name string
Label string
// swagger:ignore
OnSortEdition FormSortAssocButtonInterface
HasToolTip bool
ToolTipText string
// The link is to allows for the access to the
// association storage
FormEditAssocButton *FormEditAssocButton
}
FormSortAssocButton is a button on the front end to sort a 0..1-N association when submitted, it will update the data
func CopyBranchFormSortAssocButton ¶
func CopyBranchFormSortAssocButton(mapOrigCopy map[any]any, formsortassocbuttonFrom *FormSortAssocButton) (formsortassocbuttonTo *FormSortAssocButton)
func (*FormSortAssocButton) Checkout ¶
func (formsortassocbutton *FormSortAssocButton) Checkout(stage *Stage) *FormSortAssocButton
Checkout formsortassocbutton to the back repo (if it is already staged)
func (*FormSortAssocButton) Commit ¶
func (formsortassocbutton *FormSortAssocButton) Commit(stage *Stage) *FormSortAssocButton
commit formsortassocbutton to the back repo (if it is already staged)
func (*FormSortAssocButton) CommitVoid ¶
func (formsortassocbutton *FormSortAssocButton) CommitVoid(stage *Stage)
func (*FormSortAssocButton) CopyBasicFields ¶
func (from *FormSortAssocButton) CopyBasicFields(to *FormSortAssocButton)
func (*FormSortAssocButton) GetName ¶
func (formsortassocbutton *FormSortAssocButton) GetName() (res string)
for satisfaction of GongStruct interface
func (*FormSortAssocButton) OnAfterUpdate ¶
func (formSortAssocButton *FormSortAssocButton) OnAfterUpdate( stage *Stage, stagedInstance, frontInstance *FormSortAssocButton)
OnAfterUpdate is called when the button is pressed
func (*FormSortAssocButton) Stage ¶
func (formsortassocbutton *FormSortAssocButton) Stage(stage *Stage) *FormSortAssocButton
Stage puts formsortassocbutton to the model stage
func (*FormSortAssocButton) Unstage ¶
func (formsortassocbutton *FormSortAssocButton) Unstage(stage *Stage) *FormSortAssocButton
Unstage removes formsortassocbutton off the model stage
func (*FormSortAssocButton) UnstageVoid ¶
func (formsortassocbutton *FormSortAssocButton) UnstageVoid(stage *Stage)
UnstageVoid removes formsortassocbutton off the model stage
type FormSortAssocButtonInterface ¶
type FormSortAssocButtonInterface interface {
OnButtonPressed()
}
type FormSortAssocButtonOrchestrator ¶
type FormSortAssocButtonOrchestrator struct {
}
FormSortAssocButtonOrchestrator
func (*FormSortAssocButtonOrchestrator) OnAfterUpdate ¶
func (orchestrator *FormSortAssocButtonOrchestrator) OnAfterUpdate( gongsvgStage *Stage, stagedFormSortAssocButton, backRepoFormSortAssocButton *FormSortAssocButton)
type FormSortAssocButton_WOP ¶
type GONG__ExpressionType ¶
type GONG__ExpressionType string
swagger:ignore
const ( GONG__STRUCT_INSTANCE GONG__ExpressionType = "STRUCT_INSTANCE" GONG__FIELD_OR_CONST_VALUE GONG__ExpressionType = "FIELD_OR_CONST_VALUE" GONG__FIELD_VALUE GONG__ExpressionType = "FIELD_VALUE" GONG__ENUM_CAST_INT GONG__ExpressionType = "ENUM_CAST_INT" GONG__ENUM_CAST_STRING GONG__ExpressionType = "ENUM_CAST_STRING" GONG__IDENTIFIER_CONST GONG__ExpressionType = "IDENTIFIER_CONST" )
type GONG__Identifier ¶
type GONG__Identifier struct {
Ident string
Type GONG__ExpressionType
}
type GongFieldValue ¶
type GongFieldValue struct {
GongFieldValueType
// contains filtered or unexported fields
}
func GetFieldStringValue ¶
func GetFieldStringValue(instance any, fieldName string) (res GongFieldValue)
func GetFieldStringValueFromPointer ¶
func GetFieldStringValueFromPointer(instance any, fieldName string) (res GongFieldValue)
func (*GongFieldValue) GetValueBool ¶
func (gongValueField *GongFieldValue) GetValueBool() bool
func (*GongFieldValue) GetValueFloat ¶
func (gongValueField *GongFieldValue) GetValueFloat() float64
func (*GongFieldValue) GetValueInt ¶
func (gongValueField *GongFieldValue) GetValueInt() int
func (*GongFieldValue) GetValueString ¶
func (gongValueField *GongFieldValue) GetValueString() string
type GongFieldValueType ¶
type GongFieldValueType string
const ( GongFieldValueTypeInt GongFieldValueType = "GongFieldValueTypeInt" GongFieldValueTypeFloat GongFieldValueType = "GongFieldValueTypeFloat" GongFieldValueTypeBool GongFieldValueType = "GongFieldValueTypeBool" GongFieldValueTypeOthers GongFieldValueType = "GongFieldValueTypeOthers" )
type GongStructInterface ¶
type GongStructInterface interface {
GetName() (res string)
}
GongStructInterface is the interface met by GongStructs It allows runtime reflexion of instances (without the hassle of the "reflect" package)
type Gong__MouseEvent ¶
type Gong__MouseEvent struct {
ShiftKey bool
}
type Gongstruct ¶
type Gongstruct interface {
}
Gongstruct is the type parameter for generated generic function that allows - access to staged instances - navigation between staged instances by going backward association links between gongstruct - full refactoring of Gongstruct identifiers / fields
type GongstructEnumIntField ¶
type GongstructMapString ¶
type GongstructSet ¶
type GongtructBasicField ¶
type InputTypeEnum ¶
type InputTypeEnum string
InputTypeEnum - enumeration of possible 'type' values for an HTML <input> element swagger:enum InputTypeEnum
const ( Text InputTypeEnum = "text" Password InputTypeEnum = "password" Number InputTypeEnum = "number" Email InputTypeEnum = "email" Tel InputTypeEnum = "tel" Date InputTypeEnum = "date" Datetime InputTypeEnum = "datetime-local" Time InputTypeEnum = "time" URL InputTypeEnum = "url" Search InputTypeEnum = "search" Range InputTypeEnum = "range" Color InputTypeEnum = "color" File InputTypeEnum = "file" Hidden InputTypeEnum = "hidden" Month InputTypeEnum = "month" Week InputTypeEnum = "week" )
values for InputTypeEnum
func (InputTypeEnum) CodeValues ¶
func (inputtypeenum InputTypeEnum) CodeValues() (res []string)
func (InputTypeEnum) Codes ¶
func (inputtypeenum InputTypeEnum) Codes() (res []string)
func (*InputTypeEnum) FromCodeString ¶
func (inputtypeenum *InputTypeEnum) FromCodeString(input string) (err error)
func (*InputTypeEnum) FromString ¶
func (inputtypeenum *InputTypeEnum) FromString(input string) (err error)
func (*InputTypeEnum) ToCodeString ¶
func (inputtypeenum *InputTypeEnum) ToCodeString() (res string)
func (InputTypeEnum) ToString ¶
func (inputtypeenum InputTypeEnum) ToString() (res string)
Utility function for InputTypeEnum if enum values are string, it is stored with the value if enum values are int, they are stored with the code of the value
type NamedStruct ¶
type NamedStruct struct {
// contains filtered or unexported fields
}
func (*NamedStruct) GetName ¶
func (namedStruct *NamedStruct) GetName() string
type OnAfterCreateInterface ¶
type OnAfterCreateInterface[Type Gongstruct] interface { OnAfterCreate(stage *Stage, instance *Type) }
OnAfterCreateInterface callback when an instance is updated from the front
type OnAfterDeleteInterface ¶
type OnAfterDeleteInterface[Type Gongstruct] interface { OnAfterDelete(stage *Stage, staged, front *Type) }
OnAfterDeleteInterface callback when an instance is updated from the front
type OnAfterReadInterface ¶
type OnAfterReadInterface[Type Gongstruct] interface { OnAfterRead(stage *Stage, instance *Type) }
OnAfterReadInterface callback when an instance is updated from the front
type OnAfterUpdateInterface ¶
type OnAfterUpdateInterface[Type Gongstruct] interface { OnAfterUpdate(stage *Stage, old, new *Type) }
OnAfterUpdateInterface callback when an instance is updated from the front
type OnAfterUpdateWithMouseEventInterface ¶
type OnAfterUpdateWithMouseEventInterface[Type Gongstruct] interface { OnAfterUpdateWithMouseEvent(stage *Stage, old, new *Type, mouseEvent *Gong__MouseEvent) }
OnAfterUpdateWithMouseEventInterface callback when an instance is updated from the front
type OnInitCommitInterface ¶
type OnInitCommitInterface interface {
BeforeCommit(stage *Stage)
}
type OnSaveInterface ¶
type OnSaveInterface interface {
OnSave()
}
type Option ¶
type Option struct {
Name string
}
func CopyBranchOption ¶
func (*Option) CommitVoid ¶
func (*Option) CopyBasicFields ¶
func (*Option) UnstageVoid ¶
UnstageVoid removes option off the model stage
type Option_WOP ¶
type Option_WOP struct {
Name string
}
type PointerToGongstruct ¶
type PointerToGongstruct interface {
GetName() string
CommitVoid(*Stage)
UnstageVoid(stage *Stage)
comparable
}
Gongstruct is the type parameter for generated generic function that allows - access to staged instances - navigation between staged instances by going backward association links between gongstruct - full refactoring of Gongstruct identifiers / fields
type ReverseField ¶
func GetReverseFields ¶
func GetReverseFields[Type Gongstruct]() (res []ReverseField)
type Row ¶
type Row struct {
Name string
Cells []*Cell
IsChecked bool
// swagger:ignore
Impl RowImplInterface
}
func (*Row) CommitVoid ¶
func (*Row) CopyBasicFields ¶
func (*Row) OnAfterUpdate ¶
OnAfterUpdate is called when there is an update to the row note the play on words "font row"
func (*Row) UnstageVoid ¶
UnstageVoid removes row off the model stage
type RowImplInterface ¶
type RowOrchestrator ¶
type RowOrchestrator struct {
}
RowOrchestrator
func (*RowOrchestrator) OnAfterUpdate ¶
func (orchestrator *RowOrchestrator) OnAfterUpdate( gongsvgStage *Stage, stagedRow, backRepoRow *Row)
type Stage ¶
type Stage struct {
// insertion point for definition of arrays registering instances
Cells map[*Cell]any
Cells_mapString map[string]*Cell
// insertion point for slice of pointers maps
OnAfterCellCreateCallback OnAfterCreateInterface[Cell]
OnAfterCellUpdateCallback OnAfterUpdateInterface[Cell]
OnAfterCellUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[Cell]
OnAfterCellDeleteCallback OnAfterDeleteInterface[Cell]
OnAfterCellReadCallback OnAfterReadInterface[Cell]
CellBooleans map[*CellBoolean]any
CellBooleans_mapString map[string]*CellBoolean
// insertion point for slice of pointers maps
OnAfterCellBooleanCreateCallback OnAfterCreateInterface[CellBoolean]
OnAfterCellBooleanUpdateCallback OnAfterUpdateInterface[CellBoolean]
OnAfterCellBooleanUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[CellBoolean]
OnAfterCellBooleanDeleteCallback OnAfterDeleteInterface[CellBoolean]
OnAfterCellBooleanReadCallback OnAfterReadInterface[CellBoolean]
CellFloat64s map[*CellFloat64]any
CellFloat64s_mapString map[string]*CellFloat64
// insertion point for slice of pointers maps
OnAfterCellFloat64CreateCallback OnAfterCreateInterface[CellFloat64]
OnAfterCellFloat64UpdateCallback OnAfterUpdateInterface[CellFloat64]
OnAfterCellFloat64UpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[CellFloat64]
OnAfterCellFloat64DeleteCallback OnAfterDeleteInterface[CellFloat64]
OnAfterCellFloat64ReadCallback OnAfterReadInterface[CellFloat64]
CellIcons map[*CellIcon]any
CellIcons_mapString map[string]*CellIcon
// insertion point for slice of pointers maps
OnAfterCellIconCreateCallback OnAfterCreateInterface[CellIcon]
OnAfterCellIconUpdateCallback OnAfterUpdateInterface[CellIcon]
OnAfterCellIconUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[CellIcon]
OnAfterCellIconDeleteCallback OnAfterDeleteInterface[CellIcon]
OnAfterCellIconReadCallback OnAfterReadInterface[CellIcon]
CellInts map[*CellInt]any
CellInts_mapString map[string]*CellInt
// insertion point for slice of pointers maps
OnAfterCellIntCreateCallback OnAfterCreateInterface[CellInt]
OnAfterCellIntUpdateCallback OnAfterUpdateInterface[CellInt]
OnAfterCellIntUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[CellInt]
OnAfterCellIntDeleteCallback OnAfterDeleteInterface[CellInt]
OnAfterCellIntReadCallback OnAfterReadInterface[CellInt]
CellStrings map[*CellString]any
CellStrings_mapString map[string]*CellString
// insertion point for slice of pointers maps
OnAfterCellStringCreateCallback OnAfterCreateInterface[CellString]
OnAfterCellStringUpdateCallback OnAfterUpdateInterface[CellString]
OnAfterCellStringUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[CellString]
OnAfterCellStringDeleteCallback OnAfterDeleteInterface[CellString]
OnAfterCellStringReadCallback OnAfterReadInterface[CellString]
CheckBoxs map[*CheckBox]any
CheckBoxs_mapString map[string]*CheckBox
// insertion point for slice of pointers maps
OnAfterCheckBoxCreateCallback OnAfterCreateInterface[CheckBox]
OnAfterCheckBoxUpdateCallback OnAfterUpdateInterface[CheckBox]
OnAfterCheckBoxUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[CheckBox]
OnAfterCheckBoxDeleteCallback OnAfterDeleteInterface[CheckBox]
OnAfterCheckBoxReadCallback OnAfterReadInterface[CheckBox]
DisplayedColumns map[*DisplayedColumn]any
DisplayedColumns_mapString map[string]*DisplayedColumn
// insertion point for slice of pointers maps
OnAfterDisplayedColumnCreateCallback OnAfterCreateInterface[DisplayedColumn]
OnAfterDisplayedColumnUpdateCallback OnAfterUpdateInterface[DisplayedColumn]
OnAfterDisplayedColumnUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[DisplayedColumn]
OnAfterDisplayedColumnDeleteCallback OnAfterDeleteInterface[DisplayedColumn]
OnAfterDisplayedColumnReadCallback OnAfterReadInterface[DisplayedColumn]
FormDivs map[*FormDiv]any
FormDivs_mapString map[string]*FormDiv
// insertion point for slice of pointers maps
FormDiv_FormFields_reverseMap map[*FormField]*FormDiv
FormDiv_CheckBoxs_reverseMap map[*CheckBox]*FormDiv
OnAfterFormDivCreateCallback OnAfterCreateInterface[FormDiv]
OnAfterFormDivUpdateCallback OnAfterUpdateInterface[FormDiv]
OnAfterFormDivUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormDiv]
OnAfterFormDivDeleteCallback OnAfterDeleteInterface[FormDiv]
OnAfterFormDivReadCallback OnAfterReadInterface[FormDiv]
FormEditAssocButtons map[*FormEditAssocButton]any
FormEditAssocButtons_mapString map[string]*FormEditAssocButton
// insertion point for slice of pointers maps
OnAfterFormEditAssocButtonCreateCallback OnAfterCreateInterface[FormEditAssocButton]
OnAfterFormEditAssocButtonUpdateCallback OnAfterUpdateInterface[FormEditAssocButton]
OnAfterFormEditAssocButtonUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormEditAssocButton]
OnAfterFormEditAssocButtonDeleteCallback OnAfterDeleteInterface[FormEditAssocButton]
OnAfterFormEditAssocButtonReadCallback OnAfterReadInterface[FormEditAssocButton]
FormFields map[*FormField]any
FormFields_mapString map[string]*FormField
// insertion point for slice of pointers maps
OnAfterFormFieldCreateCallback OnAfterCreateInterface[FormField]
OnAfterFormFieldUpdateCallback OnAfterUpdateInterface[FormField]
OnAfterFormFieldUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormField]
OnAfterFormFieldDeleteCallback OnAfterDeleteInterface[FormField]
OnAfterFormFieldReadCallback OnAfterReadInterface[FormField]
FormFieldDates map[*FormFieldDate]any
FormFieldDates_mapString map[string]*FormFieldDate
// insertion point for slice of pointers maps
OnAfterFormFieldDateCreateCallback OnAfterCreateInterface[FormFieldDate]
OnAfterFormFieldDateUpdateCallback OnAfterUpdateInterface[FormFieldDate]
OnAfterFormFieldDateUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormFieldDate]
OnAfterFormFieldDateDeleteCallback OnAfterDeleteInterface[FormFieldDate]
OnAfterFormFieldDateReadCallback OnAfterReadInterface[FormFieldDate]
FormFieldDateTimes map[*FormFieldDateTime]any
FormFieldDateTimes_mapString map[string]*FormFieldDateTime
// insertion point for slice of pointers maps
OnAfterFormFieldDateTimeCreateCallback OnAfterCreateInterface[FormFieldDateTime]
OnAfterFormFieldDateTimeUpdateCallback OnAfterUpdateInterface[FormFieldDateTime]
OnAfterFormFieldDateTimeUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormFieldDateTime]
OnAfterFormFieldDateTimeDeleteCallback OnAfterDeleteInterface[FormFieldDateTime]
OnAfterFormFieldDateTimeReadCallback OnAfterReadInterface[FormFieldDateTime]
FormFieldFloat64s map[*FormFieldFloat64]any
FormFieldFloat64s_mapString map[string]*FormFieldFloat64
// insertion point for slice of pointers maps
OnAfterFormFieldFloat64CreateCallback OnAfterCreateInterface[FormFieldFloat64]
OnAfterFormFieldFloat64UpdateCallback OnAfterUpdateInterface[FormFieldFloat64]
OnAfterFormFieldFloat64UpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormFieldFloat64]
OnAfterFormFieldFloat64DeleteCallback OnAfterDeleteInterface[FormFieldFloat64]
OnAfterFormFieldFloat64ReadCallback OnAfterReadInterface[FormFieldFloat64]
FormFieldInts map[*FormFieldInt]any
FormFieldInts_mapString map[string]*FormFieldInt
// insertion point for slice of pointers maps
OnAfterFormFieldIntCreateCallback OnAfterCreateInterface[FormFieldInt]
OnAfterFormFieldIntUpdateCallback OnAfterUpdateInterface[FormFieldInt]
OnAfterFormFieldIntUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormFieldInt]
OnAfterFormFieldIntDeleteCallback OnAfterDeleteInterface[FormFieldInt]
OnAfterFormFieldIntReadCallback OnAfterReadInterface[FormFieldInt]
FormFieldSelects map[*FormFieldSelect]any
FormFieldSelects_mapString map[string]*FormFieldSelect
// insertion point for slice of pointers maps
FormFieldSelect_Options_reverseMap map[*Option]*FormFieldSelect
OnAfterFormFieldSelectCreateCallback OnAfterCreateInterface[FormFieldSelect]
OnAfterFormFieldSelectUpdateCallback OnAfterUpdateInterface[FormFieldSelect]
OnAfterFormFieldSelectUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormFieldSelect]
OnAfterFormFieldSelectDeleteCallback OnAfterDeleteInterface[FormFieldSelect]
OnAfterFormFieldSelectReadCallback OnAfterReadInterface[FormFieldSelect]
FormFieldStrings map[*FormFieldString]any
FormFieldStrings_mapString map[string]*FormFieldString
// insertion point for slice of pointers maps
OnAfterFormFieldStringCreateCallback OnAfterCreateInterface[FormFieldString]
OnAfterFormFieldStringUpdateCallback OnAfterUpdateInterface[FormFieldString]
OnAfterFormFieldStringUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormFieldString]
OnAfterFormFieldStringDeleteCallback OnAfterDeleteInterface[FormFieldString]
OnAfterFormFieldStringReadCallback OnAfterReadInterface[FormFieldString]
FormFieldTimes map[*FormFieldTime]any
FormFieldTimes_mapString map[string]*FormFieldTime
// insertion point for slice of pointers maps
OnAfterFormFieldTimeCreateCallback OnAfterCreateInterface[FormFieldTime]
OnAfterFormFieldTimeUpdateCallback OnAfterUpdateInterface[FormFieldTime]
OnAfterFormFieldTimeUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormFieldTime]
OnAfterFormFieldTimeDeleteCallback OnAfterDeleteInterface[FormFieldTime]
OnAfterFormFieldTimeReadCallback OnAfterReadInterface[FormFieldTime]
FormGroups map[*FormGroup]any
FormGroups_mapString map[string]*FormGroup
// insertion point for slice of pointers maps
FormGroup_FormDivs_reverseMap map[*FormDiv]*FormGroup
OnAfterFormGroupCreateCallback OnAfterCreateInterface[FormGroup]
OnAfterFormGroupUpdateCallback OnAfterUpdateInterface[FormGroup]
OnAfterFormGroupUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormGroup]
OnAfterFormGroupDeleteCallback OnAfterDeleteInterface[FormGroup]
OnAfterFormGroupReadCallback OnAfterReadInterface[FormGroup]
FormSortAssocButtons map[*FormSortAssocButton]any
FormSortAssocButtons_mapString map[string]*FormSortAssocButton
// insertion point for slice of pointers maps
OnAfterFormSortAssocButtonCreateCallback OnAfterCreateInterface[FormSortAssocButton]
OnAfterFormSortAssocButtonUpdateCallback OnAfterUpdateInterface[FormSortAssocButton]
OnAfterFormSortAssocButtonUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormSortAssocButton]
OnAfterFormSortAssocButtonDeleteCallback OnAfterDeleteInterface[FormSortAssocButton]
OnAfterFormSortAssocButtonReadCallback OnAfterReadInterface[FormSortAssocButton]
Options map[*Option]any
Options_mapString map[string]*Option
// insertion point for slice of pointers maps
OnAfterOptionCreateCallback OnAfterCreateInterface[Option]
OnAfterOptionUpdateCallback OnAfterUpdateInterface[Option]
OnAfterOptionUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[Option]
OnAfterOptionDeleteCallback OnAfterDeleteInterface[Option]
OnAfterOptionReadCallback OnAfterReadInterface[Option]
Rows map[*Row]any
Rows_mapString map[string]*Row
// insertion point for slice of pointers maps
Row_Cells_reverseMap map[*Cell]*Row
OnAfterRowCreateCallback OnAfterCreateInterface[Row]
OnAfterRowUpdateCallback OnAfterUpdateInterface[Row]
OnAfterRowUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[Row]
OnAfterRowDeleteCallback OnAfterDeleteInterface[Row]
OnAfterRowReadCallback OnAfterReadInterface[Row]
Tables map[*Table]any
Tables_mapString map[string]*Table
// insertion point for slice of pointers maps
Table_DisplayedColumns_reverseMap map[*DisplayedColumn]*Table
Table_Rows_reverseMap map[*Row]*Table
OnAfterTableCreateCallback OnAfterCreateInterface[Table]
OnAfterTableUpdateCallback OnAfterUpdateInterface[Table]
OnAfterTableUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[Table]
OnAfterTableDeleteCallback OnAfterDeleteInterface[Table]
OnAfterTableReadCallback OnAfterReadInterface[Table]
AllModelsStructCreateCallback AllModelsStructCreateInterface
AllModelsStructDeleteCallback AllModelsStructDeleteInterface
BackRepo BackRepoInterface
// if set will be called before each commit to the back repo
OnInitCommitCallback OnInitCommitInterface
OnInitCommitFromFrontCallback OnInitCommitInterface
OnInitCommitFromBackCallback OnInitCommitInterface
// store the number of instance per gongstruct
Map_GongStructName_InstancesNb map[string]int
// store meta package import
MetaPackageImportPath string
MetaPackageImportAlias string
// to be removed after fix of [issue](https://github.com/golang/go/issues/57559)
// map to enable docLink renaming when an identifier is renamed
Map_DocLink_Renaming map[string]GONG__Identifier
// store the stage order of each instance in order to
// preserve this order when serializing them
// insertion point for order fields declaration
CellOrder uint
CellMap_Staged_Order map[*Cell]uint
CellBooleanOrder uint
CellBooleanMap_Staged_Order map[*CellBoolean]uint
CellFloat64Order uint
CellFloat64Map_Staged_Order map[*CellFloat64]uint
CellIconOrder uint
CellIconMap_Staged_Order map[*CellIcon]uint
CellIntOrder uint
CellIntMap_Staged_Order map[*CellInt]uint
CellStringOrder uint
CellStringMap_Staged_Order map[*CellString]uint
CheckBoxOrder uint
CheckBoxMap_Staged_Order map[*CheckBox]uint
DisplayedColumnOrder uint
DisplayedColumnMap_Staged_Order map[*DisplayedColumn]uint
FormDivOrder uint
FormDivMap_Staged_Order map[*FormDiv]uint
FormEditAssocButtonOrder uint
FormEditAssocButtonMap_Staged_Order map[*FormEditAssocButton]uint
FormFieldOrder uint
FormFieldMap_Staged_Order map[*FormField]uint
FormFieldDateOrder uint
FormFieldDateMap_Staged_Order map[*FormFieldDate]uint
FormFieldDateTimeOrder uint
FormFieldDateTimeMap_Staged_Order map[*FormFieldDateTime]uint
FormFieldFloat64Order uint
FormFieldFloat64Map_Staged_Order map[*FormFieldFloat64]uint
FormFieldIntOrder uint
FormFieldIntMap_Staged_Order map[*FormFieldInt]uint
FormFieldSelectOrder uint
FormFieldSelectMap_Staged_Order map[*FormFieldSelect]uint
FormFieldStringOrder uint
FormFieldStringMap_Staged_Order map[*FormFieldString]uint
FormFieldTimeOrder uint
FormFieldTimeMap_Staged_Order map[*FormFieldTime]uint
FormGroupOrder uint
FormGroupMap_Staged_Order map[*FormGroup]uint
FormSortAssocButtonOrder uint
FormSortAssocButtonMap_Staged_Order map[*FormSortAssocButton]uint
OptionOrder uint
OptionMap_Staged_Order map[*Option]uint
RowOrder uint
RowMap_Staged_Order map[*Row]uint
TableOrder uint
TableMap_Staged_Order map[*Table]uint
NamedStructs []*NamedStruct
// contains filtered or unexported fields
}
Stage enables storage of staged instances swagger:ignore
func (*Stage) CommitWithSuspendedCallbacks ¶
func (stage *Stage) CommitWithSuspendedCallbacks()
func (*Stage) ComputeReverseMaps ¶
func (stage *Stage) ComputeReverseMaps()
ComputeReverseMaps computes the reverse map, for all intances, for all slice to pointers field Its complexity is in O(n)O(p) where p is the number of pointers
func (*Stage) GetCommitId ¶
func (*Stage) GetCommitTS ¶
func (*Stage) GetDigramsEmbededDir ¶
func (*Stage) GetMap_GongStructName_InstancesNb ¶
func (*Stage) GetModelsEmbededDir ¶
func (*Stage) GetNamedStructNamesByOrder ¶
func (*Stage) GetNamedStructsNames ¶
GetNamedStructs implements models.ProbebStage.
func (*Stage) GetProbeFormStageName ¶
func (*Stage) GetProbeSplitStageName ¶
func (*Stage) GetProbeTableStageName ¶
func (*Stage) GetProbeTreeSidebarStageName ¶
func (*Stage) IsStagedCell ¶
insertion point for stage per struct
func (*Stage) IsStagedCellBoolean ¶
func (stage *Stage) IsStagedCellBoolean(cellboolean *CellBoolean) (ok bool)
func (*Stage) IsStagedCellFloat64 ¶
func (stage *Stage) IsStagedCellFloat64(cellfloat64 *CellFloat64) (ok bool)
func (*Stage) IsStagedCellIcon ¶
func (*Stage) IsStagedCellInt ¶
func (*Stage) IsStagedCellString ¶
func (stage *Stage) IsStagedCellString(cellstring *CellString) (ok bool)
func (*Stage) IsStagedCheckBox ¶
func (*Stage) IsStagedDisplayedColumn ¶
func (stage *Stage) IsStagedDisplayedColumn(displayedcolumn *DisplayedColumn) (ok bool)
func (*Stage) IsStagedFormDiv ¶
func (*Stage) IsStagedFormEditAssocButton ¶
func (stage *Stage) IsStagedFormEditAssocButton(formeditassocbutton *FormEditAssocButton) (ok bool)
func (*Stage) IsStagedFormField ¶
func (*Stage) IsStagedFormFieldDate ¶
func (stage *Stage) IsStagedFormFieldDate(formfielddate *FormFieldDate) (ok bool)
func (*Stage) IsStagedFormFieldDateTime ¶
func (stage *Stage) IsStagedFormFieldDateTime(formfielddatetime *FormFieldDateTime) (ok bool)
func (*Stage) IsStagedFormFieldFloat64 ¶
func (stage *Stage) IsStagedFormFieldFloat64(formfieldfloat64 *FormFieldFloat64) (ok bool)
func (*Stage) IsStagedFormFieldInt ¶
func (stage *Stage) IsStagedFormFieldInt(formfieldint *FormFieldInt) (ok bool)
func (*Stage) IsStagedFormFieldSelect ¶
func (stage *Stage) IsStagedFormFieldSelect(formfieldselect *FormFieldSelect) (ok bool)
func (*Stage) IsStagedFormFieldString ¶
func (stage *Stage) IsStagedFormFieldString(formfieldstring *FormFieldString) (ok bool)
func (*Stage) IsStagedFormFieldTime ¶
func (stage *Stage) IsStagedFormFieldTime(formfieldtime *FormFieldTime) (ok bool)
func (*Stage) IsStagedFormGroup ¶
func (*Stage) IsStagedFormSortAssocButton ¶
func (stage *Stage) IsStagedFormSortAssocButton(formsortassocbutton *FormSortAssocButton) (ok bool)
func (*Stage) IsStagedOption ¶
func (*Stage) IsStagedRow ¶
func (*Stage) IsStagedTable ¶
func (*Stage) Marshall ¶
Marshall marshall the stage content into the file as an instanciation into a stage
func (*Stage) MarshallToString ¶
MarshallToString marshall the stage content into a string
func (*Stage) Restore ¶
Restore resets Stage & BackRepo and restores their content from the restore files in dirPath
func (*Stage) RestoreXL ¶
Restore resets Stage & BackRepo and restores their content from the restore files in dirPath
func (*Stage) SetGeneratesDiff ¶
func (*Stage) StageBranchCell ¶
insertion point for stage branch per struct
func (*Stage) StageBranchCellBoolean ¶
func (stage *Stage) StageBranchCellBoolean(cellboolean *CellBoolean)
func (*Stage) StageBranchCellFloat64 ¶
func (stage *Stage) StageBranchCellFloat64(cellfloat64 *CellFloat64)
func (*Stage) StageBranchCellIcon ¶
func (*Stage) StageBranchCellInt ¶
func (*Stage) StageBranchCellString ¶
func (stage *Stage) StageBranchCellString(cellstring *CellString)
func (*Stage) StageBranchCheckBox ¶
func (*Stage) StageBranchDisplayedColumn ¶
func (stage *Stage) StageBranchDisplayedColumn(displayedcolumn *DisplayedColumn)
func (*Stage) StageBranchFormDiv ¶
func (*Stage) StageBranchFormEditAssocButton ¶
func (stage *Stage) StageBranchFormEditAssocButton(formeditassocbutton *FormEditAssocButton)
func (*Stage) StageBranchFormField ¶
func (*Stage) StageBranchFormFieldDate ¶
func (stage *Stage) StageBranchFormFieldDate(formfielddate *FormFieldDate)
func (*Stage) StageBranchFormFieldDateTime ¶
func (stage *Stage) StageBranchFormFieldDateTime(formfielddatetime *FormFieldDateTime)
func (*Stage) StageBranchFormFieldFloat64 ¶
func (stage *Stage) StageBranchFormFieldFloat64(formfieldfloat64 *FormFieldFloat64)
func (*Stage) StageBranchFormFieldInt ¶
func (stage *Stage) StageBranchFormFieldInt(formfieldint *FormFieldInt)
func (*Stage) StageBranchFormFieldSelect ¶
func (stage *Stage) StageBranchFormFieldSelect(formfieldselect *FormFieldSelect)
func (*Stage) StageBranchFormFieldString ¶
func (stage *Stage) StageBranchFormFieldString(formfieldstring *FormFieldString)
func (*Stage) StageBranchFormFieldTime ¶
func (stage *Stage) StageBranchFormFieldTime(formfieldtime *FormFieldTime)
func (*Stage) StageBranchFormGroup ¶
func (*Stage) StageBranchFormSortAssocButton ¶
func (stage *Stage) StageBranchFormSortAssocButton(formsortassocbutton *FormSortAssocButton)
func (*Stage) StageBranchOption ¶
func (*Stage) StageBranchRow ¶
func (*Stage) StageBranchTable ¶
func (*Stage) UnstageBranchCell ¶
insertion point for unstage branch per struct
func (*Stage) UnstageBranchCellBoolean ¶
func (stage *Stage) UnstageBranchCellBoolean(cellboolean *CellBoolean)
func (*Stage) UnstageBranchCellFloat64 ¶
func (stage *Stage) UnstageBranchCellFloat64(cellfloat64 *CellFloat64)
func (*Stage) UnstageBranchCellIcon ¶
func (*Stage) UnstageBranchCellInt ¶
func (*Stage) UnstageBranchCellString ¶
func (stage *Stage) UnstageBranchCellString(cellstring *CellString)
func (*Stage) UnstageBranchCheckBox ¶
func (*Stage) UnstageBranchDisplayedColumn ¶
func (stage *Stage) UnstageBranchDisplayedColumn(displayedcolumn *DisplayedColumn)
func (*Stage) UnstageBranchFormDiv ¶
func (*Stage) UnstageBranchFormEditAssocButton ¶
func (stage *Stage) UnstageBranchFormEditAssocButton(formeditassocbutton *FormEditAssocButton)
func (*Stage) UnstageBranchFormField ¶
func (*Stage) UnstageBranchFormFieldDate ¶
func (stage *Stage) UnstageBranchFormFieldDate(formfielddate *FormFieldDate)
func (*Stage) UnstageBranchFormFieldDateTime ¶
func (stage *Stage) UnstageBranchFormFieldDateTime(formfielddatetime *FormFieldDateTime)
func (*Stage) UnstageBranchFormFieldFloat64 ¶
func (stage *Stage) UnstageBranchFormFieldFloat64(formfieldfloat64 *FormFieldFloat64)
func (*Stage) UnstageBranchFormFieldInt ¶
func (stage *Stage) UnstageBranchFormFieldInt(formfieldint *FormFieldInt)
func (*Stage) UnstageBranchFormFieldSelect ¶
func (stage *Stage) UnstageBranchFormFieldSelect(formfieldselect *FormFieldSelect)
func (*Stage) UnstageBranchFormFieldString ¶
func (stage *Stage) UnstageBranchFormFieldString(formfieldstring *FormFieldString)
func (*Stage) UnstageBranchFormFieldTime ¶
func (stage *Stage) UnstageBranchFormFieldTime(formfieldtime *FormFieldTime)
func (*Stage) UnstageBranchFormGroup ¶
func (*Stage) UnstageBranchFormSortAssocButton ¶
func (stage *Stage) UnstageBranchFormSortAssocButton(formsortassocbutton *FormSortAssocButton)
func (*Stage) UnstageBranchOption ¶
func (*Stage) UnstageBranchRow ¶
func (*Stage) UnstageBranchTable ¶
type Table ¶
type Table struct {
Name string
DisplayedColumns []*DisplayedColumn
Rows []*Row
HasFiltering bool
HasColumnSorting bool
HasPaginator bool
HasCheckableRows bool
HasSaveButton bool
SaveButtonLabel string
CanDragDropRows bool
HasCloseButton bool // Is used in case of drag drop since drag drop operation save the result
// SavingInProgress is true when rows are being saved
// it is set to true by the front at the begining and set back
// to false by the front
// This information is used by the back to compute when all rows to be updated
// have been updated
SavingInProgress bool
// The `sticky` property in CSS positions an element based on user's scroll,
// allowing it to be fixed within its parent after a scroll point is reached.
// NbOfStickyColumns defines the number of sticky column at the left of the table
NbOfStickyColumns int
// swagger:ignore
Impl TableImplInterface
}
func CopyBranchTable ¶
func (*Table) CommitVoid ¶
func (*Table) CopyBasicFields ¶
func (*Table) OnAfterUpdate ¶
OnAfterUpdate is called when there is an update to the table note the play on words "font table"
func (*Table) UnstageVoid ¶
UnstageVoid removes table off the model stage
type TableExtraNameEnum ¶
type TableExtraNameEnum string
TableExtraNameEnum - enumeration of possible 'type' values for an HTML <input> element swagger:enum TableExtraNameEnum
const ( TableSelectExtraName TableExtraNameEnum = "tmp-picker" TableSortExtraName TableExtraNameEnum = "tmp-sort" )
values for TableExtraNameEnum
func (TableExtraNameEnum) CodeValues ¶
func (tableextranameenum TableExtraNameEnum) CodeValues() (res []string)
func (TableExtraNameEnum) Codes ¶
func (tableextranameenum TableExtraNameEnum) Codes() (res []string)
func (*TableExtraNameEnum) FromCodeString ¶
func (tableextranameenum *TableExtraNameEnum) FromCodeString(input string) (err error)
func (*TableExtraNameEnum) FromString ¶
func (tableextranameenum *TableExtraNameEnum) FromString(input string) (err error)
func (*TableExtraNameEnum) ToCodeString ¶
func (tableextranameenum *TableExtraNameEnum) ToCodeString() (res string)
func (TableExtraNameEnum) ToString ¶
func (tableextranameenum TableExtraNameEnum) ToString() (res string)
Utility function for TableExtraNameEnum if enum values are string, it is stored with the value if enum values are int, they are stored with the code of the value
type TableExtraPathEnum ¶
type TableExtraPathEnum string
TableExtraPathEnum - enumeration of possible 'type' values for an HTML <input> element swagger:enum TableExtraPathEnum
const ( // those five default values are used by the "data" when used in combination for accessing // data StackNamePostFixForTableForMainTable TableExtraPathEnum = "-table" StackNamePostFixForTableForMainForm TableExtraPathEnum = "-form" StackNamePostFixForTableForMainTree TableExtraPathEnum = "-sidebar" StackNamePostFixForTableForAssociation TableExtraPathEnum = "-table-pick" StackNamePostFixForTableForAssociationSorting TableExtraPathEnum = "-table-sort" )
values for TableExtraPathEnum
func (TableExtraPathEnum) CodeValues ¶
func (tableextrapathenum TableExtraPathEnum) CodeValues() (res []string)
func (TableExtraPathEnum) Codes ¶
func (tableextrapathenum TableExtraPathEnum) Codes() (res []string)
func (*TableExtraPathEnum) FromCodeString ¶
func (tableextrapathenum *TableExtraPathEnum) FromCodeString(input string) (err error)
func (*TableExtraPathEnum) FromString ¶
func (tableextrapathenum *TableExtraPathEnum) FromString(input string) (err error)
func (*TableExtraPathEnum) ToCodeString ¶
func (tableextrapathenum *TableExtraPathEnum) ToCodeString() (res string)
func (TableExtraPathEnum) ToString ¶
func (tableextrapathenum TableExtraPathEnum) ToString() (res string)
Utility function for TableExtraPathEnum if enum values are string, it is stored with the value if enum values are int, they are stored with the code of the value
type TableImplInterface ¶
type TableName ¶
type TableName string
TableName - Authorized name for form group
const (
TableDefaultName TableName = "Table"
)
values for TableName
func (TableName) CodeValues ¶
func (*TableName) FromCodeString ¶
func (*TableName) FromString ¶
func (*TableName) ToCodeString ¶
type TableOrchestrator ¶
type TableOrchestrator struct {
}
TableOrchestrator
func (*TableOrchestrator) OnAfterUpdate ¶
func (orchestrator *TableOrchestrator) OnAfterUpdate( gongsvgStage *Stage, stagedTable, backRepoTable *Table)
type TableTestNameEnum ¶
type TableTestNameEnum string
TableTestNameEnum - Authorized name for form group
const ( ManualyEditedTableStackName TableTestNameEnum = "manualy edited table" ManualyEditedFormStackName TableTestNameEnum = "manualy edited form" GeneratedTableStackName TableTestNameEnum = "generated table" )
values for TableTestNameEnum
func (TableTestNameEnum) CodeValues ¶
func (tabletestnameenum TableTestNameEnum) CodeValues() (res []string)
func (TableTestNameEnum) Codes ¶
func (tabletestnameenum TableTestNameEnum) Codes() (res []string)
func (*TableTestNameEnum) FromCodeString ¶
func (tabletestnameenum *TableTestNameEnum) FromCodeString(input string) (err error)
func (*TableTestNameEnum) FromString ¶
func (tabletestnameenum *TableTestNameEnum) FromString(input string) (err error)
func (*TableTestNameEnum) ToCodeString ¶
func (tabletestnameenum *TableTestNameEnum) ToCodeString() (res string)
func (TableTestNameEnum) ToString ¶
func (tabletestnameenum TableTestNameEnum) ToString() (res string)
Utility function for TableTestNameEnum if enum values are string, it is stored with the value if enum values are int, they are stored with the code of the value
Source Files
¶
- cell.go
- cell_boolean.go
- cell_float64.go
- cell_icon.go
- cell_int.go
- cell_string.go
- displayed_column.go
- docs.go
- form_div.go
- form_edit_assoc_button.go
- form_field.go
- form_field_boolean.go
- form_field_date.go
- form_field_date_time.go
- form_field_float64.go
- form_field_int.go
- form_field_select.go
- form_field_string.go
- form_field_time.go
- form_group.go
- form_group_name.go
- form_sort_assoc_button.go
- input_type_enum.go
- option.go
- row.go
- table.go
- table__test_names_enum.go
- table_extra_name_enum.go
- table_extra_path_enum.go
- table_name.go
- zzz_gong.go
- zzz_gong_ast.go
- zzz_gong_callbacks.go
- zzz_gong_diff.go
- zzz_gong_enum.go
- zzz_gong_graph.go
- zzz_gong_marshall.go
- zzz_gong_orchestrator.go
- zzz_gong_orchestrator_wme.go
- zzz_gong_reverse.go
- zzz_gong_serialize.go
- zzz_gong_slices.go
- zzz_gong_wop.go