models

package
v0.0.0-...-4ae0165 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2026 License: MIT Imports: 22 Imported by: 8

Documentation

Overview

Default generated models package docs (at least one file is necessary in a models package)

Generated code - do not edit

generated boilerplate code edit the file for adding other stages

since the boilerplate stager.go import split which import table

there can be no table stager

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

View Source
const (
	ProbeTreeSidebarSuffix           = ":sidebar of the probe"
	ProbeNavigationTreeSidebarSuffix = ":sidebar of the probe, navigation"
	ProbeTableSuffix                 = ":table of the probe"
	ProbeNotificationTableSuffix     = ":notification table of the probe"
	ProbeFormSuffix                  = ":form of the probe"
	ProbeSplitSuffix                 = ":probe of the probe"
)
View Source
const (
	GongNavigationModeNormal gongStageNavigationMode = "Normal"
	// when the mode is navigating, each commit backward and forward
	// it is possible to go apply the nbCommitsBackward forward commits
	GongNavigationModeNavigating gongStageNavigationMode = "Navigating"
)
View Source
const GongIdentifiersDecls = `
	{{Identifier}} := (&models.{{GeneratedStructName}}{Name: {{GeneratedFieldNameValue}}}).Stage(stage)`
View Source
const GongUnstageStmt = `
	{{Identifier}}.Unstage(stage)`
View Source
const IdentifiersDeclsWithoutNameInit = `
	{{Identifier}} := (&models.{{GeneratedStructName}}{}).Stage(stage)`

previous version does not hanldle embedded structs (https://github.com/golang/go/issues/9859) simpler version but the name of the instance cannot be human read before the fields initialization

View Source
const MetaFieldStructInitStatement = `
	{{Identifier}}.{{GeneratedFieldName}} = ` + `{{GeneratedFieldNameValue}}`
View Source
const NoteOnFormFieldDateTime = ""

GONGDOC(NoteOnFormFieldDateTime): models.FormFieldDateTime provides two form fields that will make the precision of go time.Time

View Source
const NumberInitStatement = `
	{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
View Source
const PointerFieldInitStatement = `
	{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
View Source
const SliceOfPointersFieldInitStatement = `
	{{Identifier}}.{{GeneratedFieldName}} = append({{Identifier}}.{{GeneratedFieldName}}, {{GeneratedFieldNameValue}})`
View Source
const StringEnumInitStatement = `
	{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
View Source
const StringInitStatement = `
	{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
View Source
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 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 Diff

func Diff[T1, T2 PointerToGongstruct](stage *Stage, a, b T1, fieldName string, oldSlice, newSlice []T2) (ops string)

Diff returns the sequence of operations to transform oldSlice into newSlice. It requires type T to be comparable (e.g., pointers, ints, strings).

func ExtractMiddleUint

func ExtractMiddleUint(input string) (uint, error)

ExtractMiddleUint takes a formatted string and returns the extracted integer.

func GenerateReproducibleUUIDv4

func GenerateReproducibleUUIDv4(seedStr string, seedInt uint64) string

GenerateReproducibleUUIDv4 creates a deterministic UUIDv4 based on a string and a positive integer.

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 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 gongstruct identifier

func GetGongstructInstancesSet

func GetGongstructInstancesSet[Type Gongstruct](stage *Stage) *map[*Type]struct{}

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]struct{}

GetGongstructInstancesSetFromPointerType returns the set staged GongstructType instances it is usefull because it allows refactoring of gongstruct identifier

func GetGongstructNameFromPointer

func GetGongstructNameFromPointer(instance GongstructIF) (res string)

func GetNamedStructInstances

func GetNamedStructInstances[T PointerToGongstruct](set map[T]struct{}, 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 GongstructIF]() (res string)

GetPointerToGongstructName returns the name of the Gongstruct this can be usefull if one want program robust to refactoring

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]struct{}, order map[T]uint) (res []T)

func GetStructInstancesByOrderAuto

func GetStructInstancesByOrderAuto[T PointerToGongstruct](stage *Stage) (res []T)

GetStructInstancesByOrderAuto returns a slice of generic pointers to gongstructs ordered by their order in the stage.

func GongCleanPointer

func GongCleanPointer[T PointerToGongstruct](stage *Stage, element *T) (modified bool)

GongCleanPointer sets the pointer to nil if the referenced element is not staged. T must be a pointer to a struct that implements PointerToGongstruct.

func GongCleanSlice

func GongCleanSlice[T PointerToGongstruct](stage *Stage, slice *[]T) (modified bool)

GongCleanSlice removes unstaged elements from a slice of pointers of type T. T must be a pointer to a struct that implements PointerToGongstruct.

func GongExtractBool

func GongExtractBool(expr ast.Expr) bool

func GongExtractExpr

func GongExtractExpr(expr ast.Expr) any

func GongExtractFloat

func GongExtractFloat(expr ast.Expr) float64

func GongExtractInt

func GongExtractInt(expr ast.Expr) int

func GongExtractString

func GongExtractString(expr ast.Expr) string

func GongGetMap

func GongGetMap[Type GongstructIF](stage *Stage) map[string]Type

GongGetMap returns the map of staged Gonstruct instance by their name Can be usefull if names are unique

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 GongParseAstString

func GongParseAstString(stage *Stage, blob string, preserveOrder bool) error

GongParseAstString parses the Go source code from a string

func GongUnmarshallEnum

func GongUnmarshallEnum[T interface{ FromCodeString(string) error }](
	ptr T,
	valueExpr ast.Expr)

GongUnmarshallEnum handles assignment of enum fields (via SelectorExpr or String fallback)

func GongUnmarshallPointer

func GongUnmarshallPointer[T PointerToGongstruct](
	ptr *T,
	valueExpr ast.Expr,
	identifierMap map[string]GongstructIF)

GongUnmarshallPointer handles assignment of a single pointer field

func GongUnmarshallSliceOfPointers

func GongUnmarshallSliceOfPointers[T PointerToGongstruct](
	slice *[]T,
	valueExpr ast.Expr,
	identifierMap map[string]GongstructIF) (err error)

GongUnmarshallSliceOfPointers handles append, slices.Delete, and slices.Insert for slice fields

func IntToLetters

func IntToLetters(number int32) (letters string)

func IsStaged

func IsStaged[Type Gongstruct](stage *Stage, instance *Type) (ok bool)

func IsStagedPointerToGongstruct

func IsStagedPointerToGongstruct[Type PointerToGongstruct](stage *Stage, instance Type) (ok bool)

func OnAfterUpdateFromFront

func OnAfterUpdateFromFront[Type Gongstruct](stage *Stage, old, new *Type)

OnAfterUpdateFromFront is called after a update from front

func ParseAstEmbeddedFile

func ParseAstEmbeddedFile(stage *Stage, directory embed.FS, pathToFile string) error

ParseAstEmbeddedFile parses the Go source code from an embedded file

func ParseAstFile

func ParseAstFile(stage *Stage, pathToFile string, preserveOrder bool) error

ParseAstFile Parse pathToFile and stages all instances declared in the file

func ParseAstFileFromAst

func ParseAstFileFromAst(stage *Stage, inFile *ast.File, fset *token.FileSet, preserveOrder bool) error

ParseAstFileFromAst traverses the AST and stages instances using the Unmarshaller registry

func SerializeExcelizePointerToGongstruct

func SerializeExcelizePointerToGongstruct[Type PointerToGongstruct](stage *Stage, f *excelize.File)

func SerializeExcelizePointerToGongstruct2

func SerializeExcelizePointerToGongstruct2[Type PointerToGongstruct](stage *Stage, f *excelize.File, addIDs bool)

func SerializeStage

func SerializeStage(stage *Stage, filename string)

func SerializeStage2

func SerializeStage2(stage *Stage, filename string, addIDs bool)

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 SetFieldStringValueFromPointer

func SetFieldStringValueFromPointer(instance GongstructIF, fieldName string, value GongFieldValue, stage *Stage) error

func SetOrchestratorOnAfterUpdate

func SetOrchestratorOnAfterUpdate[Type Gongstruct](stage *Stage)

func SortGongstructSetByName

func SortGongstructSetByName[T PointerToGongstruct](set map[T]struct{}) (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 ToRawStringLiteral

func ToRawStringLiteral(s string) string

ToRawStringLiteral formats a string into safe Go source code, using backticks to preserve newlines and readability.

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

func CopyBranchCell(mapOrigCopy map[any]any, cellFrom *Cell) (cellTo *Cell)

insertion point for stage branch per struct

func (*Cell) Checkout

func (cell *Cell) Checkout(stage *Stage) *Cell

Checkout cell to the back repo (if it is already staged)

func (*Cell) Commit

func (cell *Cell) Commit(stage *Stage) *Cell

commit cell to the back repo (if it is already staged)

func (*Cell) CommitVoid

func (cell *Cell) CommitVoid(stage *Stage)

func (*Cell) CopyBasicFields

func (from *Cell) CopyBasicFields(to *Cell)

func (*Cell) GetName

func (cell *Cell) GetName() (res string)

for satisfaction of GongStruct interface

func (*Cell) GongClean

func (cell *Cell) GongClean(stage *Stage) (modified bool)

insertion point per named struct Clean garbage collect unstaged instances that are referenced by Cell

func (*Cell) GongCopy

func (cell *Cell) GongCopy() GongstructIF

insertion point per named struct

func (*Cell) GongDiff

func (cell *Cell) GongDiff(stage *Stage, cellOther *Cell) (diffs []string)

insertion point for diff per struct GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*Cell) GongGetFieldHeaders

func (cell *Cell) GongGetFieldHeaders() (res []GongFieldHeader)

insertion point for get fields header method

func (*Cell) GongGetFieldValue

func (cell *Cell) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

insertion point for generic get gongstruct field value

func (*Cell) GongGetGongstructName

func (cell *Cell) GongGetGongstructName() string

insertion point for generic get gongstruct name

func (*Cell) GongGetIdentifier

func (cell *Cell) GongGetIdentifier(stage *Stage) string

GongGetIdentifier returns a unique identifier of the instance in the staging area This identifier is composed of the Gongstruct name and the order of the instance in the staging area It is used to identify instances across sessions insertion point per named struct

func (*Cell) GongGetOrder

func (cell *Cell) GongGetOrder(stage *Stage) uint

GongGetOrder returns the order of the instance in the staging area This order is set at staging time, and reflects the order of creation of the instances in the staging area It is used when rendering slices of GongstructIF to keep a deterministic order which is important for frontends such as web frontends to avoid unnecessary re-renderings insertion point per named struct

func (*Cell) GongGetReferenceIdentifier

func (cell *Cell) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*Cell) GongGetReverseFieldOwner

func (inst *Cell) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

insertion point

func (*Cell) GongGetReverseFieldOwnerName

func (inst *Cell) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

insertion point

func (*Cell) GongMarshallAllFields

func (cell *Cell) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

insertion point for marshall all fields methods

func (*Cell) GongMarshallField

func (cell *Cell) GongMarshallField(stage *Stage, fieldName string) (res string)

insertion point for marshall field methods

func (*Cell) GongMarshallIdentifier

func (cell *Cell) GongMarshallIdentifier(stage *Stage) (decl string)

MarshallIdentifier returns the code to instantiate the instance in a marshalling file insertion point per named struct

func (*Cell) GongMarshallUnstaging

func (cell *Cell) GongMarshallUnstaging(stage *Stage) (decl string)

insertion point for unstaging

func (*Cell) GongReconstructPointersFromInstances

func (reference *Cell) GongReconstructPointersFromInstances(stage *Stage)

insertion point for pointer reconstruction from instances

func (*Cell) GongReconstructPointersFromReferences

func (reference *Cell) GongReconstructPointersFromReferences(stage *Stage, instance *Cell)

insertion point for pointer reconstruction from references

func (*Cell) GongSetFieldValue

func (cell *Cell) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

insertion point for generic set gongstruct field value

func (*Cell) SetName

func (cell *Cell) SetName(name string)

for satisfaction of GongStruct interface

func (*Cell) Stage

func (cell *Cell) Stage(stage *Stage) *Cell

insertion point for cumulative sub template with model space calls Stage puts cell to the model stage

func (*Cell) StagePreserveOrder

func (cell *Cell) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts cell to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.CellOrder - update stage.CellOrder accordingly

func (*Cell) StageVoid

func (cell *Cell) StageVoid(stage *Stage)

func (*Cell) Unstage

func (cell *Cell) Unstage(stage *Stage) *Cell

Unstage removes cell off the model stage

func (*Cell) UnstageVoid

func (cell *Cell) UnstageVoid(stage *Stage)

UnstageVoid removes cell off the model stage

type CellBoolean

type CellBoolean struct {
	Name  string
	Value bool
}

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) GongClean

func (cellboolean *CellBoolean) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by CellBoolean

func (*CellBoolean) GongCopy

func (cellboolean *CellBoolean) GongCopy() GongstructIF

func (*CellBoolean) GongDiff

func (cellboolean *CellBoolean) GongDiff(stage *Stage, cellbooleanOther *CellBoolean) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*CellBoolean) GongGetFieldHeaders

func (cellboolean *CellBoolean) GongGetFieldHeaders() (res []GongFieldHeader)

func (*CellBoolean) GongGetFieldValue

func (cellboolean *CellBoolean) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*CellBoolean) GongGetGongstructName

func (cellboolean *CellBoolean) GongGetGongstructName() string

func (*CellBoolean) GongGetIdentifier

func (cellboolean *CellBoolean) GongGetIdentifier(stage *Stage) string

func (*CellBoolean) GongGetOrder

func (cellboolean *CellBoolean) GongGetOrder(stage *Stage) uint

func (*CellBoolean) GongGetReferenceIdentifier

func (cellboolean *CellBoolean) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*CellBoolean) GongGetReverseFieldOwner

func (inst *CellBoolean) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*CellBoolean) GongGetReverseFieldOwnerName

func (inst *CellBoolean) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*CellBoolean) GongMarshallAllFields

func (cellboolean *CellBoolean) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*CellBoolean) GongMarshallField

func (cellboolean *CellBoolean) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*CellBoolean) GongMarshallIdentifier

func (cellboolean *CellBoolean) GongMarshallIdentifier(stage *Stage) (decl string)

func (*CellBoolean) GongMarshallUnstaging

func (cellboolean *CellBoolean) GongMarshallUnstaging(stage *Stage) (decl string)

func (*CellBoolean) GongReconstructPointersFromInstances

func (reference *CellBoolean) GongReconstructPointersFromInstances(stage *Stage)

func (*CellBoolean) GongReconstructPointersFromReferences

func (reference *CellBoolean) GongReconstructPointersFromReferences(stage *Stage, instance *CellBoolean)

func (*CellBoolean) GongSetFieldValue

func (cellboolean *CellBoolean) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*CellBoolean) SetName

func (cellboolean *CellBoolean) SetName(name 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) StagePreserveOrder

func (cellboolean *CellBoolean) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts cellboolean to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.CellBooleanOrder - update stage.CellBooleanOrder accordingly

func (*CellBoolean) StageVoid

func (cellboolean *CellBoolean) StageVoid(stage *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 CellBooleanUnmarshaller

type CellBooleanUnmarshaller struct{}

func (*CellBooleanUnmarshaller) Initialize

func (u *CellBooleanUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*CellBooleanUnmarshaller) UnmarshallField

func (u *CellBooleanUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type CellBoolean_WOP

type CellBoolean_WOP struct {
	Name string

	Value bool
}

type CellFloat64

type CellFloat64 struct {
	Name  string
	Value float64
}

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) GongClean

func (cellfloat64 *CellFloat64) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by CellFloat64

func (*CellFloat64) GongCopy

func (cellfloat64 *CellFloat64) GongCopy() GongstructIF

func (*CellFloat64) GongDiff

func (cellfloat64 *CellFloat64) GongDiff(stage *Stage, cellfloat64Other *CellFloat64) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*CellFloat64) GongGetFieldHeaders

func (cellfloat64 *CellFloat64) GongGetFieldHeaders() (res []GongFieldHeader)

func (*CellFloat64) GongGetFieldValue

func (cellfloat64 *CellFloat64) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*CellFloat64) GongGetGongstructName

func (cellfloat64 *CellFloat64) GongGetGongstructName() string

func (*CellFloat64) GongGetIdentifier

func (cellfloat64 *CellFloat64) GongGetIdentifier(stage *Stage) string

func (*CellFloat64) GongGetOrder

func (cellfloat64 *CellFloat64) GongGetOrder(stage *Stage) uint

func (*CellFloat64) GongGetReferenceIdentifier

func (cellfloat64 *CellFloat64) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*CellFloat64) GongGetReverseFieldOwner

func (inst *CellFloat64) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*CellFloat64) GongGetReverseFieldOwnerName

func (inst *CellFloat64) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*CellFloat64) GongMarshallAllFields

func (cellfloat64 *CellFloat64) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*CellFloat64) GongMarshallField

func (cellfloat64 *CellFloat64) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*CellFloat64) GongMarshallIdentifier

func (cellfloat64 *CellFloat64) GongMarshallIdentifier(stage *Stage) (decl string)

func (*CellFloat64) GongMarshallUnstaging

func (cellfloat64 *CellFloat64) GongMarshallUnstaging(stage *Stage) (decl string)

func (*CellFloat64) GongReconstructPointersFromInstances

func (reference *CellFloat64) GongReconstructPointersFromInstances(stage *Stage)

func (*CellFloat64) GongReconstructPointersFromReferences

func (reference *CellFloat64) GongReconstructPointersFromReferences(stage *Stage, instance *CellFloat64)

func (*CellFloat64) GongSetFieldValue

func (cellfloat64 *CellFloat64) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*CellFloat64) SetName

func (cellfloat64 *CellFloat64) SetName(name 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) StagePreserveOrder

func (cellfloat64 *CellFloat64) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts cellfloat64 to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.CellFloat64Order - update stage.CellFloat64Order accordingly

func (*CellFloat64) StageVoid

func (cellfloat64 *CellFloat64) StageVoid(stage *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 CellFloat64Unmarshaller

type CellFloat64Unmarshaller struct{}

func (*CellFloat64Unmarshaller) Initialize

func (u *CellFloat64Unmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*CellFloat64Unmarshaller) UnmarshallField

func (u *CellFloat64Unmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type CellFloat64_WOP

type CellFloat64_WOP struct {
	Name string

	Value float64
}

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 CopyBranchCellIcon(mapOrigCopy map[any]any, celliconFrom *CellIcon) (celliconTo *CellIcon)

func (*CellIcon) Checkout

func (cellicon *CellIcon) Checkout(stage *Stage) *CellIcon

Checkout cellicon to the back repo (if it is already staged)

func (*CellIcon) Commit

func (cellicon *CellIcon) Commit(stage *Stage) *CellIcon

commit cellicon to the back repo (if it is already staged)

func (*CellIcon) CommitVoid

func (cellicon *CellIcon) CommitVoid(stage *Stage)

func (*CellIcon) CopyBasicFields

func (from *CellIcon) CopyBasicFields(to *CellIcon)

func (*CellIcon) GetName

func (cellicon *CellIcon) GetName() (res string)

for satisfaction of GongStruct interface

func (*CellIcon) GongClean

func (cellicon *CellIcon) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by CellIcon

func (*CellIcon) GongCopy

func (cellicon *CellIcon) GongCopy() GongstructIF

func (*CellIcon) GongDiff

func (cellicon *CellIcon) GongDiff(stage *Stage, celliconOther *CellIcon) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*CellIcon) GongGetFieldHeaders

func (cellicon *CellIcon) GongGetFieldHeaders() (res []GongFieldHeader)

func (*CellIcon) GongGetFieldValue

func (cellicon *CellIcon) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*CellIcon) GongGetGongstructName

func (cellicon *CellIcon) GongGetGongstructName() string

func (*CellIcon) GongGetIdentifier

func (cellicon *CellIcon) GongGetIdentifier(stage *Stage) string

func (*CellIcon) GongGetOrder

func (cellicon *CellIcon) GongGetOrder(stage *Stage) uint

func (*CellIcon) GongGetReferenceIdentifier

func (cellicon *CellIcon) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*CellIcon) GongGetReverseFieldOwner

func (inst *CellIcon) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*CellIcon) GongGetReverseFieldOwnerName

func (inst *CellIcon) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*CellIcon) GongMarshallAllFields

func (cellicon *CellIcon) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*CellIcon) GongMarshallField

func (cellicon *CellIcon) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*CellIcon) GongMarshallIdentifier

func (cellicon *CellIcon) GongMarshallIdentifier(stage *Stage) (decl string)

func (*CellIcon) GongMarshallUnstaging

func (cellicon *CellIcon) GongMarshallUnstaging(stage *Stage) (decl string)

func (*CellIcon) GongReconstructPointersFromInstances

func (reference *CellIcon) GongReconstructPointersFromInstances(stage *Stage)

func (*CellIcon) GongReconstructPointersFromReferences

func (reference *CellIcon) GongReconstructPointersFromReferences(stage *Stage, instance *CellIcon)

func (*CellIcon) GongSetFieldValue

func (cellicon *CellIcon) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*CellIcon) OnAfterUpdate

func (cellIcon *CellIcon) OnAfterUpdate(stage *Stage, stagedInstance, frontCellIcon *CellIcon)

func (*CellIcon) SetName

func (cellicon *CellIcon) SetName(name string)

for satisfaction of GongStruct interface

func (*CellIcon) Stage

func (cellicon *CellIcon) Stage(stage *Stage) *CellIcon

Stage puts cellicon to the model stage

func (*CellIcon) StagePreserveOrder

func (cellicon *CellIcon) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts cellicon to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.CellIconOrder - update stage.CellIconOrder accordingly

func (*CellIcon) StageVoid

func (cellicon *CellIcon) StageVoid(stage *Stage)

func (*CellIcon) Unstage

func (cellicon *CellIcon) Unstage(stage *Stage) *CellIcon

Unstage removes cellicon off the model stage

func (*CellIcon) UnstageVoid

func (cellicon *CellIcon) UnstageVoid(stage *Stage)

UnstageVoid removes cellicon off the model stage

type CellIconImplInterface

type CellIconImplInterface interface {

	// CellIconUpdated function is called each time a CellIcon is modified
	CellIconUpdated(stage *Stage, cellIcon, updatedCellIcon *CellIcon)
}

type CellIconOrchestrator

type CellIconOrchestrator struct {
}

insertion point CellIconOrchestrator

func (*CellIconOrchestrator) OnAfterUpdate

func (orchestrator *CellIconOrchestrator) OnAfterUpdate(
	gongsvgStage *Stage,
	stagedCellIcon, backRepoCellIcon *CellIcon)

type CellIconUnmarshaller

type CellIconUnmarshaller struct{}

func (*CellIconUnmarshaller) Initialize

func (u *CellIconUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*CellIconUnmarshaller) UnmarshallField

func (u *CellIconUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type CellIconUpdatedFunc

type CellIconUpdatedFunc func(stage *Stage, cellIcon *CellIcon, updatedCellIcon *CellIcon)

type CellIcon_WOP

type CellIcon_WOP struct {
	Name string

	Icon string

	NeedsConfirmation bool

	ConfirmationMessage string
}

type CellInt

type CellInt struct {
	Name  string
	Value int
}

func CopyBranchCellInt

func CopyBranchCellInt(mapOrigCopy map[any]any, cellintFrom *CellInt) (cellintTo *CellInt)

func (*CellInt) Checkout

func (cellint *CellInt) Checkout(stage *Stage) *CellInt

Checkout cellint to the back repo (if it is already staged)

func (*CellInt) Commit

func (cellint *CellInt) Commit(stage *Stage) *CellInt

commit cellint to the back repo (if it is already staged)

func (*CellInt) CommitVoid

func (cellint *CellInt) CommitVoid(stage *Stage)

func (*CellInt) CopyBasicFields

func (from *CellInt) CopyBasicFields(to *CellInt)

func (*CellInt) GetName

func (cellint *CellInt) GetName() (res string)

for satisfaction of GongStruct interface

func (*CellInt) GongClean

func (cellint *CellInt) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by CellInt

func (*CellInt) GongCopy

func (cellint *CellInt) GongCopy() GongstructIF

func (*CellInt) GongDiff

func (cellint *CellInt) GongDiff(stage *Stage, cellintOther *CellInt) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*CellInt) GongGetFieldHeaders

func (cellint *CellInt) GongGetFieldHeaders() (res []GongFieldHeader)

func (*CellInt) GongGetFieldValue

func (cellint *CellInt) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*CellInt) GongGetGongstructName

func (cellint *CellInt) GongGetGongstructName() string

func (*CellInt) GongGetIdentifier

func (cellint *CellInt) GongGetIdentifier(stage *Stage) string

func (*CellInt) GongGetOrder

func (cellint *CellInt) GongGetOrder(stage *Stage) uint

func (*CellInt) GongGetReferenceIdentifier

func (cellint *CellInt) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*CellInt) GongGetReverseFieldOwner

func (inst *CellInt) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*CellInt) GongGetReverseFieldOwnerName

func (inst *CellInt) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*CellInt) GongMarshallAllFields

func (cellint *CellInt) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*CellInt) GongMarshallField

func (cellint *CellInt) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*CellInt) GongMarshallIdentifier

func (cellint *CellInt) GongMarshallIdentifier(stage *Stage) (decl string)

func (*CellInt) GongMarshallUnstaging

func (cellint *CellInt) GongMarshallUnstaging(stage *Stage) (decl string)

func (*CellInt) GongReconstructPointersFromInstances

func (reference *CellInt) GongReconstructPointersFromInstances(stage *Stage)

func (*CellInt) GongReconstructPointersFromReferences

func (reference *CellInt) GongReconstructPointersFromReferences(stage *Stage, instance *CellInt)

func (*CellInt) GongSetFieldValue

func (cellint *CellInt) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*CellInt) SetName

func (cellint *CellInt) SetName(name string)

for satisfaction of GongStruct interface

func (*CellInt) Stage

func (cellint *CellInt) Stage(stage *Stage) *CellInt

Stage puts cellint to the model stage

func (*CellInt) StagePreserveOrder

func (cellint *CellInt) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts cellint to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.CellIntOrder - update stage.CellIntOrder accordingly

func (*CellInt) StageVoid

func (cellint *CellInt) StageVoid(stage *Stage)

func (*CellInt) Unstage

func (cellint *CellInt) Unstage(stage *Stage) *CellInt

Unstage removes cellint off the model stage

func (*CellInt) UnstageVoid

func (cellint *CellInt) UnstageVoid(stage *Stage)

UnstageVoid removes cellint off the model stage

type CellIntUnmarshaller

type CellIntUnmarshaller struct{}

func (*CellIntUnmarshaller) Initialize

func (u *CellIntUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*CellIntUnmarshaller) UnmarshallField

func (u *CellIntUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type CellInt_WOP

type CellInt_WOP struct {
	Name string

	Value int
}

type CellString

type CellString struct {
	Name string

	//gong:text
	Value string
}

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) GongClean

func (cellstring *CellString) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by CellString

func (*CellString) GongCopy

func (cellstring *CellString) GongCopy() GongstructIF

func (*CellString) GongDiff

func (cellstring *CellString) GongDiff(stage *Stage, cellstringOther *CellString) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*CellString) GongGetFieldHeaders

func (cellstring *CellString) GongGetFieldHeaders() (res []GongFieldHeader)

func (*CellString) GongGetFieldValue

func (cellstring *CellString) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*CellString) GongGetGongstructName

func (cellstring *CellString) GongGetGongstructName() string

func (*CellString) GongGetIdentifier

func (cellstring *CellString) GongGetIdentifier(stage *Stage) string

func (*CellString) GongGetOrder

func (cellstring *CellString) GongGetOrder(stage *Stage) uint

func (*CellString) GongGetReferenceIdentifier

func (cellstring *CellString) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*CellString) GongGetReverseFieldOwner

func (inst *CellString) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*CellString) GongGetReverseFieldOwnerName

func (inst *CellString) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*CellString) GongMarshallAllFields

func (cellstring *CellString) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*CellString) GongMarshallField

func (cellstring *CellString) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*CellString) GongMarshallIdentifier

func (cellstring *CellString) GongMarshallIdentifier(stage *Stage) (decl string)

func (*CellString) GongMarshallUnstaging

func (cellstring *CellString) GongMarshallUnstaging(stage *Stage) (decl string)

func (*CellString) GongReconstructPointersFromInstances

func (reference *CellString) GongReconstructPointersFromInstances(stage *Stage)

func (*CellString) GongReconstructPointersFromReferences

func (reference *CellString) GongReconstructPointersFromReferences(stage *Stage, instance *CellString)

func (*CellString) GongSetFieldValue

func (cellstring *CellString) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*CellString) SetName

func (cellstring *CellString) SetName(name 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) StagePreserveOrder

func (cellstring *CellString) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts cellstring to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.CellStringOrder - update stage.CellStringOrder accordingly

func (*CellString) StageVoid

func (cellstring *CellString) StageVoid(stage *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 CellStringUnmarshaller

type CellStringUnmarshaller struct{}

func (*CellStringUnmarshaller) Initialize

func (u *CellStringUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*CellStringUnmarshaller) UnmarshallField

func (u *CellStringUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type CellString_WOP

type CellString_WOP struct {
	Name string

	Value string
}

type CellUnmarshaller

type CellUnmarshaller struct{}

insertion point per named struct

func (*CellUnmarshaller) Initialize

func (u *CellUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*CellUnmarshaller) UnmarshallField

func (u *CellUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type Cell_WOP

type Cell_WOP struct {
	Name string
}

insertion point

type CheckBox

type CheckBox struct {
	Name  string
	Value bool
}

func CopyBranchCheckBox

func CopyBranchCheckBox(mapOrigCopy map[any]any, checkboxFrom *CheckBox) (checkboxTo *CheckBox)

func (*CheckBox) Checkout

func (checkbox *CheckBox) Checkout(stage *Stage) *CheckBox

Checkout checkbox to the back repo (if it is already staged)

func (*CheckBox) Commit

func (checkbox *CheckBox) Commit(stage *Stage) *CheckBox

commit checkbox to the back repo (if it is already staged)

func (*CheckBox) CommitVoid

func (checkbox *CheckBox) CommitVoid(stage *Stage)

func (*CheckBox) CopyBasicFields

func (from *CheckBox) CopyBasicFields(to *CheckBox)

func (*CheckBox) GetName

func (checkbox *CheckBox) GetName() (res string)

for satisfaction of GongStruct interface

func (*CheckBox) GongClean

func (checkbox *CheckBox) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by CheckBox

func (*CheckBox) GongCopy

func (checkbox *CheckBox) GongCopy() GongstructIF

func (*CheckBox) GongDiff

func (checkbox *CheckBox) GongDiff(stage *Stage, checkboxOther *CheckBox) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*CheckBox) GongGetFieldHeaders

func (checkbox *CheckBox) GongGetFieldHeaders() (res []GongFieldHeader)

func (*CheckBox) GongGetFieldValue

func (checkbox *CheckBox) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*CheckBox) GongGetGongstructName

func (checkbox *CheckBox) GongGetGongstructName() string

func (*CheckBox) GongGetIdentifier

func (checkbox *CheckBox) GongGetIdentifier(stage *Stage) string

func (*CheckBox) GongGetOrder

func (checkbox *CheckBox) GongGetOrder(stage *Stage) uint

func (*CheckBox) GongGetReferenceIdentifier

func (checkbox *CheckBox) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*CheckBox) GongGetReverseFieldOwner

func (inst *CheckBox) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*CheckBox) GongGetReverseFieldOwnerName

func (inst *CheckBox) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*CheckBox) GongMarshallAllFields

func (checkbox *CheckBox) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*CheckBox) GongMarshallField

func (checkbox *CheckBox) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*CheckBox) GongMarshallIdentifier

func (checkbox *CheckBox) GongMarshallIdentifier(stage *Stage) (decl string)

func (*CheckBox) GongMarshallUnstaging

func (checkbox *CheckBox) GongMarshallUnstaging(stage *Stage) (decl string)

func (*CheckBox) GongReconstructPointersFromInstances

func (reference *CheckBox) GongReconstructPointersFromInstances(stage *Stage)

func (*CheckBox) GongReconstructPointersFromReferences

func (reference *CheckBox) GongReconstructPointersFromReferences(stage *Stage, instance *CheckBox)

func (*CheckBox) GongSetFieldValue

func (checkbox *CheckBox) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*CheckBox) SetName

func (checkbox *CheckBox) SetName(name string)

for satisfaction of GongStruct interface

func (*CheckBox) Stage

func (checkbox *CheckBox) Stage(stage *Stage) *CheckBox

Stage puts checkbox to the model stage

func (*CheckBox) StagePreserveOrder

func (checkbox *CheckBox) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts checkbox to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.CheckBoxOrder - update stage.CheckBoxOrder accordingly

func (*CheckBox) StageVoid

func (checkbox *CheckBox) StageVoid(stage *Stage)

func (*CheckBox) Unstage

func (checkbox *CheckBox) Unstage(stage *Stage) *CheckBox

Unstage removes checkbox off the model stage

func (*CheckBox) UnstageVoid

func (checkbox *CheckBox) UnstageVoid(stage *Stage)

UnstageVoid removes checkbox off the model stage

type CheckBoxUnmarshaller

type CheckBoxUnmarshaller struct{}

func (*CheckBoxUnmarshaller) Initialize

func (u *CheckBoxUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*CheckBoxUnmarshaller) UnmarshallField

func (u *CheckBoxUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type CheckBox_WOP

type CheckBox_WOP struct {
	Name string

	Value bool
}

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) GongClean

func (displayedcolumn *DisplayedColumn) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by DisplayedColumn

func (*DisplayedColumn) GongCopy

func (displayedcolumn *DisplayedColumn) GongCopy() GongstructIF

func (*DisplayedColumn) GongDiff

func (displayedcolumn *DisplayedColumn) GongDiff(stage *Stage, displayedcolumnOther *DisplayedColumn) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*DisplayedColumn) GongGetFieldHeaders

func (displayedcolumn *DisplayedColumn) GongGetFieldHeaders() (res []GongFieldHeader)

func (*DisplayedColumn) GongGetFieldValue

func (displayedcolumn *DisplayedColumn) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*DisplayedColumn) GongGetGongstructName

func (displayedcolumn *DisplayedColumn) GongGetGongstructName() string

func (*DisplayedColumn) GongGetIdentifier

func (displayedcolumn *DisplayedColumn) GongGetIdentifier(stage *Stage) string

func (*DisplayedColumn) GongGetOrder

func (displayedcolumn *DisplayedColumn) GongGetOrder(stage *Stage) uint

func (*DisplayedColumn) GongGetReferenceIdentifier

func (displayedcolumn *DisplayedColumn) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*DisplayedColumn) GongGetReverseFieldOwner

func (inst *DisplayedColumn) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*DisplayedColumn) GongGetReverseFieldOwnerName

func (inst *DisplayedColumn) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*DisplayedColumn) GongMarshallAllFields

func (displayedcolumn *DisplayedColumn) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*DisplayedColumn) GongMarshallField

func (displayedcolumn *DisplayedColumn) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*DisplayedColumn) GongMarshallIdentifier

func (displayedcolumn *DisplayedColumn) GongMarshallIdentifier(stage *Stage) (decl string)

func (*DisplayedColumn) GongMarshallUnstaging

func (displayedcolumn *DisplayedColumn) GongMarshallUnstaging(stage *Stage) (decl string)

func (*DisplayedColumn) GongReconstructPointersFromInstances

func (reference *DisplayedColumn) GongReconstructPointersFromInstances(stage *Stage)

func (*DisplayedColumn) GongReconstructPointersFromReferences

func (reference *DisplayedColumn) GongReconstructPointersFromReferences(stage *Stage, instance *DisplayedColumn)

func (*DisplayedColumn) GongSetFieldValue

func (displayedcolumn *DisplayedColumn) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*DisplayedColumn) SetName

func (displayedcolumn *DisplayedColumn) SetName(name 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) StagePreserveOrder

func (displayedcolumn *DisplayedColumn) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts displayedcolumn to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.DisplayedColumnOrder - update stage.DisplayedColumnOrder accordingly

func (*DisplayedColumn) StageVoid

func (displayedcolumn *DisplayedColumn) StageVoid(stage *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 DisplayedColumnUnmarshaller

type DisplayedColumnUnmarshaller struct{}

func (*DisplayedColumnUnmarshaller) Initialize

func (u *DisplayedColumnUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*DisplayedColumnUnmarshaller) UnmarshallField

func (u *DisplayedColumnUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

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 CopyBranchFormDiv(mapOrigCopy map[any]any, formdivFrom *FormDiv) (formdivTo *FormDiv)

func (*FormDiv) Checkout

func (formdiv *FormDiv) Checkout(stage *Stage) *FormDiv

Checkout formdiv to the back repo (if it is already staged)

func (*FormDiv) Commit

func (formdiv *FormDiv) Commit(stage *Stage) *FormDiv

commit formdiv to the back repo (if it is already staged)

func (*FormDiv) CommitVoid

func (formdiv *FormDiv) CommitVoid(stage *Stage)

func (*FormDiv) CopyBasicFields

func (from *FormDiv) CopyBasicFields(to *FormDiv)

func (*FormDiv) GetName

func (formdiv *FormDiv) GetName() (res string)

for satisfaction of GongStruct interface

func (*FormDiv) GongClean

func (formdiv *FormDiv) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by FormDiv

func (*FormDiv) GongCopy

func (formdiv *FormDiv) GongCopy() GongstructIF

func (*FormDiv) GongDiff

func (formdiv *FormDiv) GongDiff(stage *Stage, formdivOther *FormDiv) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*FormDiv) GongGetFieldHeaders

func (formdiv *FormDiv) GongGetFieldHeaders() (res []GongFieldHeader)

func (*FormDiv) GongGetFieldValue

func (formdiv *FormDiv) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*FormDiv) GongGetGongstructName

func (formdiv *FormDiv) GongGetGongstructName() string

func (*FormDiv) GongGetIdentifier

func (formdiv *FormDiv) GongGetIdentifier(stage *Stage) string

func (*FormDiv) GongGetOrder

func (formdiv *FormDiv) GongGetOrder(stage *Stage) uint

func (*FormDiv) GongGetReferenceIdentifier

func (formdiv *FormDiv) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*FormDiv) GongGetReverseFieldOwner

func (inst *FormDiv) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*FormDiv) GongGetReverseFieldOwnerName

func (inst *FormDiv) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*FormDiv) GongMarshallAllFields

func (formdiv *FormDiv) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*FormDiv) GongMarshallField

func (formdiv *FormDiv) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*FormDiv) GongMarshallIdentifier

func (formdiv *FormDiv) GongMarshallIdentifier(stage *Stage) (decl string)

func (*FormDiv) GongMarshallUnstaging

func (formdiv *FormDiv) GongMarshallUnstaging(stage *Stage) (decl string)

func (*FormDiv) GongReconstructPointersFromInstances

func (reference *FormDiv) GongReconstructPointersFromInstances(stage *Stage)

func (*FormDiv) GongReconstructPointersFromReferences

func (reference *FormDiv) GongReconstructPointersFromReferences(stage *Stage, instance *FormDiv)

func (*FormDiv) GongSetFieldValue

func (formdiv *FormDiv) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*FormDiv) SetName

func (formdiv *FormDiv) SetName(name string)

for satisfaction of GongStruct interface

func (*FormDiv) Stage

func (formdiv *FormDiv) Stage(stage *Stage) *FormDiv

Stage puts formdiv to the model stage

func (*FormDiv) StagePreserveOrder

func (formdiv *FormDiv) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts formdiv to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.FormDivOrder - update stage.FormDivOrder accordingly

func (*FormDiv) StageVoid

func (formdiv *FormDiv) StageVoid(stage *Stage)

func (*FormDiv) Unstage

func (formdiv *FormDiv) Unstage(stage *Stage) *FormDiv

Unstage removes formdiv off the model stage

func (*FormDiv) UnstageVoid

func (formdiv *FormDiv) UnstageVoid(stage *Stage)

UnstageVoid removes formdiv off the model stage

type FormDivUnmarshaller

type FormDivUnmarshaller struct{}

func (*FormDivUnmarshaller) Initialize

func (u *FormDivUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*FormDivUnmarshaller) UnmarshallField

func (u *FormDivUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

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
	MatTooltipShowDelay string // "500" for 500 ms
}

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) GongClean

func (formeditassocbutton *FormEditAssocButton) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by FormEditAssocButton

func (*FormEditAssocButton) GongCopy

func (formeditassocbutton *FormEditAssocButton) GongCopy() GongstructIF

func (*FormEditAssocButton) GongDiff

func (formeditassocbutton *FormEditAssocButton) GongDiff(stage *Stage, formeditassocbuttonOther *FormEditAssocButton) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*FormEditAssocButton) GongGetFieldHeaders

func (formeditassocbutton *FormEditAssocButton) GongGetFieldHeaders() (res []GongFieldHeader)

func (*FormEditAssocButton) GongGetFieldValue

func (formeditassocbutton *FormEditAssocButton) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*FormEditAssocButton) GongGetGongstructName

func (formeditassocbutton *FormEditAssocButton) GongGetGongstructName() string

func (*FormEditAssocButton) GongGetIdentifier

func (formeditassocbutton *FormEditAssocButton) GongGetIdentifier(stage *Stage) string

func (*FormEditAssocButton) GongGetOrder

func (formeditassocbutton *FormEditAssocButton) GongGetOrder(stage *Stage) uint

func (*FormEditAssocButton) GongGetReferenceIdentifier

func (formeditassocbutton *FormEditAssocButton) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*FormEditAssocButton) GongGetReverseFieldOwner

func (inst *FormEditAssocButton) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*FormEditAssocButton) GongGetReverseFieldOwnerName

func (inst *FormEditAssocButton) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*FormEditAssocButton) GongMarshallAllFields

func (formeditassocbutton *FormEditAssocButton) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*FormEditAssocButton) GongMarshallField

func (formeditassocbutton *FormEditAssocButton) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*FormEditAssocButton) GongMarshallIdentifier

func (formeditassocbutton *FormEditAssocButton) GongMarshallIdentifier(stage *Stage) (decl string)

func (*FormEditAssocButton) GongMarshallUnstaging

func (formeditassocbutton *FormEditAssocButton) GongMarshallUnstaging(stage *Stage) (decl string)

func (*FormEditAssocButton) GongReconstructPointersFromInstances

func (reference *FormEditAssocButton) GongReconstructPointersFromInstances(stage *Stage)

func (*FormEditAssocButton) GongReconstructPointersFromReferences

func (reference *FormEditAssocButton) GongReconstructPointersFromReferences(stage *Stage, instance *FormEditAssocButton)

func (*FormEditAssocButton) GongSetFieldValue

func (formeditassocbutton *FormEditAssocButton) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*FormEditAssocButton) OnAfterUpdate

func (formEditAssocButton *FormEditAssocButton) OnAfterUpdate(
	stage *Stage,
	stagedInstance, frontInstance *FormEditAssocButton)

OnAfterUpdate is called when the button is pressed

func (*FormEditAssocButton) SetName

func (formeditassocbutton *FormEditAssocButton) SetName(name string)

for satisfaction of GongStruct interface

func (*FormEditAssocButton) Stage

func (formeditassocbutton *FormEditAssocButton) Stage(stage *Stage) *FormEditAssocButton

Stage puts formeditassocbutton to the model stage

func (*FormEditAssocButton) StagePreserveOrder

func (formeditassocbutton *FormEditAssocButton) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts formeditassocbutton to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.FormEditAssocButtonOrder - update stage.FormEditAssocButtonOrder accordingly

func (*FormEditAssocButton) StageVoid

func (formeditassocbutton *FormEditAssocButton) StageVoid(stage *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 FormEditAssocButtonUnmarshaller

type FormEditAssocButtonUnmarshaller struct{}

func (*FormEditAssocButtonUnmarshaller) Initialize

func (u *FormEditAssocButtonUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*FormEditAssocButtonUnmarshaller) UnmarshallField

func (u *FormEditAssocButtonUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type FormEditAssocButton_WOP

type FormEditAssocButton_WOP struct {
	Name string

	Label string

	AssociationStorage string

	HasChanged bool

	IsForSavePurpose bool

	HasToolTip bool

	ToolTipText string

	MatTooltipShowDelay string
}

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 CopyBranchFormField(mapOrigCopy map[any]any, formfieldFrom *FormField) (formfieldTo *FormField)

func (*FormField) Checkout

func (formfield *FormField) Checkout(stage *Stage) *FormField

Checkout formfield to the back repo (if it is already staged)

func (*FormField) Commit

func (formfield *FormField) Commit(stage *Stage) *FormField

commit formfield to the back repo (if it is already staged)

func (*FormField) CommitVoid

func (formfield *FormField) CommitVoid(stage *Stage)

func (*FormField) CopyBasicFields

func (from *FormField) CopyBasicFields(to *FormField)

func (*FormField) GetName

func (formfield *FormField) GetName() (res string)

for satisfaction of GongStruct interface

func (*FormField) GongClean

func (formfield *FormField) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by FormField

func (*FormField) GongCopy

func (formfield *FormField) GongCopy() GongstructIF

func (*FormField) GongDiff

func (formfield *FormField) GongDiff(stage *Stage, formfieldOther *FormField) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*FormField) GongGetFieldHeaders

func (formfield *FormField) GongGetFieldHeaders() (res []GongFieldHeader)

func (*FormField) GongGetFieldValue

func (formfield *FormField) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*FormField) GongGetGongstructName

func (formfield *FormField) GongGetGongstructName() string

func (*FormField) GongGetIdentifier

func (formfield *FormField) GongGetIdentifier(stage *Stage) string

func (*FormField) GongGetOrder

func (formfield *FormField) GongGetOrder(stage *Stage) uint

func (*FormField) GongGetReferenceIdentifier

func (formfield *FormField) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*FormField) GongGetReverseFieldOwner

func (inst *FormField) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*FormField) GongGetReverseFieldOwnerName

func (inst *FormField) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*FormField) GongMarshallAllFields

func (formfield *FormField) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*FormField) GongMarshallField

func (formfield *FormField) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*FormField) GongMarshallIdentifier

func (formfield *FormField) GongMarshallIdentifier(stage *Stage) (decl string)

func (*FormField) GongMarshallUnstaging

func (formfield *FormField) GongMarshallUnstaging(stage *Stage) (decl string)

func (*FormField) GongReconstructPointersFromInstances

func (reference *FormField) GongReconstructPointersFromInstances(stage *Stage)

func (*FormField) GongReconstructPointersFromReferences

func (reference *FormField) GongReconstructPointersFromReferences(stage *Stage, instance *FormField)

func (*FormField) GongSetFieldValue

func (formfield *FormField) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*FormField) SetName

func (formfield *FormField) SetName(name string)

for satisfaction of GongStruct interface

func (*FormField) Stage

func (formfield *FormField) Stage(stage *Stage) *FormField

Stage puts formfield to the model stage

func (*FormField) StagePreserveOrder

func (formfield *FormField) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts formfield to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.FormFieldOrder - update stage.FormFieldOrder accordingly

func (*FormField) StageVoid

func (formfield *FormField) StageVoid(stage *Stage)

func (*FormField) Unstage

func (formfield *FormField) Unstage(stage *Stage) *FormField

Unstage removes formfield off the model stage

func (*FormField) UnstageVoid

func (formfield *FormField) UnstageVoid(stage *Stage)

UnstageVoid removes formfield off the model stage

type FormFieldDate

type FormFieldDate struct {
	Name string

	// we will only update the day
	Value time.Time
}

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) GongClean

func (formfielddate *FormFieldDate) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by FormFieldDate

func (*FormFieldDate) GongCopy

func (formfielddate *FormFieldDate) GongCopy() GongstructIF

func (*FormFieldDate) GongDiff

func (formfielddate *FormFieldDate) GongDiff(stage *Stage, formfielddateOther *FormFieldDate) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*FormFieldDate) GongGetFieldHeaders

func (formfielddate *FormFieldDate) GongGetFieldHeaders() (res []GongFieldHeader)

func (*FormFieldDate) GongGetFieldValue

func (formfielddate *FormFieldDate) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*FormFieldDate) GongGetGongstructName

func (formfielddate *FormFieldDate) GongGetGongstructName() string

func (*FormFieldDate) GongGetIdentifier

func (formfielddate *FormFieldDate) GongGetIdentifier(stage *Stage) string

func (*FormFieldDate) GongGetOrder

func (formfielddate *FormFieldDate) GongGetOrder(stage *Stage) uint

func (*FormFieldDate) GongGetReferenceIdentifier

func (formfielddate *FormFieldDate) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*FormFieldDate) GongGetReverseFieldOwner

func (inst *FormFieldDate) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*FormFieldDate) GongGetReverseFieldOwnerName

func (inst *FormFieldDate) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*FormFieldDate) GongMarshallAllFields

func (formfielddate *FormFieldDate) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*FormFieldDate) GongMarshallField

func (formfielddate *FormFieldDate) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*FormFieldDate) GongMarshallIdentifier

func (formfielddate *FormFieldDate) GongMarshallIdentifier(stage *Stage) (decl string)

func (*FormFieldDate) GongMarshallUnstaging

func (formfielddate *FormFieldDate) GongMarshallUnstaging(stage *Stage) (decl string)

func (*FormFieldDate) GongReconstructPointersFromInstances

func (reference *FormFieldDate) GongReconstructPointersFromInstances(stage *Stage)

func (*FormFieldDate) GongReconstructPointersFromReferences

func (reference *FormFieldDate) GongReconstructPointersFromReferences(stage *Stage, instance *FormFieldDate)

func (*FormFieldDate) GongSetFieldValue

func (formfielddate *FormFieldDate) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*FormFieldDate) SetName

func (formfielddate *FormFieldDate) SetName(name 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) StagePreserveOrder

func (formfielddate *FormFieldDate) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts formfielddate to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.FormFieldDateOrder - update stage.FormFieldDateOrder accordingly

func (*FormFieldDate) StageVoid

func (formfielddate *FormFieldDate) StageVoid(stage *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

type FormFieldDateTime struct {
	Name string

	Value time.Time
}

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) GongClean

func (formfielddatetime *FormFieldDateTime) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by FormFieldDateTime

func (*FormFieldDateTime) GongCopy

func (formfielddatetime *FormFieldDateTime) GongCopy() GongstructIF

func (*FormFieldDateTime) GongDiff

func (formfielddatetime *FormFieldDateTime) GongDiff(stage *Stage, formfielddatetimeOther *FormFieldDateTime) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*FormFieldDateTime) GongGetFieldHeaders

func (formfielddatetime *FormFieldDateTime) GongGetFieldHeaders() (res []GongFieldHeader)

func (*FormFieldDateTime) GongGetFieldValue

func (formfielddatetime *FormFieldDateTime) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*FormFieldDateTime) GongGetGongstructName

func (formfielddatetime *FormFieldDateTime) GongGetGongstructName() string

func (*FormFieldDateTime) GongGetIdentifier

func (formfielddatetime *FormFieldDateTime) GongGetIdentifier(stage *Stage) string

func (*FormFieldDateTime) GongGetOrder

func (formfielddatetime *FormFieldDateTime) GongGetOrder(stage *Stage) uint

func (*FormFieldDateTime) GongGetReferenceIdentifier

func (formfielddatetime *FormFieldDateTime) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*FormFieldDateTime) GongGetReverseFieldOwner

func (inst *FormFieldDateTime) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*FormFieldDateTime) GongGetReverseFieldOwnerName

func (inst *FormFieldDateTime) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*FormFieldDateTime) GongMarshallAllFields

func (formfielddatetime *FormFieldDateTime) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*FormFieldDateTime) GongMarshallField

func (formfielddatetime *FormFieldDateTime) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*FormFieldDateTime) GongMarshallIdentifier

func (formfielddatetime *FormFieldDateTime) GongMarshallIdentifier(stage *Stage) (decl string)

func (*FormFieldDateTime) GongMarshallUnstaging

func (formfielddatetime *FormFieldDateTime) GongMarshallUnstaging(stage *Stage) (decl string)

func (*FormFieldDateTime) GongReconstructPointersFromInstances

func (reference *FormFieldDateTime) GongReconstructPointersFromInstances(stage *Stage)

func (*FormFieldDateTime) GongReconstructPointersFromReferences

func (reference *FormFieldDateTime) GongReconstructPointersFromReferences(stage *Stage, instance *FormFieldDateTime)

func (*FormFieldDateTime) GongSetFieldValue

func (formfielddatetime *FormFieldDateTime) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*FormFieldDateTime) SetName

func (formfielddatetime *FormFieldDateTime) SetName(name 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) StagePreserveOrder

func (formfielddatetime *FormFieldDateTime) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts formfielddatetime to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.FormFieldDateTimeOrder - update stage.FormFieldDateTimeOrder accordingly

func (*FormFieldDateTime) StageVoid

func (formfielddatetime *FormFieldDateTime) StageVoid(stage *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 FormFieldDateTimeUnmarshaller

type FormFieldDateTimeUnmarshaller struct{}

func (*FormFieldDateTimeUnmarshaller) Initialize

func (u *FormFieldDateTimeUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*FormFieldDateTimeUnmarshaller) UnmarshallField

func (u *FormFieldDateTimeUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type FormFieldDateTime_WOP

type FormFieldDateTime_WOP struct {
	Name string

	Value time.Time
}

type FormFieldDateUnmarshaller

type FormFieldDateUnmarshaller struct{}

func (*FormFieldDateUnmarshaller) Initialize

func (u *FormFieldDateUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*FormFieldDateUnmarshaller) UnmarshallField

func (u *FormFieldDateUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type FormFieldDate_WOP

type FormFieldDate_WOP struct {
	Name string

	Value time.Time
}

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) GongClean

func (formfieldfloat64 *FormFieldFloat64) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by FormFieldFloat64

func (*FormFieldFloat64) GongCopy

func (formfieldfloat64 *FormFieldFloat64) GongCopy() GongstructIF

func (*FormFieldFloat64) GongDiff

func (formfieldfloat64 *FormFieldFloat64) GongDiff(stage *Stage, formfieldfloat64Other *FormFieldFloat64) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*FormFieldFloat64) GongGetFieldHeaders

func (formfieldfloat64 *FormFieldFloat64) GongGetFieldHeaders() (res []GongFieldHeader)

func (*FormFieldFloat64) GongGetFieldValue

func (formfieldfloat64 *FormFieldFloat64) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*FormFieldFloat64) GongGetGongstructName

func (formfieldfloat64 *FormFieldFloat64) GongGetGongstructName() string

func (*FormFieldFloat64) GongGetIdentifier

func (formfieldfloat64 *FormFieldFloat64) GongGetIdentifier(stage *Stage) string

func (*FormFieldFloat64) GongGetOrder

func (formfieldfloat64 *FormFieldFloat64) GongGetOrder(stage *Stage) uint

func (*FormFieldFloat64) GongGetReferenceIdentifier

func (formfieldfloat64 *FormFieldFloat64) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*FormFieldFloat64) GongGetReverseFieldOwner

func (inst *FormFieldFloat64) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*FormFieldFloat64) GongGetReverseFieldOwnerName

func (inst *FormFieldFloat64) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*FormFieldFloat64) GongMarshallAllFields

func (formfieldfloat64 *FormFieldFloat64) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*FormFieldFloat64) GongMarshallField

func (formfieldfloat64 *FormFieldFloat64) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*FormFieldFloat64) GongMarshallIdentifier

func (formfieldfloat64 *FormFieldFloat64) GongMarshallIdentifier(stage *Stage) (decl string)

func (*FormFieldFloat64) GongMarshallUnstaging

func (formfieldfloat64 *FormFieldFloat64) GongMarshallUnstaging(stage *Stage) (decl string)

func (*FormFieldFloat64) GongReconstructPointersFromInstances

func (reference *FormFieldFloat64) GongReconstructPointersFromInstances(stage *Stage)

func (*FormFieldFloat64) GongReconstructPointersFromReferences

func (reference *FormFieldFloat64) GongReconstructPointersFromReferences(stage *Stage, instance *FormFieldFloat64)

func (*FormFieldFloat64) GongSetFieldValue

func (formfieldfloat64 *FormFieldFloat64) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*FormFieldFloat64) SetName

func (formfieldfloat64 *FormFieldFloat64) SetName(name 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) StagePreserveOrder

func (formfieldfloat64 *FormFieldFloat64) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts formfieldfloat64 to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.FormFieldFloat64Order - update stage.FormFieldFloat64Order accordingly

func (*FormFieldFloat64) StageVoid

func (formfieldfloat64 *FormFieldFloat64) StageVoid(stage *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 FormFieldFloat64Unmarshaller

type FormFieldFloat64Unmarshaller struct{}

func (*FormFieldFloat64Unmarshaller) Initialize

func (u *FormFieldFloat64Unmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*FormFieldFloat64Unmarshaller) UnmarshallField

func (u *FormFieldFloat64Unmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type FormFieldFloat64_WOP

type FormFieldFloat64_WOP struct {
	Name string

	Value float64

	HasMinValidator bool

	MinValue float64

	HasMaxValidator bool

	MaxValue float64
}

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) GongClean

func (formfieldint *FormFieldInt) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by FormFieldInt

func (*FormFieldInt) GongCopy

func (formfieldint *FormFieldInt) GongCopy() GongstructIF

func (*FormFieldInt) GongDiff

func (formfieldint *FormFieldInt) GongDiff(stage *Stage, formfieldintOther *FormFieldInt) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*FormFieldInt) GongGetFieldHeaders

func (formfieldint *FormFieldInt) GongGetFieldHeaders() (res []GongFieldHeader)

func (*FormFieldInt) GongGetFieldValue

func (formfieldint *FormFieldInt) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*FormFieldInt) GongGetGongstructName

func (formfieldint *FormFieldInt) GongGetGongstructName() string

func (*FormFieldInt) GongGetIdentifier

func (formfieldint *FormFieldInt) GongGetIdentifier(stage *Stage) string

func (*FormFieldInt) GongGetOrder

func (formfieldint *FormFieldInt) GongGetOrder(stage *Stage) uint

func (*FormFieldInt) GongGetReferenceIdentifier

func (formfieldint *FormFieldInt) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*FormFieldInt) GongGetReverseFieldOwner

func (inst *FormFieldInt) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*FormFieldInt) GongGetReverseFieldOwnerName

func (inst *FormFieldInt) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*FormFieldInt) GongMarshallAllFields

func (formfieldint *FormFieldInt) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*FormFieldInt) GongMarshallField

func (formfieldint *FormFieldInt) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*FormFieldInt) GongMarshallIdentifier

func (formfieldint *FormFieldInt) GongMarshallIdentifier(stage *Stage) (decl string)

func (*FormFieldInt) GongMarshallUnstaging

func (formfieldint *FormFieldInt) GongMarshallUnstaging(stage *Stage) (decl string)

func (*FormFieldInt) GongReconstructPointersFromInstances

func (reference *FormFieldInt) GongReconstructPointersFromInstances(stage *Stage)

func (*FormFieldInt) GongReconstructPointersFromReferences

func (reference *FormFieldInt) GongReconstructPointersFromReferences(stage *Stage, instance *FormFieldInt)

func (*FormFieldInt) GongSetFieldValue

func (formfieldint *FormFieldInt) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*FormFieldInt) SetName

func (formfieldint *FormFieldInt) SetName(name 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) StagePreserveOrder

func (formfieldint *FormFieldInt) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts formfieldint to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.FormFieldIntOrder - update stage.FormFieldIntOrder accordingly

func (*FormFieldInt) StageVoid

func (formfieldint *FormFieldInt) StageVoid(stage *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 FormFieldIntUnmarshaller

type FormFieldIntUnmarshaller struct{}

func (*FormFieldIntUnmarshaller) Initialize

func (u *FormFieldIntUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*FormFieldIntUnmarshaller) UnmarshallField

func (u *FormFieldIntUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type FormFieldInt_WOP

type FormFieldInt_WOP struct {
	Name string

	Value int

	HasMinValidator bool

	MinValue int

	HasMaxValidator bool

	MaxValue int
}

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) GongClean

func (formfieldselect *FormFieldSelect) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by FormFieldSelect

func (*FormFieldSelect) GongCopy

func (formfieldselect *FormFieldSelect) GongCopy() GongstructIF

func (*FormFieldSelect) GongDiff

func (formfieldselect *FormFieldSelect) GongDiff(stage *Stage, formfieldselectOther *FormFieldSelect) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*FormFieldSelect) GongGetFieldHeaders

func (formfieldselect *FormFieldSelect) GongGetFieldHeaders() (res []GongFieldHeader)

func (*FormFieldSelect) GongGetFieldValue

func (formfieldselect *FormFieldSelect) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*FormFieldSelect) GongGetGongstructName

func (formfieldselect *FormFieldSelect) GongGetGongstructName() string

func (*FormFieldSelect) GongGetIdentifier

func (formfieldselect *FormFieldSelect) GongGetIdentifier(stage *Stage) string

func (*FormFieldSelect) GongGetOrder

func (formfieldselect *FormFieldSelect) GongGetOrder(stage *Stage) uint

func (*FormFieldSelect) GongGetReferenceIdentifier

func (formfieldselect *FormFieldSelect) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*FormFieldSelect) GongGetReverseFieldOwner

func (inst *FormFieldSelect) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*FormFieldSelect) GongGetReverseFieldOwnerName

func (inst *FormFieldSelect) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*FormFieldSelect) GongMarshallAllFields

func (formfieldselect *FormFieldSelect) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*FormFieldSelect) GongMarshallField

func (formfieldselect *FormFieldSelect) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*FormFieldSelect) GongMarshallIdentifier

func (formfieldselect *FormFieldSelect) GongMarshallIdentifier(stage *Stage) (decl string)

func (*FormFieldSelect) GongMarshallUnstaging

func (formfieldselect *FormFieldSelect) GongMarshallUnstaging(stage *Stage) (decl string)

func (*FormFieldSelect) GongReconstructPointersFromInstances

func (reference *FormFieldSelect) GongReconstructPointersFromInstances(stage *Stage)

func (*FormFieldSelect) GongReconstructPointersFromReferences

func (reference *FormFieldSelect) GongReconstructPointersFromReferences(stage *Stage, instance *FormFieldSelect)

func (*FormFieldSelect) GongSetFieldValue

func (formfieldselect *FormFieldSelect) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*FormFieldSelect) SetName

func (formfieldselect *FormFieldSelect) SetName(name 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) StagePreserveOrder

func (formfieldselect *FormFieldSelect) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts formfieldselect to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.FormFieldSelectOrder - update stage.FormFieldSelectOrder accordingly

func (*FormFieldSelect) StageVoid

func (formfieldselect *FormFieldSelect) StageVoid(stage *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 FormFieldSelectUnmarshaller

type FormFieldSelectUnmarshaller struct{}

func (*FormFieldSelectUnmarshaller) Initialize

func (u *FormFieldSelectUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*FormFieldSelectUnmarshaller) UnmarshallField

func (u *FormFieldSelectUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type FormFieldSelect_WOP

type FormFieldSelect_WOP struct {
	Name string

	CanBeEmpty bool

	PreserveInitialOrder bool
}

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) GongClean

func (formfieldstring *FormFieldString) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by FormFieldString

func (*FormFieldString) GongCopy

func (formfieldstring *FormFieldString) GongCopy() GongstructIF

func (*FormFieldString) GongDiff

func (formfieldstring *FormFieldString) GongDiff(stage *Stage, formfieldstringOther *FormFieldString) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*FormFieldString) GongGetFieldHeaders

func (formfieldstring *FormFieldString) GongGetFieldHeaders() (res []GongFieldHeader)

func (*FormFieldString) GongGetFieldValue

func (formfieldstring *FormFieldString) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*FormFieldString) GongGetGongstructName

func (formfieldstring *FormFieldString) GongGetGongstructName() string

func (*FormFieldString) GongGetIdentifier

func (formfieldstring *FormFieldString) GongGetIdentifier(stage *Stage) string

func (*FormFieldString) GongGetOrder

func (formfieldstring *FormFieldString) GongGetOrder(stage *Stage) uint

func (*FormFieldString) GongGetReferenceIdentifier

func (formfieldstring *FormFieldString) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*FormFieldString) GongGetReverseFieldOwner

func (inst *FormFieldString) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*FormFieldString) GongGetReverseFieldOwnerName

func (inst *FormFieldString) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*FormFieldString) GongMarshallAllFields

func (formfieldstring *FormFieldString) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*FormFieldString) GongMarshallField

func (formfieldstring *FormFieldString) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*FormFieldString) GongMarshallIdentifier

func (formfieldstring *FormFieldString) GongMarshallIdentifier(stage *Stage) (decl string)

func (*FormFieldString) GongMarshallUnstaging

func (formfieldstring *FormFieldString) GongMarshallUnstaging(stage *Stage) (decl string)

func (*FormFieldString) GongReconstructPointersFromInstances

func (reference *FormFieldString) GongReconstructPointersFromInstances(stage *Stage)

func (*FormFieldString) GongReconstructPointersFromReferences

func (reference *FormFieldString) GongReconstructPointersFromReferences(stage *Stage, instance *FormFieldString)

func (*FormFieldString) GongSetFieldValue

func (formfieldstring *FormFieldString) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*FormFieldString) SetName

func (formfieldstring *FormFieldString) SetName(name 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) StagePreserveOrder

func (formfieldstring *FormFieldString) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts formfieldstring to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.FormFieldStringOrder - update stage.FormFieldStringOrder accordingly

func (*FormFieldString) StageVoid

func (formfieldstring *FormFieldString) StageVoid(stage *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 FormFieldStringUnmarshaller

type FormFieldStringUnmarshaller struct{}

func (*FormFieldStringUnmarshaller) Initialize

func (u *FormFieldStringUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*FormFieldStringUnmarshaller) UnmarshallField

func (u *FormFieldStringUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type FormFieldString_WOP

type FormFieldString_WOP struct {
	Name string

	Value string

	IsTextArea bool
}

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) GongClean

func (formfieldtime *FormFieldTime) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by FormFieldTime

func (*FormFieldTime) GongCopy

func (formfieldtime *FormFieldTime) GongCopy() GongstructIF

func (*FormFieldTime) GongDiff

func (formfieldtime *FormFieldTime) GongDiff(stage *Stage, formfieldtimeOther *FormFieldTime) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*FormFieldTime) GongGetFieldHeaders

func (formfieldtime *FormFieldTime) GongGetFieldHeaders() (res []GongFieldHeader)

func (*FormFieldTime) GongGetFieldValue

func (formfieldtime *FormFieldTime) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*FormFieldTime) GongGetGongstructName

func (formfieldtime *FormFieldTime) GongGetGongstructName() string

func (*FormFieldTime) GongGetIdentifier

func (formfieldtime *FormFieldTime) GongGetIdentifier(stage *Stage) string

func (*FormFieldTime) GongGetOrder

func (formfieldtime *FormFieldTime) GongGetOrder(stage *Stage) uint

func (*FormFieldTime) GongGetReferenceIdentifier

func (formfieldtime *FormFieldTime) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*FormFieldTime) GongGetReverseFieldOwner

func (inst *FormFieldTime) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*FormFieldTime) GongGetReverseFieldOwnerName

func (inst *FormFieldTime) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*FormFieldTime) GongMarshallAllFields

func (formfieldtime *FormFieldTime) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*FormFieldTime) GongMarshallField

func (formfieldtime *FormFieldTime) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*FormFieldTime) GongMarshallIdentifier

func (formfieldtime *FormFieldTime) GongMarshallIdentifier(stage *Stage) (decl string)

func (*FormFieldTime) GongMarshallUnstaging

func (formfieldtime *FormFieldTime) GongMarshallUnstaging(stage *Stage) (decl string)

func (*FormFieldTime) GongReconstructPointersFromInstances

func (reference *FormFieldTime) GongReconstructPointersFromInstances(stage *Stage)

func (*FormFieldTime) GongReconstructPointersFromReferences

func (reference *FormFieldTime) GongReconstructPointersFromReferences(stage *Stage, instance *FormFieldTime)

func (*FormFieldTime) GongSetFieldValue

func (formfieldtime *FormFieldTime) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*FormFieldTime) SetName

func (formfieldtime *FormFieldTime) SetName(name 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) StagePreserveOrder

func (formfieldtime *FormFieldTime) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts formfieldtime to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.FormFieldTimeOrder - update stage.FormFieldTimeOrder accordingly

func (*FormFieldTime) StageVoid

func (formfieldtime *FormFieldTime) StageVoid(stage *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 FormFieldTimeUnmarshaller

type FormFieldTimeUnmarshaller struct{}

func (*FormFieldTimeUnmarshaller) Initialize

func (u *FormFieldTimeUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*FormFieldTimeUnmarshaller) UnmarshallField

func (u *FormFieldTimeUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type FormFieldTime_WOP

type FormFieldTime_WOP struct {
	Name string

	Value time.Time

	Step float64
}

type FormFieldUnmarshaller

type FormFieldUnmarshaller struct{}

func (*FormFieldUnmarshaller) Initialize

func (u *FormFieldUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*FormFieldUnmarshaller) UnmarshallField

func (u *FormFieldUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type FormField_WOP

type FormField_WOP struct {
	Name string

	InputTypeEnum InputTypeEnum

	Label string

	Placeholder string

	HasBespokeWidth bool

	BespokeWidthPx int

	HasBespokeHeight bool

	BespokeHeightPx int
}

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 CopyBranchFormGroup(mapOrigCopy map[any]any, formgroupFrom *FormGroup) (formgroupTo *FormGroup)

func (*FormGroup) Checkout

func (formgroup *FormGroup) Checkout(stage *Stage) *FormGroup

Checkout formgroup to the back repo (if it is already staged)

func (*FormGroup) Commit

func (formgroup *FormGroup) Commit(stage *Stage) *FormGroup

commit formgroup to the back repo (if it is already staged)

func (*FormGroup) CommitVoid

func (formgroup *FormGroup) CommitVoid(stage *Stage)

func (*FormGroup) CopyBasicFields

func (from *FormGroup) CopyBasicFields(to *FormGroup)

func (*FormGroup) GetName

func (formgroup *FormGroup) GetName() (res string)

for satisfaction of GongStruct interface

func (*FormGroup) GongClean

func (formgroup *FormGroup) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by FormGroup

func (*FormGroup) GongCopy

func (formgroup *FormGroup) GongCopy() GongstructIF

func (*FormGroup) GongDiff

func (formgroup *FormGroup) GongDiff(stage *Stage, formgroupOther *FormGroup) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*FormGroup) GongGetFieldHeaders

func (formgroup *FormGroup) GongGetFieldHeaders() (res []GongFieldHeader)

func (*FormGroup) GongGetFieldValue

func (formgroup *FormGroup) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*FormGroup) GongGetGongstructName

func (formgroup *FormGroup) GongGetGongstructName() string

func (*FormGroup) GongGetIdentifier

func (formgroup *FormGroup) GongGetIdentifier(stage *Stage) string

func (*FormGroup) GongGetOrder

func (formgroup *FormGroup) GongGetOrder(stage *Stage) uint

func (*FormGroup) GongGetReferenceIdentifier

func (formgroup *FormGroup) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*FormGroup) GongGetReverseFieldOwner

func (inst *FormGroup) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*FormGroup) GongGetReverseFieldOwnerName

func (inst *FormGroup) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*FormGroup) GongMarshallAllFields

func (formgroup *FormGroup) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*FormGroup) GongMarshallField

func (formgroup *FormGroup) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*FormGroup) GongMarshallIdentifier

func (formgroup *FormGroup) GongMarshallIdentifier(stage *Stage) (decl string)

func (*FormGroup) GongMarshallUnstaging

func (formgroup *FormGroup) GongMarshallUnstaging(stage *Stage) (decl string)

func (*FormGroup) GongReconstructPointersFromInstances

func (reference *FormGroup) GongReconstructPointersFromInstances(stage *Stage)

func (*FormGroup) GongReconstructPointersFromReferences

func (reference *FormGroup) GongReconstructPointersFromReferences(stage *Stage, instance *FormGroup)

func (*FormGroup) GongSetFieldValue

func (formgroup *FormGroup) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*FormGroup) OnAfterUpdate

func (formGroup *FormGroup) OnAfterUpdate(
	stage *Stage,
	stagedInstance, frontInstance *FormGroup)

OnAfterUpdate is called when the form group is updated

func (*FormGroup) SetName

func (formgroup *FormGroup) SetName(name string)

for satisfaction of GongStruct interface

func (*FormGroup) Stage

func (formgroup *FormGroup) Stage(stage *Stage) *FormGroup

Stage puts formgroup to the model stage

func (*FormGroup) StagePreserveOrder

func (formgroup *FormGroup) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts formgroup to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.FormGroupOrder - update stage.FormGroupOrder accordingly

func (*FormGroup) StageVoid

func (formgroup *FormGroup) StageVoid(stage *Stage)

func (*FormGroup) Unstage

func (formgroup *FormGroup) Unstage(stage *Stage) *FormGroup

Unstage removes formgroup off the model stage

func (*FormGroup) UnstageVoid

func (formgroup *FormGroup) UnstageVoid(stage *Stage)

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 FormGroupUnmarshaller

type FormGroupUnmarshaller struct{}

func (*FormGroupUnmarshaller) Initialize

func (u *FormGroupUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*FormGroupUnmarshaller) UnmarshallField

func (u *FormGroupUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type FormGroup_WOP

type FormGroup_WOP struct {
	Name string

	Label string

	HasSuppressButton bool

	HasSuppressButtonBeenPressed bool
}

type FormSortAssocButton

type FormSortAssocButton struct {
	Name string

	Label string

	// swagger:ignore
	OnSortEdition FormSortAssocButtonInterface

	HasToolTip          bool
	ToolTipText         string
	MatTooltipShowDelay string // "500" for 500 ms

	// 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) GongClean

func (formsortassocbutton *FormSortAssocButton) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by FormSortAssocButton

func (*FormSortAssocButton) GongCopy

func (formsortassocbutton *FormSortAssocButton) GongCopy() GongstructIF

func (*FormSortAssocButton) GongDiff

func (formsortassocbutton *FormSortAssocButton) GongDiff(stage *Stage, formsortassocbuttonOther *FormSortAssocButton) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*FormSortAssocButton) GongGetFieldHeaders

func (formsortassocbutton *FormSortAssocButton) GongGetFieldHeaders() (res []GongFieldHeader)

func (*FormSortAssocButton) GongGetFieldValue

func (formsortassocbutton *FormSortAssocButton) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*FormSortAssocButton) GongGetGongstructName

func (formsortassocbutton *FormSortAssocButton) GongGetGongstructName() string

func (*FormSortAssocButton) GongGetIdentifier

func (formsortassocbutton *FormSortAssocButton) GongGetIdentifier(stage *Stage) string

func (*FormSortAssocButton) GongGetOrder

func (formsortassocbutton *FormSortAssocButton) GongGetOrder(stage *Stage) uint

func (*FormSortAssocButton) GongGetReferenceIdentifier

func (formsortassocbutton *FormSortAssocButton) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*FormSortAssocButton) GongGetReverseFieldOwner

func (inst *FormSortAssocButton) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*FormSortAssocButton) GongGetReverseFieldOwnerName

func (inst *FormSortAssocButton) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*FormSortAssocButton) GongMarshallAllFields

func (formsortassocbutton *FormSortAssocButton) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*FormSortAssocButton) GongMarshallField

func (formsortassocbutton *FormSortAssocButton) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*FormSortAssocButton) GongMarshallIdentifier

func (formsortassocbutton *FormSortAssocButton) GongMarshallIdentifier(stage *Stage) (decl string)

func (*FormSortAssocButton) GongMarshallUnstaging

func (formsortassocbutton *FormSortAssocButton) GongMarshallUnstaging(stage *Stage) (decl string)

func (*FormSortAssocButton) GongReconstructPointersFromInstances

func (reference *FormSortAssocButton) GongReconstructPointersFromInstances(stage *Stage)

func (*FormSortAssocButton) GongReconstructPointersFromReferences

func (reference *FormSortAssocButton) GongReconstructPointersFromReferences(stage *Stage, instance *FormSortAssocButton)

func (*FormSortAssocButton) GongSetFieldValue

func (formsortassocbutton *FormSortAssocButton) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*FormSortAssocButton) OnAfterUpdate

func (formSortAssocButton *FormSortAssocButton) OnAfterUpdate(
	stage *Stage,
	stagedInstance, frontInstance *FormSortAssocButton)

OnAfterUpdate is called when the button is pressed

func (*FormSortAssocButton) SetName

func (formsortassocbutton *FormSortAssocButton) SetName(name string)

for satisfaction of GongStruct interface

func (*FormSortAssocButton) Stage

func (formsortassocbutton *FormSortAssocButton) Stage(stage *Stage) *FormSortAssocButton

Stage puts formsortassocbutton to the model stage

func (*FormSortAssocButton) StagePreserveOrder

func (formsortassocbutton *FormSortAssocButton) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts formsortassocbutton to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.FormSortAssocButtonOrder - update stage.FormSortAssocButtonOrder accordingly

func (*FormSortAssocButton) StageVoid

func (formsortassocbutton *FormSortAssocButton) StageVoid(stage *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 FormSortAssocButtonUnmarshaller

type FormSortAssocButtonUnmarshaller struct{}

func (*FormSortAssocButtonUnmarshaller) Initialize

func (u *FormSortAssocButtonUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*FormSortAssocButtonUnmarshaller) UnmarshallField

func (u *FormSortAssocButtonUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type FormSortAssocButton_WOP

type FormSortAssocButton_WOP struct {
	Name string

	Label string

	HasToolTip bool

	ToolTipText string

	MatTooltipShowDelay string
}

type FunctionalCellIconProxy

type FunctionalCellIconProxy struct {
	OnUpdated CellIconUpdatedFunc
}

Generic Proxy that implements models.CellImplInterface

func (*FunctionalCellIconProxy) CellIconUpdated

func (p *FunctionalCellIconProxy) CellIconUpdated(stage *Stage, cellIcon *CellIcon, updatedCellIcon *CellIcon)

Implement the interface method

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 GongFieldHeader

type GongFieldHeader struct {
	Name string
	GongFieldValueType
	TargetGongstructName string
}

func GetFieldsFromPointer

func GetFieldsFromPointer[Type PointerToGongstruct]() (res []GongFieldHeader)

GetFieldsFromPointer return the array of the fields

type GongFieldValue

type GongFieldValue struct {
	GongFieldValueType
	// contains filtered or unexported fields
}

func GetFieldStringValueFromPointer

func GetFieldStringValueFromPointer(instance GongstructIF, fieldName string, stage *Stage) (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"
	GongFieldValueTypeIntDuration     GongFieldValueType = "GongFieldValueTypeIntDuration"
	GongFieldValueTypeFloat           GongFieldValueType = "GongFieldValueTypeFloat"
	GongFieldValueTypeBool            GongFieldValueType = "GongFieldValueTypeBool"
	GongFieldValueTypeString          GongFieldValueType = "GongFieldValueTypeString"
	GongFieldValueTypeDate            GongFieldValueType = "GongFieldValueTypeDate"
	GongFieldValueTypeBasicKind       GongFieldValueType = "GongFieldValueTypeBasicKind"
	GongFieldValueTypePointer         GongFieldValueType = "GongFieldValueTypePointer"
	GongFieldValueTypeSliceOfPointers GongFieldValueType = "GongFieldValueTypeSliceOfPointers"
)

type GongNodeIF

type GongNodeIF interface {
}

type GongStructInterface

type GongStructInterface interface {
	GetName() (res string)
	// GetID() (res int)
	// GetFields() (res []string)
	// GetFieldStringValue(fieldName string) (res string)
	GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error
	GongGetGongstructName() 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 GongstructEnumIntField interface {
	int
	Codes() []string
	CodeValues() []int
}

type GongstructEnumStringField

type GongstructEnumStringField interface {
	Codes() []string
	CodeValues() []string
	ToString() string
}

type GongstructIF

type GongstructIF interface {
	GetName() string
	SetName(string)
	CommitVoid(*Stage)
	StageVoid(*Stage)
	UnstageVoid(stage *Stage)
	GongGetFieldHeaders() []GongFieldHeader
	GongClean(stage *Stage) (modified bool)
	GongGetFieldValue(fieldName string, stage *Stage) GongFieldValue
	GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error
	GongGetGongstructName() string
	GongGetOrder(stage *Stage) uint
	GongGetReferenceIdentifier(stage *Stage) string
	GongGetIdentifier(stage *Stage) string
	GongCopy() GongstructIF
	GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) string
	GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) GongstructIF
}

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 GongstructMapString

type GongstructMapString interface {
	map[any]any
}

type GongstructSet

type GongstructSet interface {
	map[any]any
}

type GongtructBasicField

type GongtructBasicField interface {
	int | float64 | bool | string | time.Time | time.Duration
}

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 ModelUnmarshaller

type ModelUnmarshaller interface {
	// Initialize creates the struct, stages it, and returns the pointer as 'any'
	Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

	// UnmarshallField sets a field's value based on the AST expression
	UnmarshallField(stage *Stage, instance GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error
}

ModelUnmarshaller abstracts the logic for setting fields on a staged instance

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 OnInitCommitInterface

type OnInitCommitInterface interface {
	BeforeCommit(stage *Stage)
}

type OnSaveInterface

type OnSaveInterface interface {
	OnSave()
}

type Option

type Option struct {
	Name string
}

func CopyBranchOption

func CopyBranchOption(mapOrigCopy map[any]any, optionFrom *Option) (optionTo *Option)

func (*Option) Checkout

func (option *Option) Checkout(stage *Stage) *Option

Checkout option to the back repo (if it is already staged)

func (*Option) Commit

func (option *Option) Commit(stage *Stage) *Option

commit option to the back repo (if it is already staged)

func (*Option) CommitVoid

func (option *Option) CommitVoid(stage *Stage)

func (*Option) CopyBasicFields

func (from *Option) CopyBasicFields(to *Option)

func (*Option) GetName

func (option *Option) GetName() (res string)

for satisfaction of GongStruct interface

func (*Option) GongClean

func (option *Option) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by Option

func (*Option) GongCopy

func (option *Option) GongCopy() GongstructIF

func (*Option) GongDiff

func (option *Option) GongDiff(stage *Stage, optionOther *Option) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*Option) GongGetFieldHeaders

func (option *Option) GongGetFieldHeaders() (res []GongFieldHeader)

func (*Option) GongGetFieldValue

func (option *Option) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*Option) GongGetGongstructName

func (option *Option) GongGetGongstructName() string

func (*Option) GongGetIdentifier

func (option *Option) GongGetIdentifier(stage *Stage) string

func (*Option) GongGetOrder

func (option *Option) GongGetOrder(stage *Stage) uint

func (*Option) GongGetReferenceIdentifier

func (option *Option) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*Option) GongGetReverseFieldOwner

func (inst *Option) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*Option) GongGetReverseFieldOwnerName

func (inst *Option) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*Option) GongMarshallAllFields

func (option *Option) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*Option) GongMarshallField

func (option *Option) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*Option) GongMarshallIdentifier

func (option *Option) GongMarshallIdentifier(stage *Stage) (decl string)

func (*Option) GongMarshallUnstaging

func (option *Option) GongMarshallUnstaging(stage *Stage) (decl string)

func (*Option) GongReconstructPointersFromInstances

func (reference *Option) GongReconstructPointersFromInstances(stage *Stage)

func (*Option) GongReconstructPointersFromReferences

func (reference *Option) GongReconstructPointersFromReferences(stage *Stage, instance *Option)

func (*Option) GongSetFieldValue

func (option *Option) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*Option) SetName

func (option *Option) SetName(name string)

for satisfaction of GongStruct interface

func (*Option) Stage

func (option *Option) Stage(stage *Stage) *Option

Stage puts option to the model stage

func (*Option) StagePreserveOrder

func (option *Option) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts option to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.OptionOrder - update stage.OptionOrder accordingly

func (*Option) StageVoid

func (option *Option) StageVoid(stage *Stage)

func (*Option) Unstage

func (option *Option) Unstage(stage *Stage) *Option

Unstage removes option off the model stage

func (*Option) UnstageVoid

func (option *Option) UnstageVoid(stage *Stage)

UnstageVoid removes option off the model stage

type OptionUnmarshaller

type OptionUnmarshaller struct{}

func (*OptionUnmarshaller) Initialize

func (u *OptionUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*OptionUnmarshaller) UnmarshallField

func (u *OptionUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type Option_WOP

type Option_WOP struct {
	Name string
}

type PointerToGongstruct

type PointerToGongstruct interface {
	GongstructIF
	comparable
}

type PointerToGongstructEnumIntField

type PointerToGongstructEnumIntField interface {
	//insertion point for pointers to enum int types
	FromCodeString(input string) (err error)
}

type PointerToGongstructEnumStringField

type PointerToGongstructEnumStringField interface {
	FromCodeString(input string) (err error)
}

type ProbeIF

type ProbeIF interface {
	Refresh()
	GetFormStage() *Stage
	FillUpFormFromGongstruct(instance any, formName string)
	AddNotification(date time.Time, message string)
	CommitNotificationTable()
	ResetNotifications()
	AddCommitNavigationNode(appendChildrenNodeFunc func(GongNodeIF))
}

for the split package, we define a ProbeIF interface otherwise, the split package cannot refer to the main gong package

type ReverseField

type ReverseField struct {
	GongstructName string
	Fieldname      string
}

func GetReverseFields

func GetReverseFields[Type GongstructIF]() (res []ReverseField)

type Row

type Row struct {
	Name  string
	Cells []*Cell

	IsChecked bool

	// swagger:ignore
	Impl RowImplInterface
}

func CopyBranchRow

func CopyBranchRow(mapOrigCopy map[any]any, rowFrom *Row) (rowTo *Row)

func (*Row) Checkout

func (row *Row) Checkout(stage *Stage) *Row

Checkout row to the back repo (if it is already staged)

func (*Row) Commit

func (row *Row) Commit(stage *Stage) *Row

commit row to the back repo (if it is already staged)

func (*Row) CommitVoid

func (row *Row) CommitVoid(stage *Stage)

func (*Row) CopyBasicFields

func (from *Row) CopyBasicFields(to *Row)

func (*Row) GetName

func (row *Row) GetName() (res string)

for satisfaction of GongStruct interface

func (*Row) GongClean

func (row *Row) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by Row

func (*Row) GongCopy

func (row *Row) GongCopy() GongstructIF

func (*Row) GongDiff

func (row *Row) GongDiff(stage *Stage, rowOther *Row) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*Row) GongGetFieldHeaders

func (row *Row) GongGetFieldHeaders() (res []GongFieldHeader)

func (*Row) GongGetFieldValue

func (row *Row) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*Row) GongGetGongstructName

func (row *Row) GongGetGongstructName() string

func (*Row) GongGetIdentifier

func (row *Row) GongGetIdentifier(stage *Stage) string

func (*Row) GongGetOrder

func (row *Row) GongGetOrder(stage *Stage) uint

func (*Row) GongGetReferenceIdentifier

func (row *Row) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*Row) GongGetReverseFieldOwner

func (inst *Row) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*Row) GongGetReverseFieldOwnerName

func (inst *Row) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*Row) GongMarshallAllFields

func (row *Row) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*Row) GongMarshallField

func (row *Row) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*Row) GongMarshallIdentifier

func (row *Row) GongMarshallIdentifier(stage *Stage) (decl string)

func (*Row) GongMarshallUnstaging

func (row *Row) GongMarshallUnstaging(stage *Stage) (decl string)

func (*Row) GongReconstructPointersFromInstances

func (reference *Row) GongReconstructPointersFromInstances(stage *Stage)

func (*Row) GongReconstructPointersFromReferences

func (reference *Row) GongReconstructPointersFromReferences(stage *Stage, instance *Row)

func (*Row) GongSetFieldValue

func (row *Row) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*Row) OnAfterUpdate

func (row *Row) OnAfterUpdate(stage *Stage, _, frontRow *Row)

OnAfterUpdate is called when there is an update to the row note the play on words "font row"

func (*Row) SetName

func (row *Row) SetName(name string)

for satisfaction of GongStruct interface

func (*Row) Stage

func (row *Row) Stage(stage *Stage) *Row

Stage puts row to the model stage

func (*Row) StagePreserveOrder

func (row *Row) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts row to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.RowOrder - update stage.RowOrder accordingly

func (*Row) StageVoid

func (row *Row) StageVoid(stage *Stage)

func (*Row) Unstage

func (row *Row) Unstage(stage *Stage) *Row

Unstage removes row off the model stage

func (*Row) UnstageVoid

func (row *Row) UnstageVoid(stage *Stage)

UnstageVoid removes row off the model stage

type RowImplInterface

type RowImplInterface interface {

	// RowUpdated function is called each time a Row is modified
	RowUpdated(stage *Stage, row, updatedRow *Row)
}

type RowOrchestrator

type RowOrchestrator struct {
}

RowOrchestrator

func (*RowOrchestrator) OnAfterUpdate

func (orchestrator *RowOrchestrator) OnAfterUpdate(
	gongsvgStage *Stage,
	stagedRow, backRepoRow *Row)

type RowUnmarshaller

type RowUnmarshaller struct{}

func (*RowUnmarshaller) Initialize

func (u *RowUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*RowUnmarshaller) UnmarshallField

func (u *RowUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type Row_WOP

type Row_WOP struct {
	Name string

	IsChecked bool
}

type Stage

type Stage struct {

	// insertion point for definition of arrays registering instances
	Cells                map[*Cell]struct{}
	Cells_instance       map[*Cell]*Cell
	Cells_mapString      map[string]*Cell
	CellOrder            uint
	Cell_stagedOrder     map[*Cell]uint
	Cells_reference      map[*Cell]*Cell
	Cells_referenceOrder map[*Cell]uint

	// insertion point for slice of pointers maps
	OnAfterCellCreateCallback OnAfterCreateInterface[Cell]
	OnAfterCellUpdateCallback OnAfterUpdateInterface[Cell]
	OnAfterCellDeleteCallback OnAfterDeleteInterface[Cell]
	OnAfterCellReadCallback   OnAfterReadInterface[Cell]

	CellBooleans                map[*CellBoolean]struct{}
	CellBooleans_instance       map[*CellBoolean]*CellBoolean
	CellBooleans_mapString      map[string]*CellBoolean
	CellBooleanOrder            uint
	CellBoolean_stagedOrder     map[*CellBoolean]uint
	CellBooleans_reference      map[*CellBoolean]*CellBoolean
	CellBooleans_referenceOrder map[*CellBoolean]uint

	// insertion point for slice of pointers maps
	OnAfterCellBooleanCreateCallback OnAfterCreateInterface[CellBoolean]
	OnAfterCellBooleanUpdateCallback OnAfterUpdateInterface[CellBoolean]
	OnAfterCellBooleanDeleteCallback OnAfterDeleteInterface[CellBoolean]
	OnAfterCellBooleanReadCallback   OnAfterReadInterface[CellBoolean]

	CellFloat64s                map[*CellFloat64]struct{}
	CellFloat64s_instance       map[*CellFloat64]*CellFloat64
	CellFloat64s_mapString      map[string]*CellFloat64
	CellFloat64Order            uint
	CellFloat64_stagedOrder     map[*CellFloat64]uint
	CellFloat64s_reference      map[*CellFloat64]*CellFloat64
	CellFloat64s_referenceOrder map[*CellFloat64]uint

	// insertion point for slice of pointers maps
	OnAfterCellFloat64CreateCallback OnAfterCreateInterface[CellFloat64]
	OnAfterCellFloat64UpdateCallback OnAfterUpdateInterface[CellFloat64]
	OnAfterCellFloat64DeleteCallback OnAfterDeleteInterface[CellFloat64]
	OnAfterCellFloat64ReadCallback   OnAfterReadInterface[CellFloat64]

	CellIcons                map[*CellIcon]struct{}
	CellIcons_instance       map[*CellIcon]*CellIcon
	CellIcons_mapString      map[string]*CellIcon
	CellIconOrder            uint
	CellIcon_stagedOrder     map[*CellIcon]uint
	CellIcons_reference      map[*CellIcon]*CellIcon
	CellIcons_referenceOrder map[*CellIcon]uint

	// insertion point for slice of pointers maps
	OnAfterCellIconCreateCallback OnAfterCreateInterface[CellIcon]
	OnAfterCellIconUpdateCallback OnAfterUpdateInterface[CellIcon]
	OnAfterCellIconDeleteCallback OnAfterDeleteInterface[CellIcon]
	OnAfterCellIconReadCallback   OnAfterReadInterface[CellIcon]

	CellInts                map[*CellInt]struct{}
	CellInts_instance       map[*CellInt]*CellInt
	CellInts_mapString      map[string]*CellInt
	CellIntOrder            uint
	CellInt_stagedOrder     map[*CellInt]uint
	CellInts_reference      map[*CellInt]*CellInt
	CellInts_referenceOrder map[*CellInt]uint

	// insertion point for slice of pointers maps
	OnAfterCellIntCreateCallback OnAfterCreateInterface[CellInt]
	OnAfterCellIntUpdateCallback OnAfterUpdateInterface[CellInt]
	OnAfterCellIntDeleteCallback OnAfterDeleteInterface[CellInt]
	OnAfterCellIntReadCallback   OnAfterReadInterface[CellInt]

	CellStrings                map[*CellString]struct{}
	CellStrings_instance       map[*CellString]*CellString
	CellStrings_mapString      map[string]*CellString
	CellStringOrder            uint
	CellString_stagedOrder     map[*CellString]uint
	CellStrings_reference      map[*CellString]*CellString
	CellStrings_referenceOrder map[*CellString]uint

	// insertion point for slice of pointers maps
	OnAfterCellStringCreateCallback OnAfterCreateInterface[CellString]
	OnAfterCellStringUpdateCallback OnAfterUpdateInterface[CellString]
	OnAfterCellStringDeleteCallback OnAfterDeleteInterface[CellString]
	OnAfterCellStringReadCallback   OnAfterReadInterface[CellString]

	CheckBoxs                map[*CheckBox]struct{}
	CheckBoxs_instance       map[*CheckBox]*CheckBox
	CheckBoxs_mapString      map[string]*CheckBox
	CheckBoxOrder            uint
	CheckBox_stagedOrder     map[*CheckBox]uint
	CheckBoxs_reference      map[*CheckBox]*CheckBox
	CheckBoxs_referenceOrder map[*CheckBox]uint

	// insertion point for slice of pointers maps
	OnAfterCheckBoxCreateCallback OnAfterCreateInterface[CheckBox]
	OnAfterCheckBoxUpdateCallback OnAfterUpdateInterface[CheckBox]
	OnAfterCheckBoxDeleteCallback OnAfterDeleteInterface[CheckBox]
	OnAfterCheckBoxReadCallback   OnAfterReadInterface[CheckBox]

	DisplayedColumns                map[*DisplayedColumn]struct{}
	DisplayedColumns_instance       map[*DisplayedColumn]*DisplayedColumn
	DisplayedColumns_mapString      map[string]*DisplayedColumn
	DisplayedColumnOrder            uint
	DisplayedColumn_stagedOrder     map[*DisplayedColumn]uint
	DisplayedColumns_reference      map[*DisplayedColumn]*DisplayedColumn
	DisplayedColumns_referenceOrder map[*DisplayedColumn]uint

	// insertion point for slice of pointers maps
	OnAfterDisplayedColumnCreateCallback OnAfterCreateInterface[DisplayedColumn]
	OnAfterDisplayedColumnUpdateCallback OnAfterUpdateInterface[DisplayedColumn]
	OnAfterDisplayedColumnDeleteCallback OnAfterDeleteInterface[DisplayedColumn]
	OnAfterDisplayedColumnReadCallback   OnAfterReadInterface[DisplayedColumn]

	FormDivs                map[*FormDiv]struct{}
	FormDivs_instance       map[*FormDiv]*FormDiv
	FormDivs_mapString      map[string]*FormDiv
	FormDivOrder            uint
	FormDiv_stagedOrder     map[*FormDiv]uint
	FormDivs_reference      map[*FormDiv]*FormDiv
	FormDivs_referenceOrder map[*FormDiv]uint

	// 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]
	OnAfterFormDivDeleteCallback OnAfterDeleteInterface[FormDiv]
	OnAfterFormDivReadCallback   OnAfterReadInterface[FormDiv]

	FormEditAssocButtons                map[*FormEditAssocButton]struct{}
	FormEditAssocButtons_instance       map[*FormEditAssocButton]*FormEditAssocButton
	FormEditAssocButtons_mapString      map[string]*FormEditAssocButton
	FormEditAssocButtonOrder            uint
	FormEditAssocButton_stagedOrder     map[*FormEditAssocButton]uint
	FormEditAssocButtons_reference      map[*FormEditAssocButton]*FormEditAssocButton
	FormEditAssocButtons_referenceOrder map[*FormEditAssocButton]uint

	// insertion point for slice of pointers maps
	OnAfterFormEditAssocButtonCreateCallback OnAfterCreateInterface[FormEditAssocButton]
	OnAfterFormEditAssocButtonUpdateCallback OnAfterUpdateInterface[FormEditAssocButton]
	OnAfterFormEditAssocButtonDeleteCallback OnAfterDeleteInterface[FormEditAssocButton]
	OnAfterFormEditAssocButtonReadCallback   OnAfterReadInterface[FormEditAssocButton]

	FormFields                map[*FormField]struct{}
	FormFields_instance       map[*FormField]*FormField
	FormFields_mapString      map[string]*FormField
	FormFieldOrder            uint
	FormField_stagedOrder     map[*FormField]uint
	FormFields_reference      map[*FormField]*FormField
	FormFields_referenceOrder map[*FormField]uint

	// insertion point for slice of pointers maps
	OnAfterFormFieldCreateCallback OnAfterCreateInterface[FormField]
	OnAfterFormFieldUpdateCallback OnAfterUpdateInterface[FormField]
	OnAfterFormFieldDeleteCallback OnAfterDeleteInterface[FormField]
	OnAfterFormFieldReadCallback   OnAfterReadInterface[FormField]

	FormFieldDates                map[*FormFieldDate]struct{}
	FormFieldDates_instance       map[*FormFieldDate]*FormFieldDate
	FormFieldDates_mapString      map[string]*FormFieldDate
	FormFieldDateOrder            uint
	FormFieldDate_stagedOrder     map[*FormFieldDate]uint
	FormFieldDates_reference      map[*FormFieldDate]*FormFieldDate
	FormFieldDates_referenceOrder map[*FormFieldDate]uint

	// insertion point for slice of pointers maps
	OnAfterFormFieldDateCreateCallback OnAfterCreateInterface[FormFieldDate]
	OnAfterFormFieldDateUpdateCallback OnAfterUpdateInterface[FormFieldDate]
	OnAfterFormFieldDateDeleteCallback OnAfterDeleteInterface[FormFieldDate]
	OnAfterFormFieldDateReadCallback   OnAfterReadInterface[FormFieldDate]

	FormFieldDateTimes                map[*FormFieldDateTime]struct{}
	FormFieldDateTimes_instance       map[*FormFieldDateTime]*FormFieldDateTime
	FormFieldDateTimes_mapString      map[string]*FormFieldDateTime
	FormFieldDateTimeOrder            uint
	FormFieldDateTime_stagedOrder     map[*FormFieldDateTime]uint
	FormFieldDateTimes_reference      map[*FormFieldDateTime]*FormFieldDateTime
	FormFieldDateTimes_referenceOrder map[*FormFieldDateTime]uint

	// insertion point for slice of pointers maps
	OnAfterFormFieldDateTimeCreateCallback OnAfterCreateInterface[FormFieldDateTime]
	OnAfterFormFieldDateTimeUpdateCallback OnAfterUpdateInterface[FormFieldDateTime]
	OnAfterFormFieldDateTimeDeleteCallback OnAfterDeleteInterface[FormFieldDateTime]
	OnAfterFormFieldDateTimeReadCallback   OnAfterReadInterface[FormFieldDateTime]

	FormFieldFloat64s                map[*FormFieldFloat64]struct{}
	FormFieldFloat64s_instance       map[*FormFieldFloat64]*FormFieldFloat64
	FormFieldFloat64s_mapString      map[string]*FormFieldFloat64
	FormFieldFloat64Order            uint
	FormFieldFloat64_stagedOrder     map[*FormFieldFloat64]uint
	FormFieldFloat64s_reference      map[*FormFieldFloat64]*FormFieldFloat64
	FormFieldFloat64s_referenceOrder map[*FormFieldFloat64]uint

	// insertion point for slice of pointers maps
	OnAfterFormFieldFloat64CreateCallback OnAfterCreateInterface[FormFieldFloat64]
	OnAfterFormFieldFloat64UpdateCallback OnAfterUpdateInterface[FormFieldFloat64]
	OnAfterFormFieldFloat64DeleteCallback OnAfterDeleteInterface[FormFieldFloat64]
	OnAfterFormFieldFloat64ReadCallback   OnAfterReadInterface[FormFieldFloat64]

	FormFieldInts                map[*FormFieldInt]struct{}
	FormFieldInts_instance       map[*FormFieldInt]*FormFieldInt
	FormFieldInts_mapString      map[string]*FormFieldInt
	FormFieldIntOrder            uint
	FormFieldInt_stagedOrder     map[*FormFieldInt]uint
	FormFieldInts_reference      map[*FormFieldInt]*FormFieldInt
	FormFieldInts_referenceOrder map[*FormFieldInt]uint

	// insertion point for slice of pointers maps
	OnAfterFormFieldIntCreateCallback OnAfterCreateInterface[FormFieldInt]
	OnAfterFormFieldIntUpdateCallback OnAfterUpdateInterface[FormFieldInt]
	OnAfterFormFieldIntDeleteCallback OnAfterDeleteInterface[FormFieldInt]
	OnAfterFormFieldIntReadCallback   OnAfterReadInterface[FormFieldInt]

	FormFieldSelects                map[*FormFieldSelect]struct{}
	FormFieldSelects_instance       map[*FormFieldSelect]*FormFieldSelect
	FormFieldSelects_mapString      map[string]*FormFieldSelect
	FormFieldSelectOrder            uint
	FormFieldSelect_stagedOrder     map[*FormFieldSelect]uint
	FormFieldSelects_reference      map[*FormFieldSelect]*FormFieldSelect
	FormFieldSelects_referenceOrder map[*FormFieldSelect]uint

	// insertion point for slice of pointers maps
	FormFieldSelect_Options_reverseMap map[*Option]*FormFieldSelect

	OnAfterFormFieldSelectCreateCallback OnAfterCreateInterface[FormFieldSelect]
	OnAfterFormFieldSelectUpdateCallback OnAfterUpdateInterface[FormFieldSelect]
	OnAfterFormFieldSelectDeleteCallback OnAfterDeleteInterface[FormFieldSelect]
	OnAfterFormFieldSelectReadCallback   OnAfterReadInterface[FormFieldSelect]

	FormFieldStrings                map[*FormFieldString]struct{}
	FormFieldStrings_instance       map[*FormFieldString]*FormFieldString
	FormFieldStrings_mapString      map[string]*FormFieldString
	FormFieldStringOrder            uint
	FormFieldString_stagedOrder     map[*FormFieldString]uint
	FormFieldStrings_reference      map[*FormFieldString]*FormFieldString
	FormFieldStrings_referenceOrder map[*FormFieldString]uint

	// insertion point for slice of pointers maps
	OnAfterFormFieldStringCreateCallback OnAfterCreateInterface[FormFieldString]
	OnAfterFormFieldStringUpdateCallback OnAfterUpdateInterface[FormFieldString]
	OnAfterFormFieldStringDeleteCallback OnAfterDeleteInterface[FormFieldString]
	OnAfterFormFieldStringReadCallback   OnAfterReadInterface[FormFieldString]

	FormFieldTimes                map[*FormFieldTime]struct{}
	FormFieldTimes_instance       map[*FormFieldTime]*FormFieldTime
	FormFieldTimes_mapString      map[string]*FormFieldTime
	FormFieldTimeOrder            uint
	FormFieldTime_stagedOrder     map[*FormFieldTime]uint
	FormFieldTimes_reference      map[*FormFieldTime]*FormFieldTime
	FormFieldTimes_referenceOrder map[*FormFieldTime]uint

	// insertion point for slice of pointers maps
	OnAfterFormFieldTimeCreateCallback OnAfterCreateInterface[FormFieldTime]
	OnAfterFormFieldTimeUpdateCallback OnAfterUpdateInterface[FormFieldTime]
	OnAfterFormFieldTimeDeleteCallback OnAfterDeleteInterface[FormFieldTime]
	OnAfterFormFieldTimeReadCallback   OnAfterReadInterface[FormFieldTime]

	FormGroups                map[*FormGroup]struct{}
	FormGroups_instance       map[*FormGroup]*FormGroup
	FormGroups_mapString      map[string]*FormGroup
	FormGroupOrder            uint
	FormGroup_stagedOrder     map[*FormGroup]uint
	FormGroups_reference      map[*FormGroup]*FormGroup
	FormGroups_referenceOrder map[*FormGroup]uint

	// insertion point for slice of pointers maps
	FormGroup_FormDivs_reverseMap map[*FormDiv]*FormGroup

	OnAfterFormGroupCreateCallback OnAfterCreateInterface[FormGroup]
	OnAfterFormGroupUpdateCallback OnAfterUpdateInterface[FormGroup]
	OnAfterFormGroupDeleteCallback OnAfterDeleteInterface[FormGroup]
	OnAfterFormGroupReadCallback   OnAfterReadInterface[FormGroup]

	FormSortAssocButtons                map[*FormSortAssocButton]struct{}
	FormSortAssocButtons_instance       map[*FormSortAssocButton]*FormSortAssocButton
	FormSortAssocButtons_mapString      map[string]*FormSortAssocButton
	FormSortAssocButtonOrder            uint
	FormSortAssocButton_stagedOrder     map[*FormSortAssocButton]uint
	FormSortAssocButtons_reference      map[*FormSortAssocButton]*FormSortAssocButton
	FormSortAssocButtons_referenceOrder map[*FormSortAssocButton]uint

	// insertion point for slice of pointers maps
	OnAfterFormSortAssocButtonCreateCallback OnAfterCreateInterface[FormSortAssocButton]
	OnAfterFormSortAssocButtonUpdateCallback OnAfterUpdateInterface[FormSortAssocButton]
	OnAfterFormSortAssocButtonDeleteCallback OnAfterDeleteInterface[FormSortAssocButton]
	OnAfterFormSortAssocButtonReadCallback   OnAfterReadInterface[FormSortAssocButton]

	Options                map[*Option]struct{}
	Options_instance       map[*Option]*Option
	Options_mapString      map[string]*Option
	OptionOrder            uint
	Option_stagedOrder     map[*Option]uint
	Options_reference      map[*Option]*Option
	Options_referenceOrder map[*Option]uint

	// insertion point for slice of pointers maps
	OnAfterOptionCreateCallback OnAfterCreateInterface[Option]
	OnAfterOptionUpdateCallback OnAfterUpdateInterface[Option]
	OnAfterOptionDeleteCallback OnAfterDeleteInterface[Option]
	OnAfterOptionReadCallback   OnAfterReadInterface[Option]

	Rows                map[*Row]struct{}
	Rows_instance       map[*Row]*Row
	Rows_mapString      map[string]*Row
	RowOrder            uint
	Row_stagedOrder     map[*Row]uint
	Rows_reference      map[*Row]*Row
	Rows_referenceOrder map[*Row]uint

	// insertion point for slice of pointers maps
	Row_Cells_reverseMap map[*Cell]*Row

	OnAfterRowCreateCallback OnAfterCreateInterface[Row]
	OnAfterRowUpdateCallback OnAfterUpdateInterface[Row]
	OnAfterRowDeleteCallback OnAfterDeleteInterface[Row]
	OnAfterRowReadCallback   OnAfterReadInterface[Row]

	Tables                map[*Table]struct{}
	Tables_instance       map[*Table]*Table
	Tables_mapString      map[string]*Table
	TableOrder            uint
	Table_stagedOrder     map[*Table]uint
	Tables_reference      map[*Table]*Table
	Tables_referenceOrder map[*Table]uint

	// 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]
	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

	NamedStructs []*NamedStruct

	// GongUnmarshallers is the registry of all model unmarshallers
	GongUnmarshallers map[string]ModelUnmarshaller
	// contains filtered or unexported fields
}

Stage enables storage of staged instances

func NewStage

func NewStage(name string) (stage *Stage)

func (*Stage) ApplyBackwardCommit

func (stage *Stage) ApplyBackwardCommit() error

ApplyBackwardCommit applies the commit before the current one

func (*Stage) ApplyForwardCommit

func (stage *Stage) ApplyForwardCommit() error

func (*Stage) Backup

func (stage *Stage) Backup(dirPath string)

backup generates backup files in the dirPath

func (*Stage) BackupXL

func (stage *Stage) BackupXL(dirPath string)

backup generates backup files in the dirPath

func (*Stage) Checkout

func (stage *Stage) Checkout()

func (*Stage) Clean

func (stage *Stage) Clean() (modified bool)

Clean garbage collect unstaged instances that are referenced by staged elements

func (*Stage) Commit

func (stage *Stage) Commit()

func (*Stage) CommitWithSuspendedCallbacks

func (stage *Stage) CommitWithSuspendedCallbacks()

func (*Stage) ComputeForwardAndBackwardCommits

func (stage *Stage) ComputeForwardAndBackwardCommits()

func (*Stage) ComputeInstancesNb

func (stage *Stage) ComputeInstancesNb()

func (*Stage) ComputeReferenceAndOrders

func (stage *Stage) ComputeReferenceAndOrders()

ComputeReferenceAndOrders will creates a deep copy of each of the staged elements

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) GetBackwardCommits

func (stage *Stage) GetBackwardCommits() []string

func (*Stage) GetCommitsBehind

func (stage *Stage) GetCommitsBehind() int

func (*Stage) GetDigramsEmbededDir

func (stage *Stage) GetDigramsEmbededDir() embed.FS

func (*Stage) GetForwardCommits

func (stage *Stage) GetForwardCommits() []string

func (*Stage) GetInstances

func (stage *Stage) GetInstances() (res []GongstructIF)

func (*Stage) GetMap_GongStructName_InstancesNb

func (stage *Stage) GetMap_GongStructName_InstancesNb() map[string]int

func (*Stage) GetModelsEmbededDir

func (stage *Stage) GetModelsEmbededDir() embed.FS

func (*Stage) GetName

func (stage *Stage) GetName() string

func (*Stage) GetNamedStructNamesByOrder

func (stage *Stage) GetNamedStructNamesByOrder(namedStructName string) (res []string)

func (*Stage) GetNamedStructsNames

func (stage *Stage) GetNamedStructsNames() (res []string)

GetNamedStructs implements models.ProbebStage.

func (*Stage) GetProbeFormStageName

func (stage *Stage) GetProbeFormStageName() string

func (*Stage) GetProbeIF

func (stage *Stage) GetProbeIF() ProbeIF

func (*Stage) GetProbeNavigationTreeSidebarStageName

func (stage *Stage) GetProbeNavigationTreeSidebarStageName() string

func (*Stage) GetProbeNotificationTableStageName

func (stage *Stage) GetProbeNotificationTableStageName() string

func (*Stage) GetProbeSplitStageName

func (stage *Stage) GetProbeSplitStageName() string

func (*Stage) GetProbeTableStageName

func (stage *Stage) GetProbeTableStageName() string

func (*Stage) GetProbeTreeSidebarStageName

func (stage *Stage) GetProbeTreeSidebarStageName() string

func (*Stage) GetType

func (stage *Stage) GetType() string

func (*Stage) IsInDeltaMode

func (stage *Stage) IsInDeltaMode() bool

func (*Stage) IsStagedCell

func (stage *Stage) IsStagedCell(cell *Cell) (ok bool)

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 *Stage) IsStagedCellIcon(cellicon *CellIcon) (ok bool)

func (*Stage) IsStagedCellInt

func (stage *Stage) IsStagedCellInt(cellint *CellInt) (ok bool)

func (*Stage) IsStagedCellString

func (stage *Stage) IsStagedCellString(cellstring *CellString) (ok bool)

func (*Stage) IsStagedCheckBox

func (stage *Stage) IsStagedCheckBox(checkbox *CheckBox) (ok bool)

func (*Stage) IsStagedDisplayedColumn

func (stage *Stage) IsStagedDisplayedColumn(displayedcolumn *DisplayedColumn) (ok bool)

func (*Stage) IsStagedFormDiv

func (stage *Stage) IsStagedFormDiv(formdiv *FormDiv) (ok bool)

func (*Stage) IsStagedFormEditAssocButton

func (stage *Stage) IsStagedFormEditAssocButton(formeditassocbutton *FormEditAssocButton) (ok bool)

func (*Stage) IsStagedFormField

func (stage *Stage) IsStagedFormField(formfield *FormField) (ok bool)

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 *Stage) IsStagedFormGroup(formgroup *FormGroup) (ok bool)

func (*Stage) IsStagedFormSortAssocButton

func (stage *Stage) IsStagedFormSortAssocButton(formsortassocbutton *FormSortAssocButton) (ok bool)

func (*Stage) IsStagedOption

func (stage *Stage) IsStagedOption(option *Option) (ok bool)

func (*Stage) IsStagedRow

func (stage *Stage) IsStagedRow(row *Row) (ok bool)

func (*Stage) IsStagedTable

func (stage *Stage) IsStagedTable(table *Table) (ok bool)

func (*Stage) Lock

func (stage *Stage) Lock()

func (*Stage) Marshall

func (stage *Stage) Marshall(file *os.File, modelsPackageName, packageName string)

Marshall marshall the stage content into the file as an instanciation into a stage

func (*Stage) MarshallToString

func (stage *Stage) MarshallToString(modelsPackageName, packageName string) (res string, err error)

MarshallToString marshall the stage content into a string

func (*Stage) Nil

func (stage *Stage) Nil()

func (*Stage) Orphans

func (stage *Stage) Orphans()

Orphans removes all commits

func (*Stage) RLock

func (stage *Stage) RLock()

func (*Stage) RUnlock

func (stage *Stage) RUnlock()

func (*Stage) RegisterAfterCommit

func (s *Stage) RegisterAfterCommit(hook func(stage *Stage))

RegisterAfterCommit adds a hook that runs after the commit succeeds

func (*Stage) RegisterBeforeCommit

func (s *Stage) RegisterBeforeCommit(hook func(stage *Stage))

RegisterBeforeCommit adds a hook that runs before the commit happens

func (*Stage) Reset

func (stage *Stage) Reset()

func (*Stage) ResetHard

func (stage *Stage) ResetHard()

ResetHard removes the more recent commitsBehind forward/backward Commits from the stage

func (*Stage) ResetMapStrings

func (stage *Stage) ResetMapStrings()

func (*Stage) Restore

func (stage *Stage) Restore(dirPath string)

Restore resets Stage & BackRepo and restores their content from the restore files in dirPath

func (*Stage) RestoreXL

func (stage *Stage) RestoreXL(dirPath string)

Restore resets Stage & BackRepo and restores their content from the restore files in dirPath

func (*Stage) SetDeltaMode

func (stage *Stage) SetDeltaMode(inDeltaMode bool)

func (*Stage) SetProbeIF

func (stage *Stage) SetProbeIF(probeIF ProbeIF)

func (*Stage) StageBranchCell

func (stage *Stage) StageBranchCell(cell *Cell)

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 *Stage) StageBranchCellIcon(cellicon *CellIcon)

func (*Stage) StageBranchCellInt

func (stage *Stage) StageBranchCellInt(cellint *CellInt)

func (*Stage) StageBranchCellString

func (stage *Stage) StageBranchCellString(cellstring *CellString)

func (*Stage) StageBranchCheckBox

func (stage *Stage) StageBranchCheckBox(checkbox *CheckBox)

func (*Stage) StageBranchDisplayedColumn

func (stage *Stage) StageBranchDisplayedColumn(displayedcolumn *DisplayedColumn)

func (*Stage) StageBranchFormDiv

func (stage *Stage) StageBranchFormDiv(formdiv *FormDiv)

func (*Stage) StageBranchFormEditAssocButton

func (stage *Stage) StageBranchFormEditAssocButton(formeditassocbutton *FormEditAssocButton)

func (*Stage) StageBranchFormField

func (stage *Stage) StageBranchFormField(formfield *FormField)

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 *Stage) StageBranchFormGroup(formgroup *FormGroup)

func (*Stage) StageBranchFormSortAssocButton

func (stage *Stage) StageBranchFormSortAssocButton(formsortassocbutton *FormSortAssocButton)

func (*Stage) StageBranchOption

func (stage *Stage) StageBranchOption(option *Option)

func (*Stage) StageBranchRow

func (stage *Stage) StageBranchRow(row *Row)

func (*Stage) StageBranchTable

func (stage *Stage) StageBranchTable(table *Table)

func (*Stage) Unlock

func (stage *Stage) Unlock()

func (*Stage) Unstage

func (stage *Stage) Unstage()

func (*Stage) UnstageBranchCell

func (stage *Stage) UnstageBranchCell(cell *Cell)

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 *Stage) UnstageBranchCellIcon(cellicon *CellIcon)

func (*Stage) UnstageBranchCellInt

func (stage *Stage) UnstageBranchCellInt(cellint *CellInt)

func (*Stage) UnstageBranchCellString

func (stage *Stage) UnstageBranchCellString(cellstring *CellString)

func (*Stage) UnstageBranchCheckBox

func (stage *Stage) UnstageBranchCheckBox(checkbox *CheckBox)

func (*Stage) UnstageBranchDisplayedColumn

func (stage *Stage) UnstageBranchDisplayedColumn(displayedcolumn *DisplayedColumn)

func (*Stage) UnstageBranchFormDiv

func (stage *Stage) UnstageBranchFormDiv(formdiv *FormDiv)

func (*Stage) UnstageBranchFormEditAssocButton

func (stage *Stage) UnstageBranchFormEditAssocButton(formeditassocbutton *FormEditAssocButton)

func (*Stage) UnstageBranchFormField

func (stage *Stage) UnstageBranchFormField(formfield *FormField)

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 *Stage) UnstageBranchFormGroup(formgroup *FormGroup)

func (*Stage) UnstageBranchFormSortAssocButton

func (stage *Stage) UnstageBranchFormSortAssocButton(formsortassocbutton *FormSortAssocButton)

func (*Stage) UnstageBranchOption

func (stage *Stage) UnstageBranchOption(option *Option)

func (*Stage) UnstageBranchRow

func (stage *Stage) UnstageBranchRow(row *Row)

func (*Stage) UnstageBranchTable

func (stage *Stage) UnstageBranchTable(table *Table)

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 CopyBranchTable(mapOrigCopy map[any]any, tableFrom *Table) (tableTo *Table)

func (*Table) Checkout

func (table *Table) Checkout(stage *Stage) *Table

Checkout table to the back repo (if it is already staged)

func (*Table) Commit

func (table *Table) Commit(stage *Stage) *Table

commit table to the back repo (if it is already staged)

func (*Table) CommitVoid

func (table *Table) CommitVoid(stage *Stage)

func (*Table) CopyBasicFields

func (from *Table) CopyBasicFields(to *Table)

func (*Table) GetName

func (table *Table) GetName() (res string)

for satisfaction of GongStruct interface

func (*Table) GongClean

func (table *Table) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by Table

func (*Table) GongCopy

func (table *Table) GongCopy() GongstructIF

func (*Table) GongDiff

func (table *Table) GongDiff(stage *Stage, tableOther *Table) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (*Table) GongGetFieldHeaders

func (table *Table) GongGetFieldHeaders() (res []GongFieldHeader)

func (*Table) GongGetFieldValue

func (table *Table) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*Table) GongGetGongstructName

func (table *Table) GongGetGongstructName() string

func (*Table) GongGetIdentifier

func (table *Table) GongGetIdentifier(stage *Stage) string

func (*Table) GongGetOrder

func (table *Table) GongGetOrder(stage *Stage) uint

func (*Table) GongGetReferenceIdentifier

func (table *Table) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*Table) GongGetReverseFieldOwner

func (inst *Table) GongGetReverseFieldOwner(stage *Stage, reverseField *ReverseField) (res GongstructIF)

func (*Table) GongGetReverseFieldOwnerName

func (inst *Table) GongGetReverseFieldOwnerName(stage *Stage, reverseField *ReverseField) (res string)

func (*Table) GongMarshallAllFields

func (table *Table) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*Table) GongMarshallField

func (table *Table) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*Table) GongMarshallIdentifier

func (table *Table) GongMarshallIdentifier(stage *Stage) (decl string)

func (*Table) GongMarshallUnstaging

func (table *Table) GongMarshallUnstaging(stage *Stage) (decl string)

func (*Table) GongReconstructPointersFromInstances

func (reference *Table) GongReconstructPointersFromInstances(stage *Stage)

func (*Table) GongReconstructPointersFromReferences

func (reference *Table) GongReconstructPointersFromReferences(stage *Stage, instance *Table)

func (*Table) GongSetFieldValue

func (table *Table) GongSetFieldValue(fieldName string, value GongFieldValue, stage *Stage) error

func (*Table) OnAfterUpdate

func (table *Table) OnAfterUpdate(stage *Stage, _, frontTable *Table)

OnAfterUpdate is called when there is an update to the table note the play on words "font table"

func (*Table) SetName

func (table *Table) SetName(name string)

for satisfaction of GongStruct interface

func (*Table) Stage

func (table *Table) Stage(stage *Stage) *Table

Stage puts table to the model stage

func (*Table) StagePreserveOrder

func (table *Table) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts table to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.TableOrder - update stage.TableOrder accordingly

func (*Table) StageVoid

func (table *Table) StageVoid(stage *Stage)

func (*Table) Unstage

func (table *Table) Unstage(stage *Stage) *Table

Unstage removes table off the model stage

func (*Table) UnstageVoid

func (table *Table) UnstageVoid(stage *Stage)

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 TableImplInterface interface {

	// TableUpdated function is called each time a Table is modified
	TableUpdated(stage *Stage, table, updatedTable *Table)
}

type TableName

type TableName string

TableName - Authorized name for form group

const (
	TableDefaultName TableName = "Table"
)

values for TableName

func (TableName) CodeValues

func (tablename TableName) CodeValues() (res []string)

func (TableName) Codes

func (tablename TableName) Codes() (res []string)

func (*TableName) FromCodeString

func (tablename *TableName) FromCodeString(input string) (err error)

func (*TableName) FromString

func (tablename *TableName) FromString(input string) (err error)

func (*TableName) ToCodeString

func (tablename *TableName) ToCodeString() (res string)

func (TableName) ToString

func (tablename TableName) ToString() (res string)

Utility function for TableName 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 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

type TableUnmarshaller

type TableUnmarshaller struct{}

func (*TableUnmarshaller) Initialize

func (u *TableUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*TableUnmarshaller) UnmarshallField

func (u *TableUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type Table_WOP

type Table_WOP struct {
	Name string

	HasFiltering bool

	HasColumnSorting bool

	HasPaginator bool

	HasCheckableRows bool

	HasSaveButton bool

	SaveButtonLabel string

	CanDragDropRows bool

	HasCloseButton bool

	SavingInProgress bool

	NbOfStickyColumns int
}

type Tabulator

type Tabulator interface {
	AddSheet(sheetName string)
	AddRow(sheetName string) int
	AddCell(sheetName string, rowId, columnIndex int, value string)
}

Tabulator is an interface for writing to a table strings

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL