Documentation
¶
Overview ¶
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
do not modify, generated file
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
Index ¶
- Variables
- func CopyBackRepoToBackRepoData(backRepo *BackRepoStruct, backRepoData *BackRepoData)
- func GetID[T models.Gongstruct](stage *models.Stage, backRepo *BackRepoStruct, instance *T) (id int)
- func GetIDPointer[T models.PointerToGongstruct](stage *models.Stage, backRepo *BackRepoStruct, instance T) (id int)
- func GetInstanceDBFromInstance[T models.Gongstruct, T2 GongstructDB](stage *models.Stage, backRepo *BackRepoStruct, instance *T) (ret *T2)
- type AttributeShapeAPI
- type AttributeShapeDB
- func (attributeshapeDB *AttributeShapeDB) CopyBasicFieldsFromAttributeShape(attributeshape *models.AttributeShape)
- func (attributeshapeDB *AttributeShapeDB) CopyBasicFieldsFromAttributeShapeWOP(attributeshape *AttributeShapeWOP)
- func (attributeshapeDB *AttributeShapeDB) CopyBasicFieldsFromAttributeShape_WOP(attributeshape *models.AttributeShape_WOP)
- func (attributeshapeDB *AttributeShapeDB) CopyBasicFieldsToAttributeShape(attributeshape *models.AttributeShape)
- func (attributeshapeDB *AttributeShapeDB) CopyBasicFieldsToAttributeShapeWOP(attributeshape *AttributeShapeWOP)
- func (attributeshapeDB *AttributeShapeDB) CopyBasicFieldsToAttributeShape_WOP(attributeshape *models.AttributeShape_WOP)
- func (attributeshapeDB *AttributeShapeDB) DecodePointers(backRepo *BackRepoStruct, attributeshape *models.AttributeShape)
- type AttributeShapeDBResponse
- type AttributeShapeDBs
- type AttributeShapePointersEncoding
- type AttributeShapeWOP
- type BackRepoAttributeShapeStruct
- func (backRepoAttributeShape *BackRepoAttributeShapeStruct) Backup(dirPath string)
- func (backRepoAttributeShape *BackRepoAttributeShapeStruct) BackupXL(file *xlsx.File)
- func (backRepoAttributeShape *BackRepoAttributeShapeStruct) CheckoutPhaseOne() (Error error)
- func (backRepoAttributeShape *BackRepoAttributeShapeStruct) CheckoutPhaseOneInstance(attributeshapeDB *AttributeShapeDB) (Error error)
- func (backRepoAttributeShape *BackRepoAttributeShapeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoAttributeShape *BackRepoAttributeShapeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, attributeshapeDB *AttributeShapeDB) (Error error)
- func (backRepoAttributeShape *BackRepoAttributeShapeStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoAttributeShape *BackRepoAttributeShapeStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoAttributeShape *BackRepoAttributeShapeStruct) CommitPhaseOneInstance(attributeshape *models.AttributeShape) (Error error)
- func (backRepoAttributeShape *BackRepoAttributeShapeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoAttributeShape *BackRepoAttributeShapeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, attributeshape *models.AttributeShape) (Error error)
- func (backRepoAttributeShape *BackRepoAttributeShapeStruct) GetAttributeShapeDBFromAttributeShapePtr(attributeshape *models.AttributeShape) (attributeshapeDB *AttributeShapeDB)
- func (backRepoAttributeShape *BackRepoAttributeShapeStruct) GetDB() db.DBInterface
- func (backRepoAttributeShape *BackRepoAttributeShapeStruct) GetStage() (stage *models.Stage)
- func (backRepoAttributeShape *BackRepoAttributeShapeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoAttributeShape *BackRepoAttributeShapeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, attributeshape *models.AttributeShape) (Error error)
- func (backRepoAttributeShape *BackRepoAttributeShapeStruct) RestorePhaseOne(dirPath string)
- func (backRepoAttributeShape *BackRepoAttributeShapeStruct) RestorePhaseTwo()
- func (backRepoAttributeShape *BackRepoAttributeShapeStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoClassdiagramStruct
- func (backRepoClassdiagram *BackRepoClassdiagramStruct) Backup(dirPath string)
- func (backRepoClassdiagram *BackRepoClassdiagramStruct) BackupXL(file *xlsx.File)
- func (backRepoClassdiagram *BackRepoClassdiagramStruct) CheckoutPhaseOne() (Error error)
- func (backRepoClassdiagram *BackRepoClassdiagramStruct) CheckoutPhaseOneInstance(classdiagramDB *ClassdiagramDB) (Error error)
- func (backRepoClassdiagram *BackRepoClassdiagramStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoClassdiagram *BackRepoClassdiagramStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, classdiagramDB *ClassdiagramDB) (Error error)
- func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitPhaseOneInstance(classdiagram *models.Classdiagram) (Error error)
- func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, classdiagram *models.Classdiagram) (Error error)
- func (backRepoClassdiagram *BackRepoClassdiagramStruct) GetClassdiagramDBFromClassdiagramPtr(classdiagram *models.Classdiagram) (classdiagramDB *ClassdiagramDB)
- func (backRepoClassdiagram *BackRepoClassdiagramStruct) GetDB() db.DBInterface
- func (backRepoClassdiagram *BackRepoClassdiagramStruct) GetStage() (stage *models.Stage)
- func (backRepoClassdiagram *BackRepoClassdiagramStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoClassdiagram *BackRepoClassdiagramStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, classdiagram *models.Classdiagram) (Error error)
- func (backRepoClassdiagram *BackRepoClassdiagramStruct) RestorePhaseOne(dirPath string)
- func (backRepoClassdiagram *BackRepoClassdiagramStruct) RestorePhaseTwo()
- func (backRepoClassdiagram *BackRepoClassdiagramStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoData
- type BackRepoDiagramPackageStruct
- func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) Backup(dirPath string)
- func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) BackupXL(file *xlsx.File)
- func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CheckoutPhaseOne() (Error error)
- func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CheckoutPhaseOneInstance(diagrampackageDB *DiagramPackageDB) (Error error)
- func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, diagrampackageDB *DiagramPackageDB) (Error error)
- func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CommitPhaseOneInstance(diagrampackage *models.DiagramPackage) (Error error)
- func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, diagrampackage *models.DiagramPackage) (Error error)
- func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) GetDB() db.DBInterface
- func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) GetDiagramPackageDBFromDiagramPackagePtr(diagrampackage *models.DiagramPackage) (diagrampackageDB *DiagramPackageDB)
- func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) GetStage() (stage *models.Stage)
- func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, diagrampackage *models.DiagramPackage) (Error error)
- func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) RestorePhaseOne(dirPath string)
- func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) RestorePhaseTwo()
- func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoGongEnumShapeStruct
- func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) Backup(dirPath string)
- func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) BackupXL(file *xlsx.File)
- func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CheckoutPhaseOne() (Error error)
- func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CheckoutPhaseOneInstance(gongenumshapeDB *GongEnumShapeDB) (Error error)
- func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongenumshapeDB *GongEnumShapeDB) (Error error)
- func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CommitPhaseOneInstance(gongenumshape *models.GongEnumShape) (Error error)
- func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gongenumshape *models.GongEnumShape) (Error error)
- func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) GetDB() db.DBInterface
- func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) GetGongEnumShapeDBFromGongEnumShapePtr(gongenumshape *models.GongEnumShape) (gongenumshapeDB *GongEnumShapeDB)
- func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) GetStage() (stage *models.Stage)
- func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gongenumshape *models.GongEnumShape) (Error error)
- func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) RestorePhaseOne(dirPath string)
- func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) RestorePhaseTwo()
- func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoGongEnumValueShapeStruct
- func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) Backup(dirPath string)
- func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) BackupXL(file *xlsx.File)
- func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) CheckoutPhaseOne() (Error error)
- func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) CheckoutPhaseOneInstance(gongenumvalueshapeDB *GongEnumValueShapeDB) (Error error)
- func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongenumvalueshapeDB *GongEnumValueShapeDB) (Error error)
- func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) CommitPhaseOneInstance(gongenumvalueshape *models.GongEnumValueShape) (Error error)
- func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, ...) (Error error)
- func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) GetDB() db.DBInterface
- func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) GetGongEnumValueShapeDBFromGongEnumValueShapePtr(gongenumvalueshape *models.GongEnumValueShape) (gongenumvalueshapeDB *GongEnumValueShapeDB)
- func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) GetStage() (stage *models.Stage)
- func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, ...) (Error error)
- func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) RestorePhaseOne(dirPath string)
- func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) RestorePhaseTwo()
- func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoGongNoteLinkShapeStruct
- func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) Backup(dirPath string)
- func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) BackupXL(file *xlsx.File)
- func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) CheckoutPhaseOne() (Error error)
- func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) CheckoutPhaseOneInstance(gongnotelinkshapeDB *GongNoteLinkShapeDB) (Error error)
- func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongnotelinkshapeDB *GongNoteLinkShapeDB) (Error error)
- func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) CommitPhaseOneInstance(gongnotelinkshape *models.GongNoteLinkShape) (Error error)
- func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, ...) (Error error)
- func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) GetDB() db.DBInterface
- func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) GetGongNoteLinkShapeDBFromGongNoteLinkShapePtr(gongnotelinkshape *models.GongNoteLinkShape) (gongnotelinkshapeDB *GongNoteLinkShapeDB)
- func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) GetStage() (stage *models.Stage)
- func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, ...) (Error error)
- func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) RestorePhaseOne(dirPath string)
- func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) RestorePhaseTwo()
- func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoGongNoteShapeStruct
- func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) Backup(dirPath string)
- func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) BackupXL(file *xlsx.File)
- func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) CheckoutPhaseOne() (Error error)
- func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) CheckoutPhaseOneInstance(gongnoteshapeDB *GongNoteShapeDB) (Error error)
- func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongnoteshapeDB *GongNoteShapeDB) (Error error)
- func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) CommitPhaseOneInstance(gongnoteshape *models.GongNoteShape) (Error error)
- func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gongnoteshape *models.GongNoteShape) (Error error)
- func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) GetDB() db.DBInterface
- func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) GetGongNoteShapeDBFromGongNoteShapePtr(gongnoteshape *models.GongNoteShape) (gongnoteshapeDB *GongNoteShapeDB)
- func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) GetStage() (stage *models.Stage)
- func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gongnoteshape *models.GongNoteShape) (Error error)
- func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) RestorePhaseOne(dirPath string)
- func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) RestorePhaseTwo()
- func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoGongStructShapeStruct
- func (backRepoGongStructShape *BackRepoGongStructShapeStruct) Backup(dirPath string)
- func (backRepoGongStructShape *BackRepoGongStructShapeStruct) BackupXL(file *xlsx.File)
- func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CheckoutPhaseOne() (Error error)
- func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CheckoutPhaseOneInstance(gongstructshapeDB *GongStructShapeDB) (Error error)
- func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongstructshapeDB *GongStructShapeDB) (Error error)
- func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CommitPhaseOneInstance(gongstructshape *models.GongStructShape) (Error error)
- func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gongstructshape *models.GongStructShape) (Error error)
- func (backRepoGongStructShape *BackRepoGongStructShapeStruct) GetDB() db.DBInterface
- func (backRepoGongStructShape *BackRepoGongStructShapeStruct) GetGongStructShapeDBFromGongStructShapePtr(gongstructshape *models.GongStructShape) (gongstructshapeDB *GongStructShapeDB)
- func (backRepoGongStructShape *BackRepoGongStructShapeStruct) GetStage() (stage *models.Stage)
- func (backRepoGongStructShape *BackRepoGongStructShapeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoGongStructShape *BackRepoGongStructShapeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gongstructshape *models.GongStructShape) (Error error)
- func (backRepoGongStructShape *BackRepoGongStructShapeStruct) RestorePhaseOne(dirPath string)
- func (backRepoGongStructShape *BackRepoGongStructShapeStruct) RestorePhaseTwo()
- func (backRepoGongStructShape *BackRepoGongStructShapeStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoLinkShapeStruct
- func (backRepoLinkShape *BackRepoLinkShapeStruct) Backup(dirPath string)
- func (backRepoLinkShape *BackRepoLinkShapeStruct) BackupXL(file *xlsx.File)
- func (backRepoLinkShape *BackRepoLinkShapeStruct) CheckoutPhaseOne() (Error error)
- func (backRepoLinkShape *BackRepoLinkShapeStruct) CheckoutPhaseOneInstance(linkshapeDB *LinkShapeDB) (Error error)
- func (backRepoLinkShape *BackRepoLinkShapeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoLinkShape *BackRepoLinkShapeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, linkshapeDB *LinkShapeDB) (Error error)
- func (backRepoLinkShape *BackRepoLinkShapeStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoLinkShape *BackRepoLinkShapeStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoLinkShape *BackRepoLinkShapeStruct) CommitPhaseOneInstance(linkshape *models.LinkShape) (Error error)
- func (backRepoLinkShape *BackRepoLinkShapeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoLinkShape *BackRepoLinkShapeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, linkshape *models.LinkShape) (Error error)
- func (backRepoLinkShape *BackRepoLinkShapeStruct) GetDB() db.DBInterface
- func (backRepoLinkShape *BackRepoLinkShapeStruct) GetLinkShapeDBFromLinkShapePtr(linkshape *models.LinkShape) (linkshapeDB *LinkShapeDB)
- func (backRepoLinkShape *BackRepoLinkShapeStruct) GetStage() (stage *models.Stage)
- func (backRepoLinkShape *BackRepoLinkShapeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoLinkShape *BackRepoLinkShapeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, linkshape *models.LinkShape) (Error error)
- func (backRepoLinkShape *BackRepoLinkShapeStruct) RestorePhaseOne(dirPath string)
- func (backRepoLinkShape *BackRepoLinkShapeStruct) RestorePhaseTwo()
- func (backRepoLinkShape *BackRepoLinkShapeStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoStruct
- func (backRepo *BackRepoStruct) Backup(stage *models.Stage, dirPath string)
- func (backRepo *BackRepoStruct) BackupXL(stage *models.Stage, dirPath string)
- func (backRepo *BackRepoStruct) Checkout(stage *models.Stage)
- func (backRepo *BackRepoStruct) CheckoutAttributeShape(attributeshape *models.AttributeShape)
- func (backRepo *BackRepoStruct) CheckoutClassdiagram(classdiagram *models.Classdiagram)
- func (backRepo *BackRepoStruct) CheckoutDiagramPackage(diagrampackage *models.DiagramPackage)
- func (backRepo *BackRepoStruct) CheckoutGongEnumShape(gongenumshape *models.GongEnumShape)
- func (backRepo *BackRepoStruct) CheckoutGongEnumValueShape(gongenumvalueshape *models.GongEnumValueShape)
- func (backRepo *BackRepoStruct) CheckoutGongNoteLinkShape(gongnotelinkshape *models.GongNoteLinkShape)
- func (backRepo *BackRepoStruct) CheckoutGongNoteShape(gongnoteshape *models.GongNoteShape)
- func (backRepo *BackRepoStruct) CheckoutGongStructShape(gongstructshape *models.GongStructShape)
- func (backRepo *BackRepoStruct) CheckoutLinkShape(linkshape *models.LinkShape)
- func (backRepo *BackRepoStruct) Commit(stage *models.Stage)
- func (backRepo *BackRepoStruct) CommitAttributeShape(attributeshape *models.AttributeShape)
- func (backRepo *BackRepoStruct) CommitClassdiagram(classdiagram *models.Classdiagram)
- func (backRepo *BackRepoStruct) CommitDiagramPackage(diagrampackage *models.DiagramPackage)
- func (backRepo *BackRepoStruct) CommitGongEnumShape(gongenumshape *models.GongEnumShape)
- func (backRepo *BackRepoStruct) CommitGongEnumValueShape(gongenumvalueshape *models.GongEnumValueShape)
- func (backRepo *BackRepoStruct) CommitGongNoteLinkShape(gongnotelinkshape *models.GongNoteLinkShape)
- func (backRepo *BackRepoStruct) CommitGongNoteShape(gongnoteshape *models.GongNoteShape)
- func (backRepo *BackRepoStruct) CommitGongStructShape(gongstructshape *models.GongStructShape)
- func (backRepo *BackRepoStruct) CommitLinkShape(linkshape *models.LinkShape)
- func (backRepo *BackRepoStruct) GetLastCommitFromBackNb() uint
- func (backRepo *BackRepoStruct) GetLastPushFromFrontNb() uint
- func (backRepo *BackRepoStruct) GetStage() (stage *models.Stage)
- func (backRepo *BackRepoStruct) IncrementCommitFromBackNb() uint
- func (backRepo *BackRepoStruct) IncrementPushFromFrontNb() uint
- func (backRepo *BackRepoStruct) Restore(stage *models.Stage, dirPath string)
- func (backRepo *BackRepoStruct) RestoreXL(stage *models.Stage, dirPath string)
- func (backRepoStruct *BackRepoStruct) SubscribeToCommitNb(ctx context.Context) <-chan int
- type ClassdiagramAPI
- type ClassdiagramDB
- func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsFromClassdiagram(classdiagram *models.Classdiagram)
- func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsFromClassdiagramWOP(classdiagram *ClassdiagramWOP)
- func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsFromClassdiagram_WOP(classdiagram *models.Classdiagram_WOP)
- func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsToClassdiagram(classdiagram *models.Classdiagram)
- func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsToClassdiagramWOP(classdiagram *ClassdiagramWOP)
- func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsToClassdiagram_WOP(classdiagram *models.Classdiagram_WOP)
- func (classdiagramDB *ClassdiagramDB) DecodePointers(backRepo *BackRepoStruct, classdiagram *models.Classdiagram)
- type ClassdiagramDBResponse
- type ClassdiagramDBs
- type ClassdiagramPointersEncoding
- type ClassdiagramWOP
- type DBLite
- func (db *DBLite) Create(instanceDB any) (db.DBInterface, error)
- func (db *DBLite) Delete(instanceDB any) (db.DBInterface, error)
- func (db *DBLite) Find(instanceDBs any) (db.DBInterface, error)
- func (db *DBLite) First(instanceDB any, conds ...any) (db.DBInterface, error)
- func (db *DBLite) Model(instanceDB any) (db.DBInterface, error)
- func (db *DBLite) Save(instanceDB any) (db.DBInterface, error)
- func (db *DBLite) Unscoped() (db.DBInterface, error)
- func (db *DBLite) Updates(instanceDB any) (db.DBInterface, error)
- type DiagramPackageAPI
- type DiagramPackageDB
- func (diagrampackageDB *DiagramPackageDB) CopyBasicFieldsFromDiagramPackage(diagrampackage *models.DiagramPackage)
- func (diagrampackageDB *DiagramPackageDB) CopyBasicFieldsFromDiagramPackageWOP(diagrampackage *DiagramPackageWOP)
- func (diagrampackageDB *DiagramPackageDB) CopyBasicFieldsFromDiagramPackage_WOP(diagrampackage *models.DiagramPackage_WOP)
- func (diagrampackageDB *DiagramPackageDB) CopyBasicFieldsToDiagramPackage(diagrampackage *models.DiagramPackage)
- func (diagrampackageDB *DiagramPackageDB) CopyBasicFieldsToDiagramPackageWOP(diagrampackage *DiagramPackageWOP)
- func (diagrampackageDB *DiagramPackageDB) CopyBasicFieldsToDiagramPackage_WOP(diagrampackage *models.DiagramPackage_WOP)
- func (diagrampackageDB *DiagramPackageDB) DecodePointers(backRepo *BackRepoStruct, diagrampackage *models.DiagramPackage)
- type DiagramPackageDBResponse
- type DiagramPackageDBs
- type DiagramPackagePointersEncoding
- type DiagramPackageWOP
- type GongEnumShapeAPI
- type GongEnumShapeDB
- func (gongenumshapeDB *GongEnumShapeDB) CopyBasicFieldsFromGongEnumShape(gongenumshape *models.GongEnumShape)
- func (gongenumshapeDB *GongEnumShapeDB) CopyBasicFieldsFromGongEnumShapeWOP(gongenumshape *GongEnumShapeWOP)
- func (gongenumshapeDB *GongEnumShapeDB) CopyBasicFieldsFromGongEnumShape_WOP(gongenumshape *models.GongEnumShape_WOP)
- func (gongenumshapeDB *GongEnumShapeDB) CopyBasicFieldsToGongEnumShape(gongenumshape *models.GongEnumShape)
- func (gongenumshapeDB *GongEnumShapeDB) CopyBasicFieldsToGongEnumShapeWOP(gongenumshape *GongEnumShapeWOP)
- func (gongenumshapeDB *GongEnumShapeDB) CopyBasicFieldsToGongEnumShape_WOP(gongenumshape *models.GongEnumShape_WOP)
- func (gongenumshapeDB *GongEnumShapeDB) DecodePointers(backRepo *BackRepoStruct, gongenumshape *models.GongEnumShape)
- type GongEnumShapeDBResponse
- type GongEnumShapeDBs
- type GongEnumShapePointersEncoding
- type GongEnumShapeWOP
- type GongEnumValueShapeAPI
- type GongEnumValueShapeDB
- func (gongenumvalueshapeDB *GongEnumValueShapeDB) CopyBasicFieldsFromGongEnumValueShape(gongenumvalueshape *models.GongEnumValueShape)
- func (gongenumvalueshapeDB *GongEnumValueShapeDB) CopyBasicFieldsFromGongEnumValueShapeWOP(gongenumvalueshape *GongEnumValueShapeWOP)
- func (gongenumvalueshapeDB *GongEnumValueShapeDB) CopyBasicFieldsFromGongEnumValueShape_WOP(gongenumvalueshape *models.GongEnumValueShape_WOP)
- func (gongenumvalueshapeDB *GongEnumValueShapeDB) CopyBasicFieldsToGongEnumValueShape(gongenumvalueshape *models.GongEnumValueShape)
- func (gongenumvalueshapeDB *GongEnumValueShapeDB) CopyBasicFieldsToGongEnumValueShapeWOP(gongenumvalueshape *GongEnumValueShapeWOP)
- func (gongenumvalueshapeDB *GongEnumValueShapeDB) CopyBasicFieldsToGongEnumValueShape_WOP(gongenumvalueshape *models.GongEnumValueShape_WOP)
- func (gongenumvalueshapeDB *GongEnumValueShapeDB) DecodePointers(backRepo *BackRepoStruct, gongenumvalueshape *models.GongEnumValueShape)
- type GongEnumValueShapeDBResponse
- type GongEnumValueShapeDBs
- type GongEnumValueShapePointersEncoding
- type GongEnumValueShapeWOP
- type GongNoteLinkShapeAPI
- type GongNoteLinkShapeDB
- func (gongnotelinkshapeDB *GongNoteLinkShapeDB) CopyBasicFieldsFromGongNoteLinkShape(gongnotelinkshape *models.GongNoteLinkShape)
- func (gongnotelinkshapeDB *GongNoteLinkShapeDB) CopyBasicFieldsFromGongNoteLinkShapeWOP(gongnotelinkshape *GongNoteLinkShapeWOP)
- func (gongnotelinkshapeDB *GongNoteLinkShapeDB) CopyBasicFieldsFromGongNoteLinkShape_WOP(gongnotelinkshape *models.GongNoteLinkShape_WOP)
- func (gongnotelinkshapeDB *GongNoteLinkShapeDB) CopyBasicFieldsToGongNoteLinkShape(gongnotelinkshape *models.GongNoteLinkShape)
- func (gongnotelinkshapeDB *GongNoteLinkShapeDB) CopyBasicFieldsToGongNoteLinkShapeWOP(gongnotelinkshape *GongNoteLinkShapeWOP)
- func (gongnotelinkshapeDB *GongNoteLinkShapeDB) CopyBasicFieldsToGongNoteLinkShape_WOP(gongnotelinkshape *models.GongNoteLinkShape_WOP)
- func (gongnotelinkshapeDB *GongNoteLinkShapeDB) DecodePointers(backRepo *BackRepoStruct, gongnotelinkshape *models.GongNoteLinkShape)
- type GongNoteLinkShapeDBResponse
- type GongNoteLinkShapeDBs
- type GongNoteLinkShapePointersEncoding
- type GongNoteLinkShapeWOP
- type GongNoteShapeAPI
- type GongNoteShapeDB
- func (gongnoteshapeDB *GongNoteShapeDB) CopyBasicFieldsFromGongNoteShape(gongnoteshape *models.GongNoteShape)
- func (gongnoteshapeDB *GongNoteShapeDB) CopyBasicFieldsFromGongNoteShapeWOP(gongnoteshape *GongNoteShapeWOP)
- func (gongnoteshapeDB *GongNoteShapeDB) CopyBasicFieldsFromGongNoteShape_WOP(gongnoteshape *models.GongNoteShape_WOP)
- func (gongnoteshapeDB *GongNoteShapeDB) CopyBasicFieldsToGongNoteShape(gongnoteshape *models.GongNoteShape)
- func (gongnoteshapeDB *GongNoteShapeDB) CopyBasicFieldsToGongNoteShapeWOP(gongnoteshape *GongNoteShapeWOP)
- func (gongnoteshapeDB *GongNoteShapeDB) CopyBasicFieldsToGongNoteShape_WOP(gongnoteshape *models.GongNoteShape_WOP)
- func (gongnoteshapeDB *GongNoteShapeDB) DecodePointers(backRepo *BackRepoStruct, gongnoteshape *models.GongNoteShape)
- type GongNoteShapeDBResponse
- type GongNoteShapeDBs
- type GongNoteShapePointersEncoding
- type GongNoteShapeWOP
- type GongStructShapeAPI
- type GongStructShapeDB
- func (gongstructshapeDB *GongStructShapeDB) CopyBasicFieldsFromGongStructShape(gongstructshape *models.GongStructShape)
- func (gongstructshapeDB *GongStructShapeDB) CopyBasicFieldsFromGongStructShapeWOP(gongstructshape *GongStructShapeWOP)
- func (gongstructshapeDB *GongStructShapeDB) CopyBasicFieldsFromGongStructShape_WOP(gongstructshape *models.GongStructShape_WOP)
- func (gongstructshapeDB *GongStructShapeDB) CopyBasicFieldsToGongStructShape(gongstructshape *models.GongStructShape)
- func (gongstructshapeDB *GongStructShapeDB) CopyBasicFieldsToGongStructShapeWOP(gongstructshape *GongStructShapeWOP)
- func (gongstructshapeDB *GongStructShapeDB) CopyBasicFieldsToGongStructShape_WOP(gongstructshape *models.GongStructShape_WOP)
- func (gongstructshapeDB *GongStructShapeDB) DecodePointers(backRepo *BackRepoStruct, gongstructshape *models.GongStructShape)
- type GongStructShapeDBResponse
- type GongStructShapeDBs
- type GongStructShapePointersEncoding
- type GongStructShapeWOP
- type GongstructDB
- type IntSlice
- type LinkShapeAPI
- type LinkShapeDB
- func (linkshapeDB *LinkShapeDB) CopyBasicFieldsFromLinkShape(linkshape *models.LinkShape)
- func (linkshapeDB *LinkShapeDB) CopyBasicFieldsFromLinkShapeWOP(linkshape *LinkShapeWOP)
- func (linkshapeDB *LinkShapeDB) CopyBasicFieldsFromLinkShape_WOP(linkshape *models.LinkShape_WOP)
- func (linkshapeDB *LinkShapeDB) CopyBasicFieldsToLinkShape(linkshape *models.LinkShape)
- func (linkshapeDB *LinkShapeDB) CopyBasicFieldsToLinkShapeWOP(linkshape *LinkShapeWOP)
- func (linkshapeDB *LinkShapeDB) CopyBasicFieldsToLinkShape_WOP(linkshape *models.LinkShape_WOP)
- func (linkshapeDB *LinkShapeDB) DecodePointers(backRepo *BackRepoStruct, linkshape *models.LinkShape)
- type LinkShapeDBResponse
- type LinkShapeDBs
- type LinkShapePointersEncoding
- type LinkShapeWOP
Constants ¶
This section is empty.
Variables ¶
var AttributeShape_Fields = []string{
"ID",
"Name",
"IdentifierMeta",
"FieldTypeAsString",
"Structname",
"Fieldtypename",
}
var BackRepoAttributeShapeid_atBckpTime_newID map[uint]uint
this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering
var BackRepoClassdiagramid_atBckpTime_newID map[uint]uint
this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering
var BackRepoDiagramPackageid_atBckpTime_newID map[uint]uint
this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering
var BackRepoGongEnumShapeid_atBckpTime_newID map[uint]uint
this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering
var BackRepoGongEnumValueShapeid_atBckpTime_newID map[uint]uint
this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering
var BackRepoGongNoteLinkShapeid_atBckpTime_newID map[uint]uint
this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering
var BackRepoGongNoteShapeid_atBckpTime_newID map[uint]uint
this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering
var BackRepoGongStructShapeid_atBckpTime_newID map[uint]uint
this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering
var BackRepoLinkShapeid_atBckpTime_newID map[uint]uint
this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering
var Classdiagram_Fields = []string{
"ID",
"Name",
"Description",
"IsIncludedInStaticWebSite",
"ShowNbInstances",
"ShowMultiplicity",
"ShowLinkNames",
"IsInRenameMode",
"IsExpanded",
"NodeGongStructsIsExpanded",
"NodeGongStructNodeExpansion",
"NodeGongEnumsIsExpanded",
"NodeGongEnumNodeExpansion",
"NodeGongNotesIsExpanded",
"NodeGongNoteNodeExpansion",
}
var DiagramPackage_Fields = []string{
"ID",
"Name",
"Path",
"GongModelPath",
"AbsolutePathToDiagramPackage",
}
var GongEnumShape_Fields = []string{
"ID",
"Name",
"X",
"Y",
"IdentifierMeta",
"Width",
"Height",
"IsExpanded",
}
var GongEnumValueShape_Fields = []string{
"ID",
"Name",
"IdentifierMeta",
}
var GongNoteLinkShape_Fields = []string{
"ID",
"Name",
"Identifier",
"Type",
}
var GongNoteShape_Fields = []string{
"ID",
"Name",
"Identifier",
"Body",
"BodyHTML",
"X",
"Y",
"Width",
"Height",
"Matched",
"IsExpanded",
}
var GongStructShape_Fields = []string{
"ID",
"Name",
"X",
"Y",
"IdentifierMeta",
"Width",
"Height",
"IsSelected",
}
var LinkShape_Fields = []string{
"ID",
"Name",
"IdentifierMeta",
"FieldTypeIdentifierMeta",
"FieldOffsetX",
"FieldOffsetY",
"TargetMultiplicity",
"TargetMultiplicityOffsetX",
"TargetMultiplicityOffsetY",
"SourceMultiplicity",
"SourceMultiplicityOffsetX",
"SourceMultiplicityOffsetY",
"X",
"Y",
"StartOrientation",
"StartRatio",
"EndOrientation",
"EndRatio",
"CornerOffsetRatio",
}
Functions ¶
func CopyBackRepoToBackRepoData ¶
func CopyBackRepoToBackRepoData(backRepo *BackRepoStruct, backRepoData *BackRepoData)
func GetID ¶
func GetID[T models.Gongstruct]( stage *models.Stage, backRepo *BackRepoStruct, instance *T) (id int)
func GetIDPointer ¶
func GetIDPointer[T models.PointerToGongstruct]( stage *models.Stage, backRepo *BackRepoStruct, instance T) (id int)
func GetInstanceDBFromInstance ¶
func GetInstanceDBFromInstance[T models.Gongstruct, T2 GongstructDB]( stage *models.Stage, backRepo *BackRepoStruct, instance *T) (ret *T2)
Types ¶
type AttributeShapeAPI ¶
type AttributeShapeAPI struct {
gorm.Model
models.AttributeShape_WOP
// encoding of pointers
// for API, it cannot be embedded
AttributeShapePointersEncoding AttributeShapePointersEncoding
}
AttributeShapeAPI is the input in POST API
for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations
swagger:model attributeshapeAPI
type AttributeShapeDB ¶
type AttributeShapeDB struct {
gorm.Model
// Declation for basic field attributeshapeDB.Name
Name_Data sql.NullString
// Declation for basic field attributeshapeDB.FieldTypeAsString
FieldTypeAsString_Data sql.NullString
// Declation for basic field attributeshapeDB.Structname
Structname_Data sql.NullString
// Declation for basic field attributeshapeDB.Fieldtypename
Fieldtypename_Data sql.NullString
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
AttributeShapePointersEncoding
}
AttributeShapeDB describes a attributeshape in the database
It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers
swagger:model attributeshapeDB
func (*AttributeShapeDB) CopyBasicFieldsFromAttributeShape ¶
func (attributeshapeDB *AttributeShapeDB) CopyBasicFieldsFromAttributeShape(attributeshape *models.AttributeShape)
CopyBasicFieldsFromAttributeShape
func (*AttributeShapeDB) CopyBasicFieldsFromAttributeShapeWOP ¶
func (attributeshapeDB *AttributeShapeDB) CopyBasicFieldsFromAttributeShapeWOP(attributeshape *AttributeShapeWOP)
CopyBasicFieldsFromAttributeShapeWOP
func (*AttributeShapeDB) CopyBasicFieldsFromAttributeShape_WOP ¶
func (attributeshapeDB *AttributeShapeDB) CopyBasicFieldsFromAttributeShape_WOP(attributeshape *models.AttributeShape_WOP)
CopyBasicFieldsFromAttributeShape_WOP
func (*AttributeShapeDB) CopyBasicFieldsToAttributeShape ¶
func (attributeshapeDB *AttributeShapeDB) CopyBasicFieldsToAttributeShape(attributeshape *models.AttributeShape)
CopyBasicFieldsToAttributeShape
func (*AttributeShapeDB) CopyBasicFieldsToAttributeShapeWOP ¶
func (attributeshapeDB *AttributeShapeDB) CopyBasicFieldsToAttributeShapeWOP(attributeshape *AttributeShapeWOP)
CopyBasicFieldsToAttributeShapeWOP
func (*AttributeShapeDB) CopyBasicFieldsToAttributeShape_WOP ¶
func (attributeshapeDB *AttributeShapeDB) CopyBasicFieldsToAttributeShape_WOP(attributeshape *models.AttributeShape_WOP)
CopyBasicFieldsToAttributeShape_WOP
func (*AttributeShapeDB) DecodePointers ¶
func (attributeshapeDB *AttributeShapeDB) DecodePointers(backRepo *BackRepoStruct, attributeshape *models.AttributeShape)
type AttributeShapeDBResponse ¶
type AttributeShapeDBResponse struct {
AttributeShapeDB
}
AttributeShapeDBResponse provides response swagger:response attributeshapeDBResponse
type AttributeShapeDBs ¶
type AttributeShapeDBs []AttributeShapeDB
AttributeShapeDBs arrays attributeshapeDBs swagger:response attributeshapeDBsResponse
type AttributeShapePointersEncoding ¶
type AttributeShapePointersEncoding struct {
}
AttributeShapePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type AttributeShapeWOP ¶
type AttributeShapeWOP struct {
ID int `xlsx:"0"`
Name string `xlsx:"1"`
IdentifierMeta any `xlsx:"2"`
FieldTypeAsString string `xlsx:"3"`
Structname string `xlsx:"4"`
Fieldtypename string `xlsx:"5"`
}
AttributeShapeWOP is a AttributeShape without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type BackRepoAttributeShapeStruct ¶
type BackRepoAttributeShapeStruct struct {
// stores AttributeShapeDB according to their gorm ID
Map_AttributeShapeDBID_AttributeShapeDB map[uint]*AttributeShapeDB
// stores AttributeShapeDB ID according to AttributeShape address
Map_AttributeShapePtr_AttributeShapeDBID map[*models.AttributeShape]uint
// stores AttributeShape according to their gorm ID
Map_AttributeShapeDBID_AttributeShapePtr map[uint]*models.AttributeShape
// contains filtered or unexported fields
}
func (*BackRepoAttributeShapeStruct) Backup ¶
func (backRepoAttributeShape *BackRepoAttributeShapeStruct) Backup(dirPath string)
Backup generates a json file from a slice of all AttributeShapeDB instances in the backrepo
func (*BackRepoAttributeShapeStruct) BackupXL ¶
func (backRepoAttributeShape *BackRepoAttributeShapeStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all AttributeShapeDB instances in the backrepo
func (*BackRepoAttributeShapeStruct) CheckoutPhaseOne ¶
func (backRepoAttributeShape *BackRepoAttributeShapeStruct) CheckoutPhaseOne() (Error error)
BackRepoAttributeShape.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage
Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)
func (*BackRepoAttributeShapeStruct) CheckoutPhaseOneInstance ¶
func (backRepoAttributeShape *BackRepoAttributeShapeStruct) CheckoutPhaseOneInstance(attributeshapeDB *AttributeShapeDB) (Error error)
CheckoutPhaseOneInstance takes a attributeshapeDB that has been found in the DB, updates the backRepo and stages the models version of the attributeshapeDB
func (*BackRepoAttributeShapeStruct) CheckoutPhaseTwo ¶
func (backRepoAttributeShape *BackRepoAttributeShapeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoAttributeShape.CheckoutPhaseTwo Checkouts all staged instances of AttributeShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAttributeShapeStruct) CheckoutPhaseTwoInstance ¶
func (backRepoAttributeShape *BackRepoAttributeShapeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, attributeshapeDB *AttributeShapeDB) (Error error)
BackRepoAttributeShape.CheckoutPhaseTwoInstance Checkouts staged instances of AttributeShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAttributeShapeStruct) CommitDeleteInstance ¶
func (backRepoAttributeShape *BackRepoAttributeShapeStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoAttributeShape.CommitDeleteInstance commits deletion of AttributeShape to the BackRepo
func (*BackRepoAttributeShapeStruct) CommitPhaseOne ¶
func (backRepoAttributeShape *BackRepoAttributeShapeStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoAttributeShape.CommitPhaseOne commits all staged instances of AttributeShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance
func (*BackRepoAttributeShapeStruct) CommitPhaseOneInstance ¶
func (backRepoAttributeShape *BackRepoAttributeShapeStruct) CommitPhaseOneInstance(attributeshape *models.AttributeShape) (Error error)
BackRepoAttributeShape.CommitPhaseOneInstance commits attributeshape staged instances of AttributeShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance
func (*BackRepoAttributeShapeStruct) CommitPhaseTwo ¶
func (backRepoAttributeShape *BackRepoAttributeShapeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoAttributeShape.CommitPhaseTwo commits all staged instances of AttributeShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAttributeShapeStruct) CommitPhaseTwoInstance ¶
func (backRepoAttributeShape *BackRepoAttributeShapeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, attributeshape *models.AttributeShape) (Error error)
BackRepoAttributeShape.CommitPhaseTwoInstance commits {{structname }} of models.AttributeShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAttributeShapeStruct) GetAttributeShapeDBFromAttributeShapePtr ¶
func (backRepoAttributeShape *BackRepoAttributeShapeStruct) GetAttributeShapeDBFromAttributeShapePtr(attributeshape *models.AttributeShape) (attributeshapeDB *AttributeShapeDB)
GetAttributeShapeDBFromAttributeShapePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoAttributeShapeStruct) GetDB ¶
func (backRepoAttributeShape *BackRepoAttributeShapeStruct) GetDB() db.DBInterface
func (*BackRepoAttributeShapeStruct) GetStage ¶
func (backRepoAttributeShape *BackRepoAttributeShapeStruct) GetStage() (stage *models.Stage)
func (*BackRepoAttributeShapeStruct) ResetReversePointers ¶
func (backRepoAttributeShape *BackRepoAttributeShapeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoAttributeShape.ResetReversePointers commits all staged instances of AttributeShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAttributeShapeStruct) ResetReversePointersInstance ¶
func (backRepoAttributeShape *BackRepoAttributeShapeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, attributeshape *models.AttributeShape) (Error error)
func (*BackRepoAttributeShapeStruct) RestorePhaseOne ¶
func (backRepoAttributeShape *BackRepoAttributeShapeStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "AttributeShapeDB.json" in dirPath that stores an array of AttributeShapeDB and stores it in the database the map BackRepoAttributeShapeid_atBckpTime_newID is updated accordingly
func (*BackRepoAttributeShapeStruct) RestorePhaseTwo ¶
func (backRepoAttributeShape *BackRepoAttributeShapeStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<AttributeShape>id_atBckpTime_newID to compute new index
func (*BackRepoAttributeShapeStruct) RestoreXLPhaseOne ¶
func (backRepoAttributeShape *BackRepoAttributeShapeStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "AttributeShape" sheet all AttributeShapeDB instances
type BackRepoClassdiagramStruct ¶
type BackRepoClassdiagramStruct struct {
// stores ClassdiagramDB according to their gorm ID
Map_ClassdiagramDBID_ClassdiagramDB map[uint]*ClassdiagramDB
// stores ClassdiagramDB ID according to Classdiagram address
Map_ClassdiagramPtr_ClassdiagramDBID map[*models.Classdiagram]uint
// stores Classdiagram according to their gorm ID
Map_ClassdiagramDBID_ClassdiagramPtr map[uint]*models.Classdiagram
// contains filtered or unexported fields
}
func (*BackRepoClassdiagramStruct) Backup ¶
func (backRepoClassdiagram *BackRepoClassdiagramStruct) Backup(dirPath string)
Backup generates a json file from a slice of all ClassdiagramDB instances in the backrepo
func (*BackRepoClassdiagramStruct) BackupXL ¶
func (backRepoClassdiagram *BackRepoClassdiagramStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all ClassdiagramDB instances in the backrepo
func (*BackRepoClassdiagramStruct) CheckoutPhaseOne ¶
func (backRepoClassdiagram *BackRepoClassdiagramStruct) CheckoutPhaseOne() (Error error)
BackRepoClassdiagram.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage
Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)
func (*BackRepoClassdiagramStruct) CheckoutPhaseOneInstance ¶
func (backRepoClassdiagram *BackRepoClassdiagramStruct) CheckoutPhaseOneInstance(classdiagramDB *ClassdiagramDB) (Error error)
CheckoutPhaseOneInstance takes a classdiagramDB that has been found in the DB, updates the backRepo and stages the models version of the classdiagramDB
func (*BackRepoClassdiagramStruct) CheckoutPhaseTwo ¶
func (backRepoClassdiagram *BackRepoClassdiagramStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoClassdiagram.CheckoutPhaseTwo Checkouts all staged instances of Classdiagram to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoClassdiagramStruct) CheckoutPhaseTwoInstance ¶
func (backRepoClassdiagram *BackRepoClassdiagramStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, classdiagramDB *ClassdiagramDB) (Error error)
BackRepoClassdiagram.CheckoutPhaseTwoInstance Checkouts staged instances of Classdiagram to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoClassdiagramStruct) CommitDeleteInstance ¶
func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoClassdiagram.CommitDeleteInstance commits deletion of Classdiagram to the BackRepo
func (*BackRepoClassdiagramStruct) CommitPhaseOne ¶
func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoClassdiagram.CommitPhaseOne commits all staged instances of Classdiagram to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance
func (*BackRepoClassdiagramStruct) CommitPhaseOneInstance ¶
func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitPhaseOneInstance(classdiagram *models.Classdiagram) (Error error)
BackRepoClassdiagram.CommitPhaseOneInstance commits classdiagram staged instances of Classdiagram to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance
func (*BackRepoClassdiagramStruct) CommitPhaseTwo ¶
func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoClassdiagram.CommitPhaseTwo commits all staged instances of Classdiagram to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoClassdiagramStruct) CommitPhaseTwoInstance ¶
func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, classdiagram *models.Classdiagram) (Error error)
BackRepoClassdiagram.CommitPhaseTwoInstance commits {{structname }} of models.Classdiagram to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoClassdiagramStruct) GetClassdiagramDBFromClassdiagramPtr ¶
func (backRepoClassdiagram *BackRepoClassdiagramStruct) GetClassdiagramDBFromClassdiagramPtr(classdiagram *models.Classdiagram) (classdiagramDB *ClassdiagramDB)
GetClassdiagramDBFromClassdiagramPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoClassdiagramStruct) GetDB ¶
func (backRepoClassdiagram *BackRepoClassdiagramStruct) GetDB() db.DBInterface
func (*BackRepoClassdiagramStruct) GetStage ¶
func (backRepoClassdiagram *BackRepoClassdiagramStruct) GetStage() (stage *models.Stage)
func (*BackRepoClassdiagramStruct) ResetReversePointers ¶
func (backRepoClassdiagram *BackRepoClassdiagramStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoClassdiagram.ResetReversePointers commits all staged instances of Classdiagram to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoClassdiagramStruct) ResetReversePointersInstance ¶
func (backRepoClassdiagram *BackRepoClassdiagramStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, classdiagram *models.Classdiagram) (Error error)
func (*BackRepoClassdiagramStruct) RestorePhaseOne ¶
func (backRepoClassdiagram *BackRepoClassdiagramStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "ClassdiagramDB.json" in dirPath that stores an array of ClassdiagramDB and stores it in the database the map BackRepoClassdiagramid_atBckpTime_newID is updated accordingly
func (*BackRepoClassdiagramStruct) RestorePhaseTwo ¶
func (backRepoClassdiagram *BackRepoClassdiagramStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Classdiagram>id_atBckpTime_newID to compute new index
func (*BackRepoClassdiagramStruct) RestoreXLPhaseOne ¶
func (backRepoClassdiagram *BackRepoClassdiagramStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Classdiagram" sheet all ClassdiagramDB instances
type BackRepoData ¶
type BackRepoData struct {
AttributeShapeAPIs []*AttributeShapeAPI
ClassdiagramAPIs []*ClassdiagramAPI
DiagramPackageAPIs []*DiagramPackageAPI
GongEnumShapeAPIs []*GongEnumShapeAPI
GongEnumValueShapeAPIs []*GongEnumValueShapeAPI
GongNoteLinkShapeAPIs []*GongNoteLinkShapeAPI
GongNoteShapeAPIs []*GongNoteShapeAPI
GongStructShapeAPIs []*GongStructShapeAPI
LinkShapeAPIs []*LinkShapeAPI
// index of the web socket for this stack type (unique among all stack instances)
GONG__Index int
}
type BackRepoDiagramPackageStruct ¶
type BackRepoDiagramPackageStruct struct {
// stores DiagramPackageDB according to their gorm ID
Map_DiagramPackageDBID_DiagramPackageDB map[uint]*DiagramPackageDB
// stores DiagramPackageDB ID according to DiagramPackage address
Map_DiagramPackagePtr_DiagramPackageDBID map[*models.DiagramPackage]uint
// stores DiagramPackage according to their gorm ID
Map_DiagramPackageDBID_DiagramPackagePtr map[uint]*models.DiagramPackage
// contains filtered or unexported fields
}
func (*BackRepoDiagramPackageStruct) Backup ¶
func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) Backup(dirPath string)
Backup generates a json file from a slice of all DiagramPackageDB instances in the backrepo
func (*BackRepoDiagramPackageStruct) BackupXL ¶
func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all DiagramPackageDB instances in the backrepo
func (*BackRepoDiagramPackageStruct) CheckoutPhaseOne ¶
func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CheckoutPhaseOne() (Error error)
BackRepoDiagramPackage.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage
Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)
func (*BackRepoDiagramPackageStruct) CheckoutPhaseOneInstance ¶
func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CheckoutPhaseOneInstance(diagrampackageDB *DiagramPackageDB) (Error error)
CheckoutPhaseOneInstance takes a diagrampackageDB that has been found in the DB, updates the backRepo and stages the models version of the diagrampackageDB
func (*BackRepoDiagramPackageStruct) CheckoutPhaseTwo ¶
func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoDiagramPackage.CheckoutPhaseTwo Checkouts all staged instances of DiagramPackage to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDiagramPackageStruct) CheckoutPhaseTwoInstance ¶
func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, diagrampackageDB *DiagramPackageDB) (Error error)
BackRepoDiagramPackage.CheckoutPhaseTwoInstance Checkouts staged instances of DiagramPackage to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDiagramPackageStruct) CommitDeleteInstance ¶
func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoDiagramPackage.CommitDeleteInstance commits deletion of DiagramPackage to the BackRepo
func (*BackRepoDiagramPackageStruct) CommitPhaseOne ¶
func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoDiagramPackage.CommitPhaseOne commits all staged instances of DiagramPackage to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance
func (*BackRepoDiagramPackageStruct) CommitPhaseOneInstance ¶
func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CommitPhaseOneInstance(diagrampackage *models.DiagramPackage) (Error error)
BackRepoDiagramPackage.CommitPhaseOneInstance commits diagrampackage staged instances of DiagramPackage to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance
func (*BackRepoDiagramPackageStruct) CommitPhaseTwo ¶
func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoDiagramPackage.CommitPhaseTwo commits all staged instances of DiagramPackage to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDiagramPackageStruct) CommitPhaseTwoInstance ¶
func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, diagrampackage *models.DiagramPackage) (Error error)
BackRepoDiagramPackage.CommitPhaseTwoInstance commits {{structname }} of models.DiagramPackage to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDiagramPackageStruct) GetDB ¶
func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) GetDB() db.DBInterface
func (*BackRepoDiagramPackageStruct) GetDiagramPackageDBFromDiagramPackagePtr ¶
func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) GetDiagramPackageDBFromDiagramPackagePtr(diagrampackage *models.DiagramPackage) (diagrampackageDB *DiagramPackageDB)
GetDiagramPackageDBFromDiagramPackagePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoDiagramPackageStruct) GetStage ¶
func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) GetStage() (stage *models.Stage)
func (*BackRepoDiagramPackageStruct) ResetReversePointers ¶
func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoDiagramPackage.ResetReversePointers commits all staged instances of DiagramPackage to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDiagramPackageStruct) ResetReversePointersInstance ¶
func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, diagrampackage *models.DiagramPackage) (Error error)
func (*BackRepoDiagramPackageStruct) RestorePhaseOne ¶
func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "DiagramPackageDB.json" in dirPath that stores an array of DiagramPackageDB and stores it in the database the map BackRepoDiagramPackageid_atBckpTime_newID is updated accordingly
func (*BackRepoDiagramPackageStruct) RestorePhaseTwo ¶
func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<DiagramPackage>id_atBckpTime_newID to compute new index
func (*BackRepoDiagramPackageStruct) RestoreXLPhaseOne ¶
func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "DiagramPackage" sheet all DiagramPackageDB instances
type BackRepoGongEnumShapeStruct ¶
type BackRepoGongEnumShapeStruct struct {
// stores GongEnumShapeDB according to their gorm ID
Map_GongEnumShapeDBID_GongEnumShapeDB map[uint]*GongEnumShapeDB
// stores GongEnumShapeDB ID according to GongEnumShape address
Map_GongEnumShapePtr_GongEnumShapeDBID map[*models.GongEnumShape]uint
// stores GongEnumShape according to their gorm ID
Map_GongEnumShapeDBID_GongEnumShapePtr map[uint]*models.GongEnumShape
// contains filtered or unexported fields
}
func (*BackRepoGongEnumShapeStruct) Backup ¶
func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) Backup(dirPath string)
Backup generates a json file from a slice of all GongEnumShapeDB instances in the backrepo
func (*BackRepoGongEnumShapeStruct) BackupXL ¶
func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all GongEnumShapeDB instances in the backrepo
func (*BackRepoGongEnumShapeStruct) CheckoutPhaseOne ¶
func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CheckoutPhaseOne() (Error error)
BackRepoGongEnumShape.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage
Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)
func (*BackRepoGongEnumShapeStruct) CheckoutPhaseOneInstance ¶
func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CheckoutPhaseOneInstance(gongenumshapeDB *GongEnumShapeDB) (Error error)
CheckoutPhaseOneInstance takes a gongenumshapeDB that has been found in the DB, updates the backRepo and stages the models version of the gongenumshapeDB
func (*BackRepoGongEnumShapeStruct) CheckoutPhaseTwo ¶
func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoGongEnumShape.CheckoutPhaseTwo Checkouts all staged instances of GongEnumShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongEnumShapeStruct) CheckoutPhaseTwoInstance ¶
func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongenumshapeDB *GongEnumShapeDB) (Error error)
BackRepoGongEnumShape.CheckoutPhaseTwoInstance Checkouts staged instances of GongEnumShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongEnumShapeStruct) CommitDeleteInstance ¶
func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoGongEnumShape.CommitDeleteInstance commits deletion of GongEnumShape to the BackRepo
func (*BackRepoGongEnumShapeStruct) CommitPhaseOne ¶
func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoGongEnumShape.CommitPhaseOne commits all staged instances of GongEnumShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance
func (*BackRepoGongEnumShapeStruct) CommitPhaseOneInstance ¶
func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CommitPhaseOneInstance(gongenumshape *models.GongEnumShape) (Error error)
BackRepoGongEnumShape.CommitPhaseOneInstance commits gongenumshape staged instances of GongEnumShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance
func (*BackRepoGongEnumShapeStruct) CommitPhaseTwo ¶
func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoGongEnumShape.CommitPhaseTwo commits all staged instances of GongEnumShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongEnumShapeStruct) CommitPhaseTwoInstance ¶
func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gongenumshape *models.GongEnumShape) (Error error)
BackRepoGongEnumShape.CommitPhaseTwoInstance commits {{structname }} of models.GongEnumShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongEnumShapeStruct) GetDB ¶
func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) GetDB() db.DBInterface
func (*BackRepoGongEnumShapeStruct) GetGongEnumShapeDBFromGongEnumShapePtr ¶
func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) GetGongEnumShapeDBFromGongEnumShapePtr(gongenumshape *models.GongEnumShape) (gongenumshapeDB *GongEnumShapeDB)
GetGongEnumShapeDBFromGongEnumShapePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoGongEnumShapeStruct) GetStage ¶
func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) GetStage() (stage *models.Stage)
func (*BackRepoGongEnumShapeStruct) ResetReversePointers ¶
func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoGongEnumShape.ResetReversePointers commits all staged instances of GongEnumShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongEnumShapeStruct) ResetReversePointersInstance ¶
func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gongenumshape *models.GongEnumShape) (Error error)
func (*BackRepoGongEnumShapeStruct) RestorePhaseOne ¶
func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "GongEnumShapeDB.json" in dirPath that stores an array of GongEnumShapeDB and stores it in the database the map BackRepoGongEnumShapeid_atBckpTime_newID is updated accordingly
func (*BackRepoGongEnumShapeStruct) RestorePhaseTwo ¶
func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<GongEnumShape>id_atBckpTime_newID to compute new index
func (*BackRepoGongEnumShapeStruct) RestoreXLPhaseOne ¶
func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "GongEnumShape" sheet all GongEnumShapeDB instances
type BackRepoGongEnumValueShapeStruct ¶
type BackRepoGongEnumValueShapeStruct struct {
// stores GongEnumValueShapeDB according to their gorm ID
Map_GongEnumValueShapeDBID_GongEnumValueShapeDB map[uint]*GongEnumValueShapeDB
// stores GongEnumValueShapeDB ID according to GongEnumValueShape address
Map_GongEnumValueShapePtr_GongEnumValueShapeDBID map[*models.GongEnumValueShape]uint
// stores GongEnumValueShape according to their gorm ID
Map_GongEnumValueShapeDBID_GongEnumValueShapePtr map[uint]*models.GongEnumValueShape
// contains filtered or unexported fields
}
func (*BackRepoGongEnumValueShapeStruct) Backup ¶
func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) Backup(dirPath string)
Backup generates a json file from a slice of all GongEnumValueShapeDB instances in the backrepo
func (*BackRepoGongEnumValueShapeStruct) BackupXL ¶
func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all GongEnumValueShapeDB instances in the backrepo
func (*BackRepoGongEnumValueShapeStruct) CheckoutPhaseOne ¶
func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) CheckoutPhaseOne() (Error error)
BackRepoGongEnumValueShape.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage
Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)
func (*BackRepoGongEnumValueShapeStruct) CheckoutPhaseOneInstance ¶
func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) CheckoutPhaseOneInstance(gongenumvalueshapeDB *GongEnumValueShapeDB) (Error error)
CheckoutPhaseOneInstance takes a gongenumvalueshapeDB that has been found in the DB, updates the backRepo and stages the models version of the gongenumvalueshapeDB
func (*BackRepoGongEnumValueShapeStruct) CheckoutPhaseTwo ¶
func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoGongEnumValueShape.CheckoutPhaseTwo Checkouts all staged instances of GongEnumValueShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongEnumValueShapeStruct) CheckoutPhaseTwoInstance ¶
func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongenumvalueshapeDB *GongEnumValueShapeDB) (Error error)
BackRepoGongEnumValueShape.CheckoutPhaseTwoInstance Checkouts staged instances of GongEnumValueShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongEnumValueShapeStruct) CommitDeleteInstance ¶
func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoGongEnumValueShape.CommitDeleteInstance commits deletion of GongEnumValueShape to the BackRepo
func (*BackRepoGongEnumValueShapeStruct) CommitPhaseOne ¶
func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoGongEnumValueShape.CommitPhaseOne commits all staged instances of GongEnumValueShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance
func (*BackRepoGongEnumValueShapeStruct) CommitPhaseOneInstance ¶
func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) CommitPhaseOneInstance(gongenumvalueshape *models.GongEnumValueShape) (Error error)
BackRepoGongEnumValueShape.CommitPhaseOneInstance commits gongenumvalueshape staged instances of GongEnumValueShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance
func (*BackRepoGongEnumValueShapeStruct) CommitPhaseTwo ¶
func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoGongEnumValueShape.CommitPhaseTwo commits all staged instances of GongEnumValueShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongEnumValueShapeStruct) CommitPhaseTwoInstance ¶
func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gongenumvalueshape *models.GongEnumValueShape) (Error error)
BackRepoGongEnumValueShape.CommitPhaseTwoInstance commits {{structname }} of models.GongEnumValueShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongEnumValueShapeStruct) GetDB ¶
func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) GetDB() db.DBInterface
func (*BackRepoGongEnumValueShapeStruct) GetGongEnumValueShapeDBFromGongEnumValueShapePtr ¶
func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) GetGongEnumValueShapeDBFromGongEnumValueShapePtr(gongenumvalueshape *models.GongEnumValueShape) (gongenumvalueshapeDB *GongEnumValueShapeDB)
GetGongEnumValueShapeDBFromGongEnumValueShapePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoGongEnumValueShapeStruct) GetStage ¶
func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) GetStage() (stage *models.Stage)
func (*BackRepoGongEnumValueShapeStruct) ResetReversePointers ¶
func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoGongEnumValueShape.ResetReversePointers commits all staged instances of GongEnumValueShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongEnumValueShapeStruct) ResetReversePointersInstance ¶
func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gongenumvalueshape *models.GongEnumValueShape) (Error error)
func (*BackRepoGongEnumValueShapeStruct) RestorePhaseOne ¶
func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "GongEnumValueShapeDB.json" in dirPath that stores an array of GongEnumValueShapeDB and stores it in the database the map BackRepoGongEnumValueShapeid_atBckpTime_newID is updated accordingly
func (*BackRepoGongEnumValueShapeStruct) RestorePhaseTwo ¶
func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<GongEnumValueShape>id_atBckpTime_newID to compute new index
func (*BackRepoGongEnumValueShapeStruct) RestoreXLPhaseOne ¶
func (backRepoGongEnumValueShape *BackRepoGongEnumValueShapeStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "GongEnumValueShape" sheet all GongEnumValueShapeDB instances
type BackRepoGongNoteLinkShapeStruct ¶
type BackRepoGongNoteLinkShapeStruct struct {
// stores GongNoteLinkShapeDB according to their gorm ID
Map_GongNoteLinkShapeDBID_GongNoteLinkShapeDB map[uint]*GongNoteLinkShapeDB
// stores GongNoteLinkShapeDB ID according to GongNoteLinkShape address
Map_GongNoteLinkShapePtr_GongNoteLinkShapeDBID map[*models.GongNoteLinkShape]uint
// stores GongNoteLinkShape according to their gorm ID
Map_GongNoteLinkShapeDBID_GongNoteLinkShapePtr map[uint]*models.GongNoteLinkShape
// contains filtered or unexported fields
}
func (*BackRepoGongNoteLinkShapeStruct) Backup ¶
func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) Backup(dirPath string)
Backup generates a json file from a slice of all GongNoteLinkShapeDB instances in the backrepo
func (*BackRepoGongNoteLinkShapeStruct) BackupXL ¶
func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all GongNoteLinkShapeDB instances in the backrepo
func (*BackRepoGongNoteLinkShapeStruct) CheckoutPhaseOne ¶
func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) CheckoutPhaseOne() (Error error)
BackRepoGongNoteLinkShape.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage
Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)
func (*BackRepoGongNoteLinkShapeStruct) CheckoutPhaseOneInstance ¶
func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) CheckoutPhaseOneInstance(gongnotelinkshapeDB *GongNoteLinkShapeDB) (Error error)
CheckoutPhaseOneInstance takes a gongnotelinkshapeDB that has been found in the DB, updates the backRepo and stages the models version of the gongnotelinkshapeDB
func (*BackRepoGongNoteLinkShapeStruct) CheckoutPhaseTwo ¶
func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoGongNoteLinkShape.CheckoutPhaseTwo Checkouts all staged instances of GongNoteLinkShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongNoteLinkShapeStruct) CheckoutPhaseTwoInstance ¶
func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongnotelinkshapeDB *GongNoteLinkShapeDB) (Error error)
BackRepoGongNoteLinkShape.CheckoutPhaseTwoInstance Checkouts staged instances of GongNoteLinkShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongNoteLinkShapeStruct) CommitDeleteInstance ¶
func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoGongNoteLinkShape.CommitDeleteInstance commits deletion of GongNoteLinkShape to the BackRepo
func (*BackRepoGongNoteLinkShapeStruct) CommitPhaseOne ¶
func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoGongNoteLinkShape.CommitPhaseOne commits all staged instances of GongNoteLinkShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance
func (*BackRepoGongNoteLinkShapeStruct) CommitPhaseOneInstance ¶
func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) CommitPhaseOneInstance(gongnotelinkshape *models.GongNoteLinkShape) (Error error)
BackRepoGongNoteLinkShape.CommitPhaseOneInstance commits gongnotelinkshape staged instances of GongNoteLinkShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance
func (*BackRepoGongNoteLinkShapeStruct) CommitPhaseTwo ¶
func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoGongNoteLinkShape.CommitPhaseTwo commits all staged instances of GongNoteLinkShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongNoteLinkShapeStruct) CommitPhaseTwoInstance ¶
func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gongnotelinkshape *models.GongNoteLinkShape) (Error error)
BackRepoGongNoteLinkShape.CommitPhaseTwoInstance commits {{structname }} of models.GongNoteLinkShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongNoteLinkShapeStruct) GetDB ¶
func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) GetDB() db.DBInterface
func (*BackRepoGongNoteLinkShapeStruct) GetGongNoteLinkShapeDBFromGongNoteLinkShapePtr ¶
func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) GetGongNoteLinkShapeDBFromGongNoteLinkShapePtr(gongnotelinkshape *models.GongNoteLinkShape) (gongnotelinkshapeDB *GongNoteLinkShapeDB)
GetGongNoteLinkShapeDBFromGongNoteLinkShapePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoGongNoteLinkShapeStruct) GetStage ¶
func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) GetStage() (stage *models.Stage)
func (*BackRepoGongNoteLinkShapeStruct) ResetReversePointers ¶
func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoGongNoteLinkShape.ResetReversePointers commits all staged instances of GongNoteLinkShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongNoteLinkShapeStruct) ResetReversePointersInstance ¶
func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gongnotelinkshape *models.GongNoteLinkShape) (Error error)
func (*BackRepoGongNoteLinkShapeStruct) RestorePhaseOne ¶
func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "GongNoteLinkShapeDB.json" in dirPath that stores an array of GongNoteLinkShapeDB and stores it in the database the map BackRepoGongNoteLinkShapeid_atBckpTime_newID is updated accordingly
func (*BackRepoGongNoteLinkShapeStruct) RestorePhaseTwo ¶
func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<GongNoteLinkShape>id_atBckpTime_newID to compute new index
func (*BackRepoGongNoteLinkShapeStruct) RestoreXLPhaseOne ¶
func (backRepoGongNoteLinkShape *BackRepoGongNoteLinkShapeStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "GongNoteLinkShape" sheet all GongNoteLinkShapeDB instances
type BackRepoGongNoteShapeStruct ¶
type BackRepoGongNoteShapeStruct struct {
// stores GongNoteShapeDB according to their gorm ID
Map_GongNoteShapeDBID_GongNoteShapeDB map[uint]*GongNoteShapeDB
// stores GongNoteShapeDB ID according to GongNoteShape address
Map_GongNoteShapePtr_GongNoteShapeDBID map[*models.GongNoteShape]uint
// stores GongNoteShape according to their gorm ID
Map_GongNoteShapeDBID_GongNoteShapePtr map[uint]*models.GongNoteShape
// contains filtered or unexported fields
}
func (*BackRepoGongNoteShapeStruct) Backup ¶
func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) Backup(dirPath string)
Backup generates a json file from a slice of all GongNoteShapeDB instances in the backrepo
func (*BackRepoGongNoteShapeStruct) BackupXL ¶
func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all GongNoteShapeDB instances in the backrepo
func (*BackRepoGongNoteShapeStruct) CheckoutPhaseOne ¶
func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) CheckoutPhaseOne() (Error error)
BackRepoGongNoteShape.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage
Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)
func (*BackRepoGongNoteShapeStruct) CheckoutPhaseOneInstance ¶
func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) CheckoutPhaseOneInstance(gongnoteshapeDB *GongNoteShapeDB) (Error error)
CheckoutPhaseOneInstance takes a gongnoteshapeDB that has been found in the DB, updates the backRepo and stages the models version of the gongnoteshapeDB
func (*BackRepoGongNoteShapeStruct) CheckoutPhaseTwo ¶
func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoGongNoteShape.CheckoutPhaseTwo Checkouts all staged instances of GongNoteShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongNoteShapeStruct) CheckoutPhaseTwoInstance ¶
func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongnoteshapeDB *GongNoteShapeDB) (Error error)
BackRepoGongNoteShape.CheckoutPhaseTwoInstance Checkouts staged instances of GongNoteShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongNoteShapeStruct) CommitDeleteInstance ¶
func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoGongNoteShape.CommitDeleteInstance commits deletion of GongNoteShape to the BackRepo
func (*BackRepoGongNoteShapeStruct) CommitPhaseOne ¶
func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoGongNoteShape.CommitPhaseOne commits all staged instances of GongNoteShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance
func (*BackRepoGongNoteShapeStruct) CommitPhaseOneInstance ¶
func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) CommitPhaseOneInstance(gongnoteshape *models.GongNoteShape) (Error error)
BackRepoGongNoteShape.CommitPhaseOneInstance commits gongnoteshape staged instances of GongNoteShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance
func (*BackRepoGongNoteShapeStruct) CommitPhaseTwo ¶
func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoGongNoteShape.CommitPhaseTwo commits all staged instances of GongNoteShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongNoteShapeStruct) CommitPhaseTwoInstance ¶
func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gongnoteshape *models.GongNoteShape) (Error error)
BackRepoGongNoteShape.CommitPhaseTwoInstance commits {{structname }} of models.GongNoteShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongNoteShapeStruct) GetDB ¶
func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) GetDB() db.DBInterface
func (*BackRepoGongNoteShapeStruct) GetGongNoteShapeDBFromGongNoteShapePtr ¶
func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) GetGongNoteShapeDBFromGongNoteShapePtr(gongnoteshape *models.GongNoteShape) (gongnoteshapeDB *GongNoteShapeDB)
GetGongNoteShapeDBFromGongNoteShapePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoGongNoteShapeStruct) GetStage ¶
func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) GetStage() (stage *models.Stage)
func (*BackRepoGongNoteShapeStruct) ResetReversePointers ¶
func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoGongNoteShape.ResetReversePointers commits all staged instances of GongNoteShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongNoteShapeStruct) ResetReversePointersInstance ¶
func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gongnoteshape *models.GongNoteShape) (Error error)
func (*BackRepoGongNoteShapeStruct) RestorePhaseOne ¶
func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "GongNoteShapeDB.json" in dirPath that stores an array of GongNoteShapeDB and stores it in the database the map BackRepoGongNoteShapeid_atBckpTime_newID is updated accordingly
func (*BackRepoGongNoteShapeStruct) RestorePhaseTwo ¶
func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<GongNoteShape>id_atBckpTime_newID to compute new index
func (*BackRepoGongNoteShapeStruct) RestoreXLPhaseOne ¶
func (backRepoGongNoteShape *BackRepoGongNoteShapeStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "GongNoteShape" sheet all GongNoteShapeDB instances
type BackRepoGongStructShapeStruct ¶
type BackRepoGongStructShapeStruct struct {
// stores GongStructShapeDB according to their gorm ID
Map_GongStructShapeDBID_GongStructShapeDB map[uint]*GongStructShapeDB
// stores GongStructShapeDB ID according to GongStructShape address
Map_GongStructShapePtr_GongStructShapeDBID map[*models.GongStructShape]uint
// stores GongStructShape according to their gorm ID
Map_GongStructShapeDBID_GongStructShapePtr map[uint]*models.GongStructShape
// contains filtered or unexported fields
}
func (*BackRepoGongStructShapeStruct) Backup ¶
func (backRepoGongStructShape *BackRepoGongStructShapeStruct) Backup(dirPath string)
Backup generates a json file from a slice of all GongStructShapeDB instances in the backrepo
func (*BackRepoGongStructShapeStruct) BackupXL ¶
func (backRepoGongStructShape *BackRepoGongStructShapeStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all GongStructShapeDB instances in the backrepo
func (*BackRepoGongStructShapeStruct) CheckoutPhaseOne ¶
func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CheckoutPhaseOne() (Error error)
BackRepoGongStructShape.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage
Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)
func (*BackRepoGongStructShapeStruct) CheckoutPhaseOneInstance ¶
func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CheckoutPhaseOneInstance(gongstructshapeDB *GongStructShapeDB) (Error error)
CheckoutPhaseOneInstance takes a gongstructshapeDB that has been found in the DB, updates the backRepo and stages the models version of the gongstructshapeDB
func (*BackRepoGongStructShapeStruct) CheckoutPhaseTwo ¶
func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoGongStructShape.CheckoutPhaseTwo Checkouts all staged instances of GongStructShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongStructShapeStruct) CheckoutPhaseTwoInstance ¶
func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongstructshapeDB *GongStructShapeDB) (Error error)
BackRepoGongStructShape.CheckoutPhaseTwoInstance Checkouts staged instances of GongStructShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongStructShapeStruct) CommitDeleteInstance ¶
func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoGongStructShape.CommitDeleteInstance commits deletion of GongStructShape to the BackRepo
func (*BackRepoGongStructShapeStruct) CommitPhaseOne ¶
func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoGongStructShape.CommitPhaseOne commits all staged instances of GongStructShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance
func (*BackRepoGongStructShapeStruct) CommitPhaseOneInstance ¶
func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CommitPhaseOneInstance(gongstructshape *models.GongStructShape) (Error error)
BackRepoGongStructShape.CommitPhaseOneInstance commits gongstructshape staged instances of GongStructShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance
func (*BackRepoGongStructShapeStruct) CommitPhaseTwo ¶
func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoGongStructShape.CommitPhaseTwo commits all staged instances of GongStructShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongStructShapeStruct) CommitPhaseTwoInstance ¶
func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gongstructshape *models.GongStructShape) (Error error)
BackRepoGongStructShape.CommitPhaseTwoInstance commits {{structname }} of models.GongStructShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongStructShapeStruct) GetDB ¶
func (backRepoGongStructShape *BackRepoGongStructShapeStruct) GetDB() db.DBInterface
func (*BackRepoGongStructShapeStruct) GetGongStructShapeDBFromGongStructShapePtr ¶
func (backRepoGongStructShape *BackRepoGongStructShapeStruct) GetGongStructShapeDBFromGongStructShapePtr(gongstructshape *models.GongStructShape) (gongstructshapeDB *GongStructShapeDB)
GetGongStructShapeDBFromGongStructShapePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoGongStructShapeStruct) GetStage ¶
func (backRepoGongStructShape *BackRepoGongStructShapeStruct) GetStage() (stage *models.Stage)
func (*BackRepoGongStructShapeStruct) ResetReversePointers ¶
func (backRepoGongStructShape *BackRepoGongStructShapeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoGongStructShape.ResetReversePointers commits all staged instances of GongStructShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGongStructShapeStruct) ResetReversePointersInstance ¶
func (backRepoGongStructShape *BackRepoGongStructShapeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gongstructshape *models.GongStructShape) (Error error)
func (*BackRepoGongStructShapeStruct) RestorePhaseOne ¶
func (backRepoGongStructShape *BackRepoGongStructShapeStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "GongStructShapeDB.json" in dirPath that stores an array of GongStructShapeDB and stores it in the database the map BackRepoGongStructShapeid_atBckpTime_newID is updated accordingly
func (*BackRepoGongStructShapeStruct) RestorePhaseTwo ¶
func (backRepoGongStructShape *BackRepoGongStructShapeStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<GongStructShape>id_atBckpTime_newID to compute new index
func (*BackRepoGongStructShapeStruct) RestoreXLPhaseOne ¶
func (backRepoGongStructShape *BackRepoGongStructShapeStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "GongStructShape" sheet all GongStructShapeDB instances
type BackRepoLinkShapeStruct ¶
type BackRepoLinkShapeStruct struct {
// stores LinkShapeDB according to their gorm ID
Map_LinkShapeDBID_LinkShapeDB map[uint]*LinkShapeDB
// stores LinkShapeDB ID according to LinkShape address
Map_LinkShapePtr_LinkShapeDBID map[*models.LinkShape]uint
// stores LinkShape according to their gorm ID
Map_LinkShapeDBID_LinkShapePtr map[uint]*models.LinkShape
// contains filtered or unexported fields
}
func (*BackRepoLinkShapeStruct) Backup ¶
func (backRepoLinkShape *BackRepoLinkShapeStruct) Backup(dirPath string)
Backup generates a json file from a slice of all LinkShapeDB instances in the backrepo
func (*BackRepoLinkShapeStruct) BackupXL ¶
func (backRepoLinkShape *BackRepoLinkShapeStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all LinkShapeDB instances in the backrepo
func (*BackRepoLinkShapeStruct) CheckoutPhaseOne ¶
func (backRepoLinkShape *BackRepoLinkShapeStruct) CheckoutPhaseOne() (Error error)
BackRepoLinkShape.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage
Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)
func (*BackRepoLinkShapeStruct) CheckoutPhaseOneInstance ¶
func (backRepoLinkShape *BackRepoLinkShapeStruct) CheckoutPhaseOneInstance(linkshapeDB *LinkShapeDB) (Error error)
CheckoutPhaseOneInstance takes a linkshapeDB that has been found in the DB, updates the backRepo and stages the models version of the linkshapeDB
func (*BackRepoLinkShapeStruct) CheckoutPhaseTwo ¶
func (backRepoLinkShape *BackRepoLinkShapeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoLinkShape.CheckoutPhaseTwo Checkouts all staged instances of LinkShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLinkShapeStruct) CheckoutPhaseTwoInstance ¶
func (backRepoLinkShape *BackRepoLinkShapeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, linkshapeDB *LinkShapeDB) (Error error)
BackRepoLinkShape.CheckoutPhaseTwoInstance Checkouts staged instances of LinkShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLinkShapeStruct) CommitDeleteInstance ¶
func (backRepoLinkShape *BackRepoLinkShapeStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoLinkShape.CommitDeleteInstance commits deletion of LinkShape to the BackRepo
func (*BackRepoLinkShapeStruct) CommitPhaseOne ¶
func (backRepoLinkShape *BackRepoLinkShapeStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoLinkShape.CommitPhaseOne commits all staged instances of LinkShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance
func (*BackRepoLinkShapeStruct) CommitPhaseOneInstance ¶
func (backRepoLinkShape *BackRepoLinkShapeStruct) CommitPhaseOneInstance(linkshape *models.LinkShape) (Error error)
BackRepoLinkShape.CommitPhaseOneInstance commits linkshape staged instances of LinkShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance
func (*BackRepoLinkShapeStruct) CommitPhaseTwo ¶
func (backRepoLinkShape *BackRepoLinkShapeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoLinkShape.CommitPhaseTwo commits all staged instances of LinkShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLinkShapeStruct) CommitPhaseTwoInstance ¶
func (backRepoLinkShape *BackRepoLinkShapeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, linkshape *models.LinkShape) (Error error)
BackRepoLinkShape.CommitPhaseTwoInstance commits {{structname }} of models.LinkShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLinkShapeStruct) GetDB ¶
func (backRepoLinkShape *BackRepoLinkShapeStruct) GetDB() db.DBInterface
func (*BackRepoLinkShapeStruct) GetLinkShapeDBFromLinkShapePtr ¶
func (backRepoLinkShape *BackRepoLinkShapeStruct) GetLinkShapeDBFromLinkShapePtr(linkshape *models.LinkShape) (linkshapeDB *LinkShapeDB)
GetLinkShapeDBFromLinkShapePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoLinkShapeStruct) GetStage ¶
func (backRepoLinkShape *BackRepoLinkShapeStruct) GetStage() (stage *models.Stage)
func (*BackRepoLinkShapeStruct) ResetReversePointers ¶
func (backRepoLinkShape *BackRepoLinkShapeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoLinkShape.ResetReversePointers commits all staged instances of LinkShape to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLinkShapeStruct) ResetReversePointersInstance ¶
func (backRepoLinkShape *BackRepoLinkShapeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, linkshape *models.LinkShape) (Error error)
func (*BackRepoLinkShapeStruct) RestorePhaseOne ¶
func (backRepoLinkShape *BackRepoLinkShapeStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "LinkShapeDB.json" in dirPath that stores an array of LinkShapeDB and stores it in the database the map BackRepoLinkShapeid_atBckpTime_newID is updated accordingly
func (*BackRepoLinkShapeStruct) RestorePhaseTwo ¶
func (backRepoLinkShape *BackRepoLinkShapeStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<LinkShape>id_atBckpTime_newID to compute new index
func (*BackRepoLinkShapeStruct) RestoreXLPhaseOne ¶
func (backRepoLinkShape *BackRepoLinkShapeStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "LinkShape" sheet all LinkShapeDB instances
type BackRepoStruct ¶
type BackRepoStruct struct {
// insertion point for per struct back repo declarations
BackRepoAttributeShape BackRepoAttributeShapeStruct
BackRepoClassdiagram BackRepoClassdiagramStruct
BackRepoDiagramPackage BackRepoDiagramPackageStruct
BackRepoGongEnumShape BackRepoGongEnumShapeStruct
BackRepoGongEnumValueShape BackRepoGongEnumValueShapeStruct
BackRepoGongNoteLinkShape BackRepoGongNoteLinkShapeStruct
BackRepoGongNoteShape BackRepoGongNoteShapeStruct
BackRepoGongStructShape BackRepoGongStructShapeStruct
BackRepoLinkShape BackRepoLinkShapeStruct
CommitFromBackNb uint // records commit increments when performed by the back
PushFromFrontNb uint // records commit increments when performed by the front
// contains filtered or unexported fields
}
BackRepoStruct supports callback functions
func NewBackRepo ¶
func NewBackRepo(stage *models.Stage, filename string) (backRepo *BackRepoStruct)
func (*BackRepoStruct) Backup ¶
func (backRepo *BackRepoStruct) Backup(stage *models.Stage, dirPath string)
Backup the BackRepoStruct
func (*BackRepoStruct) BackupXL ¶
func (backRepo *BackRepoStruct) BackupXL(stage *models.Stage, dirPath string)
Backup in XL the BackRepoStruct
func (*BackRepoStruct) Checkout ¶
func (backRepo *BackRepoStruct) Checkout(stage *models.Stage)
Checkout the database into the stage
func (*BackRepoStruct) CheckoutAttributeShape ¶
func (backRepo *BackRepoStruct) CheckoutAttributeShape(attributeshape *models.AttributeShape)
CommitAttributeShape allows checkout of a single attributeshape (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutClassdiagram ¶
func (backRepo *BackRepoStruct) CheckoutClassdiagram(classdiagram *models.Classdiagram)
CommitClassdiagram allows checkout of a single classdiagram (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutDiagramPackage ¶
func (backRepo *BackRepoStruct) CheckoutDiagramPackage(diagrampackage *models.DiagramPackage)
CommitDiagramPackage allows checkout of a single diagrampackage (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutGongEnumShape ¶
func (backRepo *BackRepoStruct) CheckoutGongEnumShape(gongenumshape *models.GongEnumShape)
CommitGongEnumShape allows checkout of a single gongenumshape (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutGongEnumValueShape ¶
func (backRepo *BackRepoStruct) CheckoutGongEnumValueShape(gongenumvalueshape *models.GongEnumValueShape)
CommitGongEnumValueShape allows checkout of a single gongenumvalueshape (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutGongNoteLinkShape ¶
func (backRepo *BackRepoStruct) CheckoutGongNoteLinkShape(gongnotelinkshape *models.GongNoteLinkShape)
CommitGongNoteLinkShape allows checkout of a single gongnotelinkshape (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutGongNoteShape ¶
func (backRepo *BackRepoStruct) CheckoutGongNoteShape(gongnoteshape *models.GongNoteShape)
CommitGongNoteShape allows checkout of a single gongnoteshape (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutGongStructShape ¶
func (backRepo *BackRepoStruct) CheckoutGongStructShape(gongstructshape *models.GongStructShape)
CommitGongStructShape allows checkout of a single gongstructshape (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutLinkShape ¶
func (backRepo *BackRepoStruct) CheckoutLinkShape(linkshape *models.LinkShape)
CommitLinkShape allows checkout of a single linkshape (if already staged and with a BackRepo id)
func (*BackRepoStruct) Commit ¶
func (backRepo *BackRepoStruct) Commit(stage *models.Stage)
Commit the BackRepoStruct inner variables and link to the database
func (*BackRepoStruct) CommitAttributeShape ¶
func (backRepo *BackRepoStruct) CommitAttributeShape(attributeshape *models.AttributeShape)
CommitAttributeShape allows commit of a single attributeshape (if already staged)
func (*BackRepoStruct) CommitClassdiagram ¶
func (backRepo *BackRepoStruct) CommitClassdiagram(classdiagram *models.Classdiagram)
CommitClassdiagram allows commit of a single classdiagram (if already staged)
func (*BackRepoStruct) CommitDiagramPackage ¶
func (backRepo *BackRepoStruct) CommitDiagramPackage(diagrampackage *models.DiagramPackage)
CommitDiagramPackage allows commit of a single diagrampackage (if already staged)
func (*BackRepoStruct) CommitGongEnumShape ¶
func (backRepo *BackRepoStruct) CommitGongEnumShape(gongenumshape *models.GongEnumShape)
CommitGongEnumShape allows commit of a single gongenumshape (if already staged)
func (*BackRepoStruct) CommitGongEnumValueShape ¶
func (backRepo *BackRepoStruct) CommitGongEnumValueShape(gongenumvalueshape *models.GongEnumValueShape)
CommitGongEnumValueShape allows commit of a single gongenumvalueshape (if already staged)
func (*BackRepoStruct) CommitGongNoteLinkShape ¶
func (backRepo *BackRepoStruct) CommitGongNoteLinkShape(gongnotelinkshape *models.GongNoteLinkShape)
CommitGongNoteLinkShape allows commit of a single gongnotelinkshape (if already staged)
func (*BackRepoStruct) CommitGongNoteShape ¶
func (backRepo *BackRepoStruct) CommitGongNoteShape(gongnoteshape *models.GongNoteShape)
CommitGongNoteShape allows commit of a single gongnoteshape (if already staged)
func (*BackRepoStruct) CommitGongStructShape ¶
func (backRepo *BackRepoStruct) CommitGongStructShape(gongstructshape *models.GongStructShape)
CommitGongStructShape allows commit of a single gongstructshape (if already staged)
func (*BackRepoStruct) CommitLinkShape ¶
func (backRepo *BackRepoStruct) CommitLinkShape(linkshape *models.LinkShape)
CommitLinkShape allows commit of a single linkshape (if already staged)
func (*BackRepoStruct) GetLastCommitFromBackNb ¶
func (backRepo *BackRepoStruct) GetLastCommitFromBackNb() uint
func (*BackRepoStruct) GetLastPushFromFrontNb ¶
func (backRepo *BackRepoStruct) GetLastPushFromFrontNb() uint
func (*BackRepoStruct) GetStage ¶
func (backRepo *BackRepoStruct) GetStage() (stage *models.Stage)
func (*BackRepoStruct) IncrementCommitFromBackNb ¶
func (backRepo *BackRepoStruct) IncrementCommitFromBackNb() uint
func (*BackRepoStruct) IncrementPushFromFrontNb ¶
func (backRepo *BackRepoStruct) IncrementPushFromFrontNb() uint
func (*BackRepoStruct) Restore ¶
func (backRepo *BackRepoStruct) Restore(stage *models.Stage, dirPath string)
Restore the database into the back repo
func (*BackRepoStruct) RestoreXL ¶
func (backRepo *BackRepoStruct) RestoreXL(stage *models.Stage, dirPath string)
Restore the database into the back repo
func (*BackRepoStruct) SubscribeToCommitNb ¶
func (backRepoStruct *BackRepoStruct) SubscribeToCommitNb(ctx context.Context) <-chan int
type ClassdiagramAPI ¶
type ClassdiagramAPI struct {
gorm.Model
models.Classdiagram_WOP
// encoding of pointers
// for API, it cannot be embedded
ClassdiagramPointersEncoding ClassdiagramPointersEncoding
}
ClassdiagramAPI is the input in POST API
for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations
swagger:model classdiagramAPI
type ClassdiagramDB ¶
type ClassdiagramDB struct {
gorm.Model
// Declation for basic field classdiagramDB.Name
Name_Data sql.NullString
// Declation for basic field classdiagramDB.Description
Description_Data sql.NullString
// Declation for basic field classdiagramDB.IsIncludedInStaticWebSite
// provide the sql storage for the boolan
IsIncludedInStaticWebSite_Data sql.NullBool
// Declation for basic field classdiagramDB.ShowNbInstances
// provide the sql storage for the boolan
ShowNbInstances_Data sql.NullBool
// Declation for basic field classdiagramDB.ShowMultiplicity
// provide the sql storage for the boolan
ShowMultiplicity_Data sql.NullBool
// Declation for basic field classdiagramDB.ShowLinkNames
// provide the sql storage for the boolan
ShowLinkNames_Data sql.NullBool
// Declation for basic field classdiagramDB.IsInRenameMode
// provide the sql storage for the boolan
IsInRenameMode_Data sql.NullBool
// Declation for basic field classdiagramDB.IsExpanded
// provide the sql storage for the boolan
IsExpanded_Data sql.NullBool
// Declation for basic field classdiagramDB.NodeGongStructsIsExpanded
// provide the sql storage for the boolan
NodeGongStructsIsExpanded_Data sql.NullBool
// Declation for basic field classdiagramDB.NodeGongStructNodeExpansion
NodeGongStructNodeExpansion_Data sql.NullString
// Declation for basic field classdiagramDB.NodeGongEnumsIsExpanded
// provide the sql storage for the boolan
NodeGongEnumsIsExpanded_Data sql.NullBool
// Declation for basic field classdiagramDB.NodeGongEnumNodeExpansion
NodeGongEnumNodeExpansion_Data sql.NullString
// Declation for basic field classdiagramDB.NodeGongNotesIsExpanded
// provide the sql storage for the boolan
NodeGongNotesIsExpanded_Data sql.NullBool
// Declation for basic field classdiagramDB.NodeGongNoteNodeExpansion
NodeGongNoteNodeExpansion_Data sql.NullString
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
ClassdiagramPointersEncoding
}
ClassdiagramDB describes a classdiagram in the database
It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers
swagger:model classdiagramDB
func (*ClassdiagramDB) CopyBasicFieldsFromClassdiagram ¶
func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsFromClassdiagram(classdiagram *models.Classdiagram)
CopyBasicFieldsFromClassdiagram
func (*ClassdiagramDB) CopyBasicFieldsFromClassdiagramWOP ¶
func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsFromClassdiagramWOP(classdiagram *ClassdiagramWOP)
CopyBasicFieldsFromClassdiagramWOP
func (*ClassdiagramDB) CopyBasicFieldsFromClassdiagram_WOP ¶
func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsFromClassdiagram_WOP(classdiagram *models.Classdiagram_WOP)
CopyBasicFieldsFromClassdiagram_WOP
func (*ClassdiagramDB) CopyBasicFieldsToClassdiagram ¶
func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsToClassdiagram(classdiagram *models.Classdiagram)
CopyBasicFieldsToClassdiagram
func (*ClassdiagramDB) CopyBasicFieldsToClassdiagramWOP ¶
func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsToClassdiagramWOP(classdiagram *ClassdiagramWOP)
CopyBasicFieldsToClassdiagramWOP
func (*ClassdiagramDB) CopyBasicFieldsToClassdiagram_WOP ¶
func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsToClassdiagram_WOP(classdiagram *models.Classdiagram_WOP)
CopyBasicFieldsToClassdiagram_WOP
func (*ClassdiagramDB) DecodePointers ¶
func (classdiagramDB *ClassdiagramDB) DecodePointers(backRepo *BackRepoStruct, classdiagram *models.Classdiagram)
type ClassdiagramDBResponse ¶
type ClassdiagramDBResponse struct {
ClassdiagramDB
}
ClassdiagramDBResponse provides response swagger:response classdiagramDBResponse
type ClassdiagramDBs ¶
type ClassdiagramDBs []ClassdiagramDB
ClassdiagramDBs arrays classdiagramDBs swagger:response classdiagramDBsResponse
type ClassdiagramPointersEncoding ¶
type ClassdiagramPointersEncoding struct {
// field GongStructShapes is a slice of pointers to another Struct (optional or 0..1)
GongStructShapes IntSlice `gorm:"type:TEXT"`
// field GongEnumShapes is a slice of pointers to another Struct (optional or 0..1)
GongEnumShapes IntSlice `gorm:"type:TEXT"`
// field GongNoteShapes is a slice of pointers to another Struct (optional or 0..1)
GongNoteShapes IntSlice `gorm:"type:TEXT"`
}
ClassdiagramPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type ClassdiagramWOP ¶
type ClassdiagramWOP struct {
ID int `xlsx:"0"`
Name string `xlsx:"1"`
Description string `xlsx:"2"`
IsIncludedInStaticWebSite bool `xlsx:"3"`
ShowNbInstances bool `xlsx:"4"`
ShowMultiplicity bool `xlsx:"5"`
ShowLinkNames bool `xlsx:"6"`
IsInRenameMode bool `xlsx:"7"`
IsExpanded bool `xlsx:"8"`
NodeGongStructsIsExpanded bool `xlsx:"9"`
NodeGongStructNodeExpansion string `xlsx:"10"`
NodeGongEnumsIsExpanded bool `xlsx:"11"`
NodeGongEnumNodeExpansion string `xlsx:"12"`
NodeGongNotesIsExpanded bool `xlsx:"13"`
NodeGongNoteNodeExpansion string `xlsx:"14"`
}
ClassdiagramWOP is a Classdiagram without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type DBLite ¶
type DBLite struct {
// contains filtered or unexported fields
}
DBLite is an in-memory database implementation of DBInterface
func (*DBLite) Create ¶
func (db *DBLite) Create(instanceDB any) (db.DBInterface, error)
Create inserts a new record into the database
func (*DBLite) Delete ¶
func (db *DBLite) Delete(instanceDB any) (db.DBInterface, error)
Delete removes a record from the database
func (*DBLite) Find ¶
func (db *DBLite) Find(instanceDBs any) (db.DBInterface, error)
Find retrieves all records of a type from the database
func (*DBLite) Model ¶
func (db *DBLite) Model(instanceDB any) (db.DBInterface, error)
Model is a placeholder in this implementation
func (*DBLite) Save ¶
func (db *DBLite) Save(instanceDB any) (db.DBInterface, error)
Save updates or inserts a record into the database
type DiagramPackageAPI ¶
type DiagramPackageAPI struct {
gorm.Model
models.DiagramPackage_WOP
// encoding of pointers
// for API, it cannot be embedded
DiagramPackagePointersEncoding DiagramPackagePointersEncoding
}
DiagramPackageAPI is the input in POST API
for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations
swagger:model diagrampackageAPI
type DiagramPackageDB ¶
type DiagramPackageDB struct {
gorm.Model
// Declation for basic field diagrampackageDB.Name
Name_Data sql.NullString
// Declation for basic field diagrampackageDB.Path
Path_Data sql.NullString
// Declation for basic field diagrampackageDB.GongModelPath
GongModelPath_Data sql.NullString
// Declation for basic field diagrampackageDB.AbsolutePathToDiagramPackage
AbsolutePathToDiagramPackage_Data sql.NullString
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
DiagramPackagePointersEncoding
}
DiagramPackageDB describes a diagrampackage in the database
It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers
swagger:model diagrampackageDB
func (*DiagramPackageDB) CopyBasicFieldsFromDiagramPackage ¶
func (diagrampackageDB *DiagramPackageDB) CopyBasicFieldsFromDiagramPackage(diagrampackage *models.DiagramPackage)
CopyBasicFieldsFromDiagramPackage
func (*DiagramPackageDB) CopyBasicFieldsFromDiagramPackageWOP ¶
func (diagrampackageDB *DiagramPackageDB) CopyBasicFieldsFromDiagramPackageWOP(diagrampackage *DiagramPackageWOP)
CopyBasicFieldsFromDiagramPackageWOP
func (*DiagramPackageDB) CopyBasicFieldsFromDiagramPackage_WOP ¶
func (diagrampackageDB *DiagramPackageDB) CopyBasicFieldsFromDiagramPackage_WOP(diagrampackage *models.DiagramPackage_WOP)
CopyBasicFieldsFromDiagramPackage_WOP
func (*DiagramPackageDB) CopyBasicFieldsToDiagramPackage ¶
func (diagrampackageDB *DiagramPackageDB) CopyBasicFieldsToDiagramPackage(diagrampackage *models.DiagramPackage)
CopyBasicFieldsToDiagramPackage
func (*DiagramPackageDB) CopyBasicFieldsToDiagramPackageWOP ¶
func (diagrampackageDB *DiagramPackageDB) CopyBasicFieldsToDiagramPackageWOP(diagrampackage *DiagramPackageWOP)
CopyBasicFieldsToDiagramPackageWOP
func (*DiagramPackageDB) CopyBasicFieldsToDiagramPackage_WOP ¶
func (diagrampackageDB *DiagramPackageDB) CopyBasicFieldsToDiagramPackage_WOP(diagrampackage *models.DiagramPackage_WOP)
CopyBasicFieldsToDiagramPackage_WOP
func (*DiagramPackageDB) DecodePointers ¶
func (diagrampackageDB *DiagramPackageDB) DecodePointers(backRepo *BackRepoStruct, diagrampackage *models.DiagramPackage)
type DiagramPackageDBResponse ¶
type DiagramPackageDBResponse struct {
DiagramPackageDB
}
DiagramPackageDBResponse provides response swagger:response diagrampackageDBResponse
type DiagramPackageDBs ¶
type DiagramPackageDBs []DiagramPackageDB
DiagramPackageDBs arrays diagrampackageDBs swagger:response diagrampackageDBsResponse
type DiagramPackagePointersEncoding ¶
type DiagramPackagePointersEncoding struct {
// field Classdiagrams is a slice of pointers to another Struct (optional or 0..1)
Classdiagrams IntSlice `gorm:"type:TEXT"`
// field SelectedClassdiagram is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
SelectedClassdiagramID sql.NullInt64
}
DiagramPackagePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type DiagramPackageWOP ¶
type DiagramPackageWOP struct {
ID int `xlsx:"0"`
Name string `xlsx:"1"`
Path string `xlsx:"2"`
GongModelPath string `xlsx:"3"`
AbsolutePathToDiagramPackage string `xlsx:"4"`
}
DiagramPackageWOP is a DiagramPackage without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type GongEnumShapeAPI ¶
type GongEnumShapeAPI struct {
gorm.Model
models.GongEnumShape_WOP
// encoding of pointers
// for API, it cannot be embedded
GongEnumShapePointersEncoding GongEnumShapePointersEncoding
}
GongEnumShapeAPI is the input in POST API
for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations
swagger:model gongenumshapeAPI
type GongEnumShapeDB ¶
type GongEnumShapeDB struct {
gorm.Model
// Declation for basic field gongenumshapeDB.Name
Name_Data sql.NullString
// Declation for basic field gongenumshapeDB.X
X_Data sql.NullFloat64
// Declation for basic field gongenumshapeDB.Y
Y_Data sql.NullFloat64
// Declation for basic field gongenumshapeDB.Width
Width_Data sql.NullFloat64
// Declation for basic field gongenumshapeDB.Height
Height_Data sql.NullFloat64
// Declation for basic field gongenumshapeDB.IsExpanded
// provide the sql storage for the boolan
IsExpanded_Data sql.NullBool
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
GongEnumShapePointersEncoding
}
GongEnumShapeDB describes a gongenumshape in the database
It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers
swagger:model gongenumshapeDB
func (*GongEnumShapeDB) CopyBasicFieldsFromGongEnumShape ¶
func (gongenumshapeDB *GongEnumShapeDB) CopyBasicFieldsFromGongEnumShape(gongenumshape *models.GongEnumShape)
CopyBasicFieldsFromGongEnumShape
func (*GongEnumShapeDB) CopyBasicFieldsFromGongEnumShapeWOP ¶
func (gongenumshapeDB *GongEnumShapeDB) CopyBasicFieldsFromGongEnumShapeWOP(gongenumshape *GongEnumShapeWOP)
CopyBasicFieldsFromGongEnumShapeWOP
func (*GongEnumShapeDB) CopyBasicFieldsFromGongEnumShape_WOP ¶
func (gongenumshapeDB *GongEnumShapeDB) CopyBasicFieldsFromGongEnumShape_WOP(gongenumshape *models.GongEnumShape_WOP)
CopyBasicFieldsFromGongEnumShape_WOP
func (*GongEnumShapeDB) CopyBasicFieldsToGongEnumShape ¶
func (gongenumshapeDB *GongEnumShapeDB) CopyBasicFieldsToGongEnumShape(gongenumshape *models.GongEnumShape)
CopyBasicFieldsToGongEnumShape
func (*GongEnumShapeDB) CopyBasicFieldsToGongEnumShapeWOP ¶
func (gongenumshapeDB *GongEnumShapeDB) CopyBasicFieldsToGongEnumShapeWOP(gongenumshape *GongEnumShapeWOP)
CopyBasicFieldsToGongEnumShapeWOP
func (*GongEnumShapeDB) CopyBasicFieldsToGongEnumShape_WOP ¶
func (gongenumshapeDB *GongEnumShapeDB) CopyBasicFieldsToGongEnumShape_WOP(gongenumshape *models.GongEnumShape_WOP)
CopyBasicFieldsToGongEnumShape_WOP
func (*GongEnumShapeDB) DecodePointers ¶
func (gongenumshapeDB *GongEnumShapeDB) DecodePointers(backRepo *BackRepoStruct, gongenumshape *models.GongEnumShape)
type GongEnumShapeDBResponse ¶
type GongEnumShapeDBResponse struct {
GongEnumShapeDB
}
GongEnumShapeDBResponse provides response swagger:response gongenumshapeDBResponse
type GongEnumShapeDBs ¶
type GongEnumShapeDBs []GongEnumShapeDB
GongEnumShapeDBs arrays gongenumshapeDBs swagger:response gongenumshapeDBsResponse
type GongEnumShapePointersEncoding ¶
type GongEnumShapePointersEncoding struct {
// field GongEnumValueShapes is a slice of pointers to another Struct (optional or 0..1)
GongEnumValueShapes IntSlice `gorm:"type:TEXT"`
}
GongEnumShapePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type GongEnumShapeWOP ¶
type GongEnumShapeWOP struct {
ID int `xlsx:"0"`
Name string `xlsx:"1"`
X float64 `xlsx:"2"`
Y float64 `xlsx:"3"`
IdentifierMeta any `xlsx:"4"`
Width float64 `xlsx:"5"`
Height float64 `xlsx:"6"`
IsExpanded bool `xlsx:"7"`
}
GongEnumShapeWOP is a GongEnumShape without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type GongEnumValueShapeAPI ¶
type GongEnumValueShapeAPI struct {
gorm.Model
models.GongEnumValueShape_WOP
// encoding of pointers
// for API, it cannot be embedded
GongEnumValueShapePointersEncoding GongEnumValueShapePointersEncoding
}
GongEnumValueShapeAPI is the input in POST API
for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations
swagger:model gongenumvalueshapeAPI
type GongEnumValueShapeDB ¶
type GongEnumValueShapeDB struct {
gorm.Model
// Declation for basic field gongenumvalueshapeDB.Name
Name_Data sql.NullString
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
GongEnumValueShapePointersEncoding
}
GongEnumValueShapeDB describes a gongenumvalueshape in the database
It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers
swagger:model gongenumvalueshapeDB
func (*GongEnumValueShapeDB) CopyBasicFieldsFromGongEnumValueShape ¶
func (gongenumvalueshapeDB *GongEnumValueShapeDB) CopyBasicFieldsFromGongEnumValueShape(gongenumvalueshape *models.GongEnumValueShape)
CopyBasicFieldsFromGongEnumValueShape
func (*GongEnumValueShapeDB) CopyBasicFieldsFromGongEnumValueShapeWOP ¶
func (gongenumvalueshapeDB *GongEnumValueShapeDB) CopyBasicFieldsFromGongEnumValueShapeWOP(gongenumvalueshape *GongEnumValueShapeWOP)
CopyBasicFieldsFromGongEnumValueShapeWOP
func (*GongEnumValueShapeDB) CopyBasicFieldsFromGongEnumValueShape_WOP ¶
func (gongenumvalueshapeDB *GongEnumValueShapeDB) CopyBasicFieldsFromGongEnumValueShape_WOP(gongenumvalueshape *models.GongEnumValueShape_WOP)
CopyBasicFieldsFromGongEnumValueShape_WOP
func (*GongEnumValueShapeDB) CopyBasicFieldsToGongEnumValueShape ¶
func (gongenumvalueshapeDB *GongEnumValueShapeDB) CopyBasicFieldsToGongEnumValueShape(gongenumvalueshape *models.GongEnumValueShape)
CopyBasicFieldsToGongEnumValueShape
func (*GongEnumValueShapeDB) CopyBasicFieldsToGongEnumValueShapeWOP ¶
func (gongenumvalueshapeDB *GongEnumValueShapeDB) CopyBasicFieldsToGongEnumValueShapeWOP(gongenumvalueshape *GongEnumValueShapeWOP)
CopyBasicFieldsToGongEnumValueShapeWOP
func (*GongEnumValueShapeDB) CopyBasicFieldsToGongEnumValueShape_WOP ¶
func (gongenumvalueshapeDB *GongEnumValueShapeDB) CopyBasicFieldsToGongEnumValueShape_WOP(gongenumvalueshape *models.GongEnumValueShape_WOP)
CopyBasicFieldsToGongEnumValueShape_WOP
func (*GongEnumValueShapeDB) DecodePointers ¶
func (gongenumvalueshapeDB *GongEnumValueShapeDB) DecodePointers(backRepo *BackRepoStruct, gongenumvalueshape *models.GongEnumValueShape)
type GongEnumValueShapeDBResponse ¶
type GongEnumValueShapeDBResponse struct {
GongEnumValueShapeDB
}
GongEnumValueShapeDBResponse provides response swagger:response gongenumvalueshapeDBResponse
type GongEnumValueShapeDBs ¶
type GongEnumValueShapeDBs []GongEnumValueShapeDB
GongEnumValueShapeDBs arrays gongenumvalueshapeDBs swagger:response gongenumvalueshapeDBsResponse
type GongEnumValueShapePointersEncoding ¶
type GongEnumValueShapePointersEncoding struct {
}
GongEnumValueShapePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type GongEnumValueShapeWOP ¶
type GongEnumValueShapeWOP struct {
ID int `xlsx:"0"`
Name string `xlsx:"1"`
IdentifierMeta any `xlsx:"2"`
}
GongEnumValueShapeWOP is a GongEnumValueShape without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type GongNoteLinkShapeAPI ¶
type GongNoteLinkShapeAPI struct {
gorm.Model
models.GongNoteLinkShape_WOP
// encoding of pointers
// for API, it cannot be embedded
GongNoteLinkShapePointersEncoding GongNoteLinkShapePointersEncoding
}
GongNoteLinkShapeAPI is the input in POST API
for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations
swagger:model gongnotelinkshapeAPI
type GongNoteLinkShapeDB ¶
type GongNoteLinkShapeDB struct {
gorm.Model
// Declation for basic field gongnotelinkshapeDB.Name
Name_Data sql.NullString
// Declation for basic field gongnotelinkshapeDB.Identifier
Identifier_Data sql.NullString
// Declation for basic field gongnotelinkshapeDB.Type
Type_Data sql.NullString
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
GongNoteLinkShapePointersEncoding
}
GongNoteLinkShapeDB describes a gongnotelinkshape in the database
It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers
swagger:model gongnotelinkshapeDB
func (*GongNoteLinkShapeDB) CopyBasicFieldsFromGongNoteLinkShape ¶
func (gongnotelinkshapeDB *GongNoteLinkShapeDB) CopyBasicFieldsFromGongNoteLinkShape(gongnotelinkshape *models.GongNoteLinkShape)
CopyBasicFieldsFromGongNoteLinkShape
func (*GongNoteLinkShapeDB) CopyBasicFieldsFromGongNoteLinkShapeWOP ¶
func (gongnotelinkshapeDB *GongNoteLinkShapeDB) CopyBasicFieldsFromGongNoteLinkShapeWOP(gongnotelinkshape *GongNoteLinkShapeWOP)
CopyBasicFieldsFromGongNoteLinkShapeWOP
func (*GongNoteLinkShapeDB) CopyBasicFieldsFromGongNoteLinkShape_WOP ¶
func (gongnotelinkshapeDB *GongNoteLinkShapeDB) CopyBasicFieldsFromGongNoteLinkShape_WOP(gongnotelinkshape *models.GongNoteLinkShape_WOP)
CopyBasicFieldsFromGongNoteLinkShape_WOP
func (*GongNoteLinkShapeDB) CopyBasicFieldsToGongNoteLinkShape ¶
func (gongnotelinkshapeDB *GongNoteLinkShapeDB) CopyBasicFieldsToGongNoteLinkShape(gongnotelinkshape *models.GongNoteLinkShape)
CopyBasicFieldsToGongNoteLinkShape
func (*GongNoteLinkShapeDB) CopyBasicFieldsToGongNoteLinkShapeWOP ¶
func (gongnotelinkshapeDB *GongNoteLinkShapeDB) CopyBasicFieldsToGongNoteLinkShapeWOP(gongnotelinkshape *GongNoteLinkShapeWOP)
CopyBasicFieldsToGongNoteLinkShapeWOP
func (*GongNoteLinkShapeDB) CopyBasicFieldsToGongNoteLinkShape_WOP ¶
func (gongnotelinkshapeDB *GongNoteLinkShapeDB) CopyBasicFieldsToGongNoteLinkShape_WOP(gongnotelinkshape *models.GongNoteLinkShape_WOP)
CopyBasicFieldsToGongNoteLinkShape_WOP
func (*GongNoteLinkShapeDB) DecodePointers ¶
func (gongnotelinkshapeDB *GongNoteLinkShapeDB) DecodePointers(backRepo *BackRepoStruct, gongnotelinkshape *models.GongNoteLinkShape)
type GongNoteLinkShapeDBResponse ¶
type GongNoteLinkShapeDBResponse struct {
GongNoteLinkShapeDB
}
GongNoteLinkShapeDBResponse provides response swagger:response gongnotelinkshapeDBResponse
type GongNoteLinkShapeDBs ¶
type GongNoteLinkShapeDBs []GongNoteLinkShapeDB
GongNoteLinkShapeDBs arrays gongnotelinkshapeDBs swagger:response gongnotelinkshapeDBsResponse
type GongNoteLinkShapePointersEncoding ¶
type GongNoteLinkShapePointersEncoding struct {
}
GongNoteLinkShapePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type GongNoteLinkShapeWOP ¶
type GongNoteLinkShapeWOP struct {
ID int `xlsx:"0"`
Name string `xlsx:"1"`
Identifier string `xlsx:"2"`
Type models.NoteShapeLinkType `xlsx:"3"`
}
GongNoteLinkShapeWOP is a GongNoteLinkShape without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type GongNoteShapeAPI ¶
type GongNoteShapeAPI struct {
gorm.Model
models.GongNoteShape_WOP
// encoding of pointers
// for API, it cannot be embedded
GongNoteShapePointersEncoding GongNoteShapePointersEncoding
}
GongNoteShapeAPI is the input in POST API
for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations
swagger:model gongnoteshapeAPI
type GongNoteShapeDB ¶
type GongNoteShapeDB struct {
gorm.Model
// Declation for basic field gongnoteshapeDB.Name
Name_Data sql.NullString
// Declation for basic field gongnoteshapeDB.Identifier
Identifier_Data sql.NullString
// Declation for basic field gongnoteshapeDB.Body
Body_Data sql.NullString
// Declation for basic field gongnoteshapeDB.BodyHTML
BodyHTML_Data sql.NullString
// Declation for basic field gongnoteshapeDB.X
X_Data sql.NullFloat64
// Declation for basic field gongnoteshapeDB.Y
Y_Data sql.NullFloat64
// Declation for basic field gongnoteshapeDB.Width
Width_Data sql.NullFloat64
// Declation for basic field gongnoteshapeDB.Height
Height_Data sql.NullFloat64
// Declation for basic field gongnoteshapeDB.Matched
// provide the sql storage for the boolan
Matched_Data sql.NullBool
// Declation for basic field gongnoteshapeDB.IsExpanded
// provide the sql storage for the boolan
IsExpanded_Data sql.NullBool
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
GongNoteShapePointersEncoding
}
GongNoteShapeDB describes a gongnoteshape in the database
It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers
swagger:model gongnoteshapeDB
func (*GongNoteShapeDB) CopyBasicFieldsFromGongNoteShape ¶
func (gongnoteshapeDB *GongNoteShapeDB) CopyBasicFieldsFromGongNoteShape(gongnoteshape *models.GongNoteShape)
CopyBasicFieldsFromGongNoteShape
func (*GongNoteShapeDB) CopyBasicFieldsFromGongNoteShapeWOP ¶
func (gongnoteshapeDB *GongNoteShapeDB) CopyBasicFieldsFromGongNoteShapeWOP(gongnoteshape *GongNoteShapeWOP)
CopyBasicFieldsFromGongNoteShapeWOP
func (*GongNoteShapeDB) CopyBasicFieldsFromGongNoteShape_WOP ¶
func (gongnoteshapeDB *GongNoteShapeDB) CopyBasicFieldsFromGongNoteShape_WOP(gongnoteshape *models.GongNoteShape_WOP)
CopyBasicFieldsFromGongNoteShape_WOP
func (*GongNoteShapeDB) CopyBasicFieldsToGongNoteShape ¶
func (gongnoteshapeDB *GongNoteShapeDB) CopyBasicFieldsToGongNoteShape(gongnoteshape *models.GongNoteShape)
CopyBasicFieldsToGongNoteShape
func (*GongNoteShapeDB) CopyBasicFieldsToGongNoteShapeWOP ¶
func (gongnoteshapeDB *GongNoteShapeDB) CopyBasicFieldsToGongNoteShapeWOP(gongnoteshape *GongNoteShapeWOP)
CopyBasicFieldsToGongNoteShapeWOP
func (*GongNoteShapeDB) CopyBasicFieldsToGongNoteShape_WOP ¶
func (gongnoteshapeDB *GongNoteShapeDB) CopyBasicFieldsToGongNoteShape_WOP(gongnoteshape *models.GongNoteShape_WOP)
CopyBasicFieldsToGongNoteShape_WOP
func (*GongNoteShapeDB) DecodePointers ¶
func (gongnoteshapeDB *GongNoteShapeDB) DecodePointers(backRepo *BackRepoStruct, gongnoteshape *models.GongNoteShape)
type GongNoteShapeDBResponse ¶
type GongNoteShapeDBResponse struct {
GongNoteShapeDB
}
GongNoteShapeDBResponse provides response swagger:response gongnoteshapeDBResponse
type GongNoteShapeDBs ¶
type GongNoteShapeDBs []GongNoteShapeDB
GongNoteShapeDBs arrays gongnoteshapeDBs swagger:response gongnoteshapeDBsResponse
type GongNoteShapePointersEncoding ¶
type GongNoteShapePointersEncoding struct {
// field GongNoteLinkShapes is a slice of pointers to another Struct (optional or 0..1)
GongNoteLinkShapes IntSlice `gorm:"type:TEXT"`
}
GongNoteShapePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type GongNoteShapeWOP ¶
type GongNoteShapeWOP struct {
ID int `xlsx:"0"`
Name string `xlsx:"1"`
Identifier string `xlsx:"2"`
Body string `xlsx:"3"`
BodyHTML string `xlsx:"4"`
X float64 `xlsx:"5"`
Y float64 `xlsx:"6"`
Width float64 `xlsx:"7"`
Height float64 `xlsx:"8"`
Matched bool `xlsx:"9"`
IsExpanded bool `xlsx:"10"`
}
GongNoteShapeWOP is a GongNoteShape without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type GongStructShapeAPI ¶
type GongStructShapeAPI struct {
gorm.Model
models.GongStructShape_WOP
// encoding of pointers
// for API, it cannot be embedded
GongStructShapePointersEncoding GongStructShapePointersEncoding
}
GongStructShapeAPI is the input in POST API
for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations
swagger:model gongstructshapeAPI
type GongStructShapeDB ¶
type GongStructShapeDB struct {
gorm.Model
// Declation for basic field gongstructshapeDB.Name
Name_Data sql.NullString
// Declation for basic field gongstructshapeDB.X
X_Data sql.NullFloat64
// Declation for basic field gongstructshapeDB.Y
Y_Data sql.NullFloat64
// Declation for basic field gongstructshapeDB.Width
Width_Data sql.NullFloat64
// Declation for basic field gongstructshapeDB.Height
Height_Data sql.NullFloat64
// Declation for basic field gongstructshapeDB.IsSelected
// provide the sql storage for the boolan
IsSelected_Data sql.NullBool
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
GongStructShapePointersEncoding
}
GongStructShapeDB describes a gongstructshape in the database
It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers
swagger:model gongstructshapeDB
func (*GongStructShapeDB) CopyBasicFieldsFromGongStructShape ¶
func (gongstructshapeDB *GongStructShapeDB) CopyBasicFieldsFromGongStructShape(gongstructshape *models.GongStructShape)
CopyBasicFieldsFromGongStructShape
func (*GongStructShapeDB) CopyBasicFieldsFromGongStructShapeWOP ¶
func (gongstructshapeDB *GongStructShapeDB) CopyBasicFieldsFromGongStructShapeWOP(gongstructshape *GongStructShapeWOP)
CopyBasicFieldsFromGongStructShapeWOP
func (*GongStructShapeDB) CopyBasicFieldsFromGongStructShape_WOP ¶
func (gongstructshapeDB *GongStructShapeDB) CopyBasicFieldsFromGongStructShape_WOP(gongstructshape *models.GongStructShape_WOP)
CopyBasicFieldsFromGongStructShape_WOP
func (*GongStructShapeDB) CopyBasicFieldsToGongStructShape ¶
func (gongstructshapeDB *GongStructShapeDB) CopyBasicFieldsToGongStructShape(gongstructshape *models.GongStructShape)
CopyBasicFieldsToGongStructShape
func (*GongStructShapeDB) CopyBasicFieldsToGongStructShapeWOP ¶
func (gongstructshapeDB *GongStructShapeDB) CopyBasicFieldsToGongStructShapeWOP(gongstructshape *GongStructShapeWOP)
CopyBasicFieldsToGongStructShapeWOP
func (*GongStructShapeDB) CopyBasicFieldsToGongStructShape_WOP ¶
func (gongstructshapeDB *GongStructShapeDB) CopyBasicFieldsToGongStructShape_WOP(gongstructshape *models.GongStructShape_WOP)
CopyBasicFieldsToGongStructShape_WOP
func (*GongStructShapeDB) DecodePointers ¶
func (gongstructshapeDB *GongStructShapeDB) DecodePointers(backRepo *BackRepoStruct, gongstructshape *models.GongStructShape)
type GongStructShapeDBResponse ¶
type GongStructShapeDBResponse struct {
GongStructShapeDB
}
GongStructShapeDBResponse provides response swagger:response gongstructshapeDBResponse
type GongStructShapeDBs ¶
type GongStructShapeDBs []GongStructShapeDB
GongStructShapeDBs arrays gongstructshapeDBs swagger:response gongstructshapeDBsResponse
type GongStructShapePointersEncoding ¶
type GongStructShapePointersEncoding struct {
// field AttributeShapes is a slice of pointers to another Struct (optional or 0..1)
AttributeShapes IntSlice `gorm:"type:TEXT"`
// field LinkShapes is a slice of pointers to another Struct (optional or 0..1)
LinkShapes IntSlice `gorm:"type:TEXT"`
}
GongStructShapePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type GongStructShapeWOP ¶
type GongStructShapeWOP struct {
ID int `xlsx:"0"`
Name string `xlsx:"1"`
X float64 `xlsx:"2"`
Y float64 `xlsx:"3"`
IdentifierMeta any `xlsx:"4"`
Width float64 `xlsx:"5"`
Height float64 `xlsx:"6"`
IsSelected bool `xlsx:"7"`
}
GongStructShapeWOP is a GongStructShape without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type GongstructDB ¶
type GongstructDB interface {
}
type IntSlice ¶
type IntSlice []int
type LinkShapeAPI ¶
type LinkShapeAPI struct {
gorm.Model
models.LinkShape_WOP
// encoding of pointers
// for API, it cannot be embedded
LinkShapePointersEncoding LinkShapePointersEncoding
}
LinkShapeAPI is the input in POST API
for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations
swagger:model linkshapeAPI
type LinkShapeDB ¶
type LinkShapeDB struct {
gorm.Model
// Declation for basic field linkshapeDB.Name
Name_Data sql.NullString
// Declation for basic field linkshapeDB.FieldOffsetX
FieldOffsetX_Data sql.NullFloat64
// Declation for basic field linkshapeDB.FieldOffsetY
FieldOffsetY_Data sql.NullFloat64
// Declation for basic field linkshapeDB.TargetMultiplicity
TargetMultiplicity_Data sql.NullString
// Declation for basic field linkshapeDB.TargetMultiplicityOffsetX
TargetMultiplicityOffsetX_Data sql.NullFloat64
// Declation for basic field linkshapeDB.TargetMultiplicityOffsetY
TargetMultiplicityOffsetY_Data sql.NullFloat64
// Declation for basic field linkshapeDB.SourceMultiplicity
SourceMultiplicity_Data sql.NullString
// Declation for basic field linkshapeDB.SourceMultiplicityOffsetX
SourceMultiplicityOffsetX_Data sql.NullFloat64
// Declation for basic field linkshapeDB.SourceMultiplicityOffsetY
SourceMultiplicityOffsetY_Data sql.NullFloat64
// Declation for basic field linkshapeDB.X
X_Data sql.NullFloat64
// Declation for basic field linkshapeDB.Y
Y_Data sql.NullFloat64
// Declation for basic field linkshapeDB.StartOrientation
StartOrientation_Data sql.NullString
// Declation for basic field linkshapeDB.StartRatio
StartRatio_Data sql.NullFloat64
// Declation for basic field linkshapeDB.EndOrientation
EndOrientation_Data sql.NullString
// Declation for basic field linkshapeDB.EndRatio
EndRatio_Data sql.NullFloat64
// Declation for basic field linkshapeDB.CornerOffsetRatio
CornerOffsetRatio_Data sql.NullFloat64
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
LinkShapePointersEncoding
}
LinkShapeDB describes a linkshape in the database
It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers
swagger:model linkshapeDB
func (*LinkShapeDB) CopyBasicFieldsFromLinkShape ¶
func (linkshapeDB *LinkShapeDB) CopyBasicFieldsFromLinkShape(linkshape *models.LinkShape)
CopyBasicFieldsFromLinkShape
func (*LinkShapeDB) CopyBasicFieldsFromLinkShapeWOP ¶
func (linkshapeDB *LinkShapeDB) CopyBasicFieldsFromLinkShapeWOP(linkshape *LinkShapeWOP)
CopyBasicFieldsFromLinkShapeWOP
func (*LinkShapeDB) CopyBasicFieldsFromLinkShape_WOP ¶
func (linkshapeDB *LinkShapeDB) CopyBasicFieldsFromLinkShape_WOP(linkshape *models.LinkShape_WOP)
CopyBasicFieldsFromLinkShape_WOP
func (*LinkShapeDB) CopyBasicFieldsToLinkShape ¶
func (linkshapeDB *LinkShapeDB) CopyBasicFieldsToLinkShape(linkshape *models.LinkShape)
CopyBasicFieldsToLinkShape
func (*LinkShapeDB) CopyBasicFieldsToLinkShapeWOP ¶
func (linkshapeDB *LinkShapeDB) CopyBasicFieldsToLinkShapeWOP(linkshape *LinkShapeWOP)
CopyBasicFieldsToLinkShapeWOP
func (*LinkShapeDB) CopyBasicFieldsToLinkShape_WOP ¶
func (linkshapeDB *LinkShapeDB) CopyBasicFieldsToLinkShape_WOP(linkshape *models.LinkShape_WOP)
CopyBasicFieldsToLinkShape_WOP
func (*LinkShapeDB) DecodePointers ¶
func (linkshapeDB *LinkShapeDB) DecodePointers(backRepo *BackRepoStruct, linkshape *models.LinkShape)
type LinkShapeDBResponse ¶
type LinkShapeDBResponse struct {
LinkShapeDB
}
LinkShapeDBResponse provides response swagger:response linkshapeDBResponse
type LinkShapeDBs ¶
type LinkShapeDBs []LinkShapeDB
LinkShapeDBs arrays linkshapeDBs swagger:response linkshapeDBsResponse
type LinkShapePointersEncoding ¶
type LinkShapePointersEncoding struct {
}
LinkShapePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type LinkShapeWOP ¶
type LinkShapeWOP struct {
ID int `xlsx:"0"`
Name string `xlsx:"1"`
IdentifierMeta any `xlsx:"2"`
FieldTypeIdentifierMeta any `xlsx:"3"`
FieldOffsetX float64 `xlsx:"4"`
FieldOffsetY float64 `xlsx:"5"`
TargetMultiplicity models.MultiplicityType `xlsx:"6"`
TargetMultiplicityOffsetX float64 `xlsx:"7"`
TargetMultiplicityOffsetY float64 `xlsx:"8"`
SourceMultiplicity models.MultiplicityType `xlsx:"9"`
SourceMultiplicityOffsetX float64 `xlsx:"10"`
SourceMultiplicityOffsetY float64 `xlsx:"11"`
X float64 `xlsx:"12"`
Y float64 `xlsx:"13"`
StartOrientation models.OrientationType `xlsx:"14"`
StartRatio float64 `xlsx:"15"`
EndOrientation models.OrientationType `xlsx:"16"`
EndRatio float64 `xlsx:"17"`
CornerOffsetRatio float64 `xlsx:"18"`
}
LinkShapeWOP is a LinkShape without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint