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
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
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 AsSplitAPI
- type AsSplitAreaAPI
- type AsSplitAreaDB
- func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsFromAsSplitArea(assplitarea *models.AsSplitArea)
- func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsFromAsSplitAreaWOP(assplitarea *AsSplitAreaWOP)
- func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsFromAsSplitArea_WOP(assplitarea *models.AsSplitArea_WOP)
- func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsToAsSplitArea(assplitarea *models.AsSplitArea)
- func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsToAsSplitAreaWOP(assplitarea *AsSplitAreaWOP)
- func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsToAsSplitArea_WOP(assplitarea *models.AsSplitArea_WOP)
- func (assplitareaDB *AsSplitAreaDB) DecodePointers(backRepo *BackRepoStruct, assplitarea *models.AsSplitArea)
- type AsSplitAreaDBResponse
- type AsSplitAreaDBs
- type AsSplitAreaPointersEncoding
- type AsSplitAreaWOP
- type AsSplitDB
- func (assplitDB *AsSplitDB) CopyBasicFieldsFromAsSplit(assplit *models.AsSplit)
- func (assplitDB *AsSplitDB) CopyBasicFieldsFromAsSplitWOP(assplit *AsSplitWOP)
- func (assplitDB *AsSplitDB) CopyBasicFieldsFromAsSplit_WOP(assplit *models.AsSplit_WOP)
- func (assplitDB *AsSplitDB) CopyBasicFieldsToAsSplit(assplit *models.AsSplit)
- func (assplitDB *AsSplitDB) CopyBasicFieldsToAsSplitWOP(assplit *AsSplitWOP)
- func (assplitDB *AsSplitDB) CopyBasicFieldsToAsSplit_WOP(assplit *models.AsSplit_WOP)
- func (assplitDB *AsSplitDB) DecodePointers(backRepo *BackRepoStruct, assplit *models.AsSplit)
- type AsSplitDBResponse
- type AsSplitDBs
- type AsSplitPointersEncoding
- type AsSplitWOP
- type BackRepoAsSplitAreaStruct
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) Backup(dirPath string)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) BackupXL(file *xlsx.File)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CheckoutPhaseOne() (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CheckoutPhaseOneInstance(assplitareaDB *AsSplitAreaDB) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, assplitareaDB *AsSplitAreaDB) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitPhaseOneInstance(assplitarea *models.AsSplitArea) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, assplitarea *models.AsSplitArea) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) GetAsSplitAreaDBFromAsSplitAreaPtr(assplitarea *models.AsSplitArea) (assplitareaDB *AsSplitAreaDB)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) GetDB() db.DBInterface
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) GetStage() (stage *models.Stage)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, assplitarea *models.AsSplitArea) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) RestorePhaseOne(dirPath string)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) RestorePhaseTwo()
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoAsSplitStruct
- func (backRepoAsSplit *BackRepoAsSplitStruct) Backup(dirPath string)
- func (backRepoAsSplit *BackRepoAsSplitStruct) BackupXL(file *xlsx.File)
- func (backRepoAsSplit *BackRepoAsSplitStruct) CheckoutPhaseOne() (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) CheckoutPhaseOneInstance(assplitDB *AsSplitDB) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, assplitDB *AsSplitDB) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) CommitPhaseOneInstance(assplit *models.AsSplit) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, assplit *models.AsSplit) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) GetAsSplitDBFromAsSplitPtr(assplit *models.AsSplit) (assplitDB *AsSplitDB)
- func (backRepoAsSplit *BackRepoAsSplitStruct) GetDB() db.DBInterface
- func (backRepoAsSplit *BackRepoAsSplitStruct) GetStage() (stage *models.Stage)
- func (backRepoAsSplit *BackRepoAsSplitStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, assplit *models.AsSplit) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) RestorePhaseOne(dirPath string)
- func (backRepoAsSplit *BackRepoAsSplitStruct) RestorePhaseTwo()
- func (backRepoAsSplit *BackRepoAsSplitStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoButtonStruct
- func (backRepoButton *BackRepoButtonStruct) Backup(dirPath string)
- func (backRepoButton *BackRepoButtonStruct) BackupXL(file *xlsx.File)
- func (backRepoButton *BackRepoButtonStruct) CheckoutPhaseOne() (Error error)
- func (backRepoButton *BackRepoButtonStruct) CheckoutPhaseOneInstance(buttonDB *ButtonDB) (Error error)
- func (backRepoButton *BackRepoButtonStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoButton *BackRepoButtonStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, buttonDB *ButtonDB) (Error error)
- func (backRepoButton *BackRepoButtonStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoButton *BackRepoButtonStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoButton *BackRepoButtonStruct) CommitPhaseOneInstance(button *models.Button) (Error error)
- func (backRepoButton *BackRepoButtonStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoButton *BackRepoButtonStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, button *models.Button) (Error error)
- func (backRepoButton *BackRepoButtonStruct) GetButtonDBFromButtonPtr(button *models.Button) (buttonDB *ButtonDB)
- func (backRepoButton *BackRepoButtonStruct) GetDB() db.DBInterface
- func (backRepoButton *BackRepoButtonStruct) GetStage() (stage *models.Stage)
- func (backRepoButton *BackRepoButtonStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoButton *BackRepoButtonStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, button *models.Button) (Error error)
- func (backRepoButton *BackRepoButtonStruct) RestorePhaseOne(dirPath string)
- func (backRepoButton *BackRepoButtonStruct) RestorePhaseTwo()
- func (backRepoButton *BackRepoButtonStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoCursorStruct
- func (backRepoCursor *BackRepoCursorStruct) Backup(dirPath string)
- func (backRepoCursor *BackRepoCursorStruct) BackupXL(file *xlsx.File)
- func (backRepoCursor *BackRepoCursorStruct) CheckoutPhaseOne() (Error error)
- func (backRepoCursor *BackRepoCursorStruct) CheckoutPhaseOneInstance(cursorDB *CursorDB) (Error error)
- func (backRepoCursor *BackRepoCursorStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoCursor *BackRepoCursorStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, cursorDB *CursorDB) (Error error)
- func (backRepoCursor *BackRepoCursorStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoCursor *BackRepoCursorStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoCursor *BackRepoCursorStruct) CommitPhaseOneInstance(cursor *models.Cursor) (Error error)
- func (backRepoCursor *BackRepoCursorStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoCursor *BackRepoCursorStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, cursor *models.Cursor) (Error error)
- func (backRepoCursor *BackRepoCursorStruct) GetCursorDBFromCursorPtr(cursor *models.Cursor) (cursorDB *CursorDB)
- func (backRepoCursor *BackRepoCursorStruct) GetDB() db.DBInterface
- func (backRepoCursor *BackRepoCursorStruct) GetStage() (stage *models.Stage)
- func (backRepoCursor *BackRepoCursorStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoCursor *BackRepoCursorStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, cursor *models.Cursor) (Error error)
- func (backRepoCursor *BackRepoCursorStruct) RestorePhaseOne(dirPath string)
- func (backRepoCursor *BackRepoCursorStruct) RestorePhaseTwo()
- func (backRepoCursor *BackRepoCursorStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoData
- type BackRepoFavIconStruct
- func (backRepoFavIcon *BackRepoFavIconStruct) Backup(dirPath string)
- func (backRepoFavIcon *BackRepoFavIconStruct) BackupXL(file *xlsx.File)
- func (backRepoFavIcon *BackRepoFavIconStruct) CheckoutPhaseOne() (Error error)
- func (backRepoFavIcon *BackRepoFavIconStruct) CheckoutPhaseOneInstance(faviconDB *FavIconDB) (Error error)
- func (backRepoFavIcon *BackRepoFavIconStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoFavIcon *BackRepoFavIconStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, faviconDB *FavIconDB) (Error error)
- func (backRepoFavIcon *BackRepoFavIconStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoFavIcon *BackRepoFavIconStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoFavIcon *BackRepoFavIconStruct) CommitPhaseOneInstance(favicon *models.FavIcon) (Error error)
- func (backRepoFavIcon *BackRepoFavIconStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoFavIcon *BackRepoFavIconStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, favicon *models.FavIcon) (Error error)
- func (backRepoFavIcon *BackRepoFavIconStruct) GetDB() db.DBInterface
- func (backRepoFavIcon *BackRepoFavIconStruct) GetFavIconDBFromFavIconPtr(favicon *models.FavIcon) (faviconDB *FavIconDB)
- func (backRepoFavIcon *BackRepoFavIconStruct) GetStage() (stage *models.Stage)
- func (backRepoFavIcon *BackRepoFavIconStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoFavIcon *BackRepoFavIconStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, favicon *models.FavIcon) (Error error)
- func (backRepoFavIcon *BackRepoFavIconStruct) RestorePhaseOne(dirPath string)
- func (backRepoFavIcon *BackRepoFavIconStruct) RestorePhaseTwo()
- func (backRepoFavIcon *BackRepoFavIconStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoFormStruct
- func (backRepoForm *BackRepoFormStruct) Backup(dirPath string)
- func (backRepoForm *BackRepoFormStruct) BackupXL(file *xlsx.File)
- func (backRepoForm *BackRepoFormStruct) CheckoutPhaseOne() (Error error)
- func (backRepoForm *BackRepoFormStruct) CheckoutPhaseOneInstance(formDB *FormDB) (Error error)
- func (backRepoForm *BackRepoFormStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoForm *BackRepoFormStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, formDB *FormDB) (Error error)
- func (backRepoForm *BackRepoFormStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoForm *BackRepoFormStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoForm *BackRepoFormStruct) CommitPhaseOneInstance(form *models.Form) (Error error)
- func (backRepoForm *BackRepoFormStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoForm *BackRepoFormStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, form *models.Form) (Error error)
- func (backRepoForm *BackRepoFormStruct) GetDB() db.DBInterface
- func (backRepoForm *BackRepoFormStruct) GetFormDBFromFormPtr(form *models.Form) (formDB *FormDB)
- func (backRepoForm *BackRepoFormStruct) GetStage() (stage *models.Stage)
- func (backRepoForm *BackRepoFormStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoForm *BackRepoFormStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, form *models.Form) (Error error)
- func (backRepoForm *BackRepoFormStruct) RestorePhaseOne(dirPath string)
- func (backRepoForm *BackRepoFormStruct) RestorePhaseTwo()
- func (backRepoForm *BackRepoFormStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoLoadStruct
- func (backRepoLoad *BackRepoLoadStruct) Backup(dirPath string)
- func (backRepoLoad *BackRepoLoadStruct) BackupXL(file *xlsx.File)
- func (backRepoLoad *BackRepoLoadStruct) CheckoutPhaseOne() (Error error)
- func (backRepoLoad *BackRepoLoadStruct) CheckoutPhaseOneInstance(loadDB *LoadDB) (Error error)
- func (backRepoLoad *BackRepoLoadStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoLoad *BackRepoLoadStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, loadDB *LoadDB) (Error error)
- func (backRepoLoad *BackRepoLoadStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoLoad *BackRepoLoadStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoLoad *BackRepoLoadStruct) CommitPhaseOneInstance(load *models.Load) (Error error)
- func (backRepoLoad *BackRepoLoadStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoLoad *BackRepoLoadStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, load *models.Load) (Error error)
- func (backRepoLoad *BackRepoLoadStruct) GetDB() db.DBInterface
- func (backRepoLoad *BackRepoLoadStruct) GetLoadDBFromLoadPtr(load *models.Load) (loadDB *LoadDB)
- func (backRepoLoad *BackRepoLoadStruct) GetStage() (stage *models.Stage)
- func (backRepoLoad *BackRepoLoadStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoLoad *BackRepoLoadStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, load *models.Load) (Error error)
- func (backRepoLoad *BackRepoLoadStruct) RestorePhaseOne(dirPath string)
- func (backRepoLoad *BackRepoLoadStruct) RestorePhaseTwo()
- func (backRepoLoad *BackRepoLoadStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoLogoOnTheLeftStruct
- func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) Backup(dirPath string)
- func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) BackupXL(file *xlsx.File)
- func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) CheckoutPhaseOne() (Error error)
- func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) CheckoutPhaseOneInstance(logoontheleftDB *LogoOnTheLeftDB) (Error error)
- func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, logoontheleftDB *LogoOnTheLeftDB) (Error error)
- func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) CommitPhaseOneInstance(logoontheleft *models.LogoOnTheLeft) (Error error)
- func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, logoontheleft *models.LogoOnTheLeft) (Error error)
- func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) GetDB() db.DBInterface
- func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) GetLogoOnTheLeftDBFromLogoOnTheLeftPtr(logoontheleft *models.LogoOnTheLeft) (logoontheleftDB *LogoOnTheLeftDB)
- func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) GetStage() (stage *models.Stage)
- func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, logoontheleft *models.LogoOnTheLeft) (Error error)
- func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) RestorePhaseOne(dirPath string)
- func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) RestorePhaseTwo()
- func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoLogoOnTheRightStruct
- func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) Backup(dirPath string)
- func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) BackupXL(file *xlsx.File)
- func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) CheckoutPhaseOne() (Error error)
- func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) CheckoutPhaseOneInstance(logoontherightDB *LogoOnTheRightDB) (Error error)
- func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, logoontherightDB *LogoOnTheRightDB) (Error error)
- func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) CommitPhaseOneInstance(logoontheright *models.LogoOnTheRight) (Error error)
- func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, logoontheright *models.LogoOnTheRight) (Error error)
- func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) GetDB() db.DBInterface
- func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) GetLogoOnTheRightDBFromLogoOnTheRightPtr(logoontheright *models.LogoOnTheRight) (logoontherightDB *LogoOnTheRightDB)
- func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) GetStage() (stage *models.Stage)
- func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, logoontheright *models.LogoOnTheRight) (Error error)
- func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) RestorePhaseOne(dirPath string)
- func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) RestorePhaseTwo()
- func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoMarkdownStruct
- func (backRepoMarkdown *BackRepoMarkdownStruct) Backup(dirPath string)
- func (backRepoMarkdown *BackRepoMarkdownStruct) BackupXL(file *xlsx.File)
- func (backRepoMarkdown *BackRepoMarkdownStruct) CheckoutPhaseOne() (Error error)
- func (backRepoMarkdown *BackRepoMarkdownStruct) CheckoutPhaseOneInstance(markdownDB *MarkdownDB) (Error error)
- func (backRepoMarkdown *BackRepoMarkdownStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoMarkdown *BackRepoMarkdownStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, markdownDB *MarkdownDB) (Error error)
- func (backRepoMarkdown *BackRepoMarkdownStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoMarkdown *BackRepoMarkdownStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoMarkdown *BackRepoMarkdownStruct) CommitPhaseOneInstance(markdown *models.Markdown) (Error error)
- func (backRepoMarkdown *BackRepoMarkdownStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoMarkdown *BackRepoMarkdownStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, markdown *models.Markdown) (Error error)
- func (backRepoMarkdown *BackRepoMarkdownStruct) GetDB() db.DBInterface
- func (backRepoMarkdown *BackRepoMarkdownStruct) GetMarkdownDBFromMarkdownPtr(markdown *models.Markdown) (markdownDB *MarkdownDB)
- func (backRepoMarkdown *BackRepoMarkdownStruct) GetStage() (stage *models.Stage)
- func (backRepoMarkdown *BackRepoMarkdownStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoMarkdown *BackRepoMarkdownStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, markdown *models.Markdown) (Error error)
- func (backRepoMarkdown *BackRepoMarkdownStruct) RestorePhaseOne(dirPath string)
- func (backRepoMarkdown *BackRepoMarkdownStruct) RestorePhaseTwo()
- func (backRepoMarkdown *BackRepoMarkdownStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoSliderStruct
- func (backRepoSlider *BackRepoSliderStruct) Backup(dirPath string)
- func (backRepoSlider *BackRepoSliderStruct) BackupXL(file *xlsx.File)
- func (backRepoSlider *BackRepoSliderStruct) CheckoutPhaseOne() (Error error)
- func (backRepoSlider *BackRepoSliderStruct) CheckoutPhaseOneInstance(sliderDB *SliderDB) (Error error)
- func (backRepoSlider *BackRepoSliderStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoSlider *BackRepoSliderStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, sliderDB *SliderDB) (Error error)
- func (backRepoSlider *BackRepoSliderStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoSlider *BackRepoSliderStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoSlider *BackRepoSliderStruct) CommitPhaseOneInstance(slider *models.Slider) (Error error)
- func (backRepoSlider *BackRepoSliderStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoSlider *BackRepoSliderStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, slider *models.Slider) (Error error)
- func (backRepoSlider *BackRepoSliderStruct) GetDB() db.DBInterface
- func (backRepoSlider *BackRepoSliderStruct) GetSliderDBFromSliderPtr(slider *models.Slider) (sliderDB *SliderDB)
- func (backRepoSlider *BackRepoSliderStruct) GetStage() (stage *models.Stage)
- func (backRepoSlider *BackRepoSliderStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoSlider *BackRepoSliderStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, slider *models.Slider) (Error error)
- func (backRepoSlider *BackRepoSliderStruct) RestorePhaseOne(dirPath string)
- func (backRepoSlider *BackRepoSliderStruct) RestorePhaseTwo()
- func (backRepoSlider *BackRepoSliderStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoSplitStruct
- func (backRepoSplit *BackRepoSplitStruct) Backup(dirPath string)
- func (backRepoSplit *BackRepoSplitStruct) BackupXL(file *xlsx.File)
- func (backRepoSplit *BackRepoSplitStruct) CheckoutPhaseOne() (Error error)
- func (backRepoSplit *BackRepoSplitStruct) CheckoutPhaseOneInstance(splitDB *SplitDB) (Error error)
- func (backRepoSplit *BackRepoSplitStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoSplit *BackRepoSplitStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, splitDB *SplitDB) (Error error)
- func (backRepoSplit *BackRepoSplitStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoSplit *BackRepoSplitStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoSplit *BackRepoSplitStruct) CommitPhaseOneInstance(split *models.Split) (Error error)
- func (backRepoSplit *BackRepoSplitStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoSplit *BackRepoSplitStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, split *models.Split) (Error error)
- func (backRepoSplit *BackRepoSplitStruct) GetDB() db.DBInterface
- func (backRepoSplit *BackRepoSplitStruct) GetSplitDBFromSplitPtr(split *models.Split) (splitDB *SplitDB)
- func (backRepoSplit *BackRepoSplitStruct) GetStage() (stage *models.Stage)
- func (backRepoSplit *BackRepoSplitStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoSplit *BackRepoSplitStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, split *models.Split) (Error error)
- func (backRepoSplit *BackRepoSplitStruct) RestorePhaseOne(dirPath string)
- func (backRepoSplit *BackRepoSplitStruct) RestorePhaseTwo()
- func (backRepoSplit *BackRepoSplitStruct) 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) CheckoutAsSplit(assplit *models.AsSplit)
- func (backRepo *BackRepoStruct) CheckoutAsSplitArea(assplitarea *models.AsSplitArea)
- func (backRepo *BackRepoStruct) CheckoutButton(button *models.Button)
- func (backRepo *BackRepoStruct) CheckoutCursor(cursor *models.Cursor)
- func (backRepo *BackRepoStruct) CheckoutFavIcon(favicon *models.FavIcon)
- func (backRepo *BackRepoStruct) CheckoutForm(form *models.Form)
- func (backRepo *BackRepoStruct) CheckoutLoad(load *models.Load)
- func (backRepo *BackRepoStruct) CheckoutLogoOnTheLeft(logoontheleft *models.LogoOnTheLeft)
- func (backRepo *BackRepoStruct) CheckoutLogoOnTheRight(logoontheright *models.LogoOnTheRight)
- func (backRepo *BackRepoStruct) CheckoutMarkdown(markdown *models.Markdown)
- func (backRepo *BackRepoStruct) CheckoutSlider(slider *models.Slider)
- func (backRepo *BackRepoStruct) CheckoutSplit(split *models.Split)
- func (backRepo *BackRepoStruct) CheckoutSvg(svg *models.Svg)
- func (backRepo *BackRepoStruct) CheckoutTable(table *models.Table)
- func (backRepo *BackRepoStruct) CheckoutTitle(title *models.Title)
- func (backRepo *BackRepoStruct) CheckoutTone(tone *models.Tone)
- func (backRepo *BackRepoStruct) CheckoutTree(tree *models.Tree)
- func (backRepo *BackRepoStruct) CheckoutView(view *models.View)
- func (backRepo *BackRepoStruct) CheckoutXlsx(xlsx *models.Xlsx)
- func (backRepo *BackRepoStruct) Commit(stage *models.Stage)
- func (backRepo *BackRepoStruct) CommitAsSplit(assplit *models.AsSplit)
- func (backRepo *BackRepoStruct) CommitAsSplitArea(assplitarea *models.AsSplitArea)
- func (backRepo *BackRepoStruct) CommitButton(button *models.Button)
- func (backRepo *BackRepoStruct) CommitCursor(cursor *models.Cursor)
- func (backRepo *BackRepoStruct) CommitFavIcon(favicon *models.FavIcon)
- func (backRepo *BackRepoStruct) CommitForm(form *models.Form)
- func (backRepo *BackRepoStruct) CommitLoad(load *models.Load)
- func (backRepo *BackRepoStruct) CommitLogoOnTheLeft(logoontheleft *models.LogoOnTheLeft)
- func (backRepo *BackRepoStruct) CommitLogoOnTheRight(logoontheright *models.LogoOnTheRight)
- func (backRepo *BackRepoStruct) CommitMarkdown(markdown *models.Markdown)
- func (backRepo *BackRepoStruct) CommitSlider(slider *models.Slider)
- func (backRepo *BackRepoStruct) CommitSplit(split *models.Split)
- func (backRepo *BackRepoStruct) CommitSvg(svg *models.Svg)
- func (backRepo *BackRepoStruct) CommitTable(table *models.Table)
- func (backRepo *BackRepoStruct) CommitTitle(title *models.Title)
- func (backRepo *BackRepoStruct) CommitTone(tone *models.Tone)
- func (backRepo *BackRepoStruct) CommitTree(tree *models.Tree)
- func (backRepo *BackRepoStruct) CommitView(view *models.View)
- func (backRepo *BackRepoStruct) CommitXlsx(xlsx *models.Xlsx)
- 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 BackRepoSvgStruct
- func (backRepoSvg *BackRepoSvgStruct) Backup(dirPath string)
- func (backRepoSvg *BackRepoSvgStruct) BackupXL(file *xlsx.File)
- func (backRepoSvg *BackRepoSvgStruct) CheckoutPhaseOne() (Error error)
- func (backRepoSvg *BackRepoSvgStruct) CheckoutPhaseOneInstance(svgDB *SvgDB) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, svgDB *SvgDB) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) CommitPhaseOneInstance(svg *models.Svg) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, svg *models.Svg) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) GetDB() db.DBInterface
- func (backRepoSvg *BackRepoSvgStruct) GetStage() (stage *models.Stage)
- func (backRepoSvg *BackRepoSvgStruct) GetSvgDBFromSvgPtr(svg *models.Svg) (svgDB *SvgDB)
- func (backRepoSvg *BackRepoSvgStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, svg *models.Svg) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) RestorePhaseOne(dirPath string)
- func (backRepoSvg *BackRepoSvgStruct) RestorePhaseTwo()
- func (backRepoSvg *BackRepoSvgStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoTableStruct
- func (backRepoTable *BackRepoTableStruct) Backup(dirPath string)
- func (backRepoTable *BackRepoTableStruct) BackupXL(file *xlsx.File)
- func (backRepoTable *BackRepoTableStruct) CheckoutPhaseOne() (Error error)
- func (backRepoTable *BackRepoTableStruct) CheckoutPhaseOneInstance(tableDB *TableDB) (Error error)
- func (backRepoTable *BackRepoTableStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTable *BackRepoTableStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, tableDB *TableDB) (Error error)
- func (backRepoTable *BackRepoTableStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoTable *BackRepoTableStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoTable *BackRepoTableStruct) CommitPhaseOneInstance(table *models.Table) (Error error)
- func (backRepoTable *BackRepoTableStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTable *BackRepoTableStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, table *models.Table) (Error error)
- func (backRepoTable *BackRepoTableStruct) GetDB() db.DBInterface
- func (backRepoTable *BackRepoTableStruct) GetStage() (stage *models.Stage)
- func (backRepoTable *BackRepoTableStruct) GetTableDBFromTablePtr(table *models.Table) (tableDB *TableDB)
- func (backRepoTable *BackRepoTableStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoTable *BackRepoTableStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, table *models.Table) (Error error)
- func (backRepoTable *BackRepoTableStruct) RestorePhaseOne(dirPath string)
- func (backRepoTable *BackRepoTableStruct) RestorePhaseTwo()
- func (backRepoTable *BackRepoTableStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoTitleStruct
- func (backRepoTitle *BackRepoTitleStruct) Backup(dirPath string)
- func (backRepoTitle *BackRepoTitleStruct) BackupXL(file *xlsx.File)
- func (backRepoTitle *BackRepoTitleStruct) CheckoutPhaseOne() (Error error)
- func (backRepoTitle *BackRepoTitleStruct) CheckoutPhaseOneInstance(titleDB *TitleDB) (Error error)
- func (backRepoTitle *BackRepoTitleStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTitle *BackRepoTitleStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, titleDB *TitleDB) (Error error)
- func (backRepoTitle *BackRepoTitleStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoTitle *BackRepoTitleStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoTitle *BackRepoTitleStruct) CommitPhaseOneInstance(title *models.Title) (Error error)
- func (backRepoTitle *BackRepoTitleStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTitle *BackRepoTitleStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, title *models.Title) (Error error)
- func (backRepoTitle *BackRepoTitleStruct) GetDB() db.DBInterface
- func (backRepoTitle *BackRepoTitleStruct) GetStage() (stage *models.Stage)
- func (backRepoTitle *BackRepoTitleStruct) GetTitleDBFromTitlePtr(title *models.Title) (titleDB *TitleDB)
- func (backRepoTitle *BackRepoTitleStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoTitle *BackRepoTitleStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, title *models.Title) (Error error)
- func (backRepoTitle *BackRepoTitleStruct) RestorePhaseOne(dirPath string)
- func (backRepoTitle *BackRepoTitleStruct) RestorePhaseTwo()
- func (backRepoTitle *BackRepoTitleStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoToneStruct
- func (backRepoTone *BackRepoToneStruct) Backup(dirPath string)
- func (backRepoTone *BackRepoToneStruct) BackupXL(file *xlsx.File)
- func (backRepoTone *BackRepoToneStruct) CheckoutPhaseOne() (Error error)
- func (backRepoTone *BackRepoToneStruct) CheckoutPhaseOneInstance(toneDB *ToneDB) (Error error)
- func (backRepoTone *BackRepoToneStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTone *BackRepoToneStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, toneDB *ToneDB) (Error error)
- func (backRepoTone *BackRepoToneStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoTone *BackRepoToneStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoTone *BackRepoToneStruct) CommitPhaseOneInstance(tone *models.Tone) (Error error)
- func (backRepoTone *BackRepoToneStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTone *BackRepoToneStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, tone *models.Tone) (Error error)
- func (backRepoTone *BackRepoToneStruct) GetDB() db.DBInterface
- func (backRepoTone *BackRepoToneStruct) GetStage() (stage *models.Stage)
- func (backRepoTone *BackRepoToneStruct) GetToneDBFromTonePtr(tone *models.Tone) (toneDB *ToneDB)
- func (backRepoTone *BackRepoToneStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoTone *BackRepoToneStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, tone *models.Tone) (Error error)
- func (backRepoTone *BackRepoToneStruct) RestorePhaseOne(dirPath string)
- func (backRepoTone *BackRepoToneStruct) RestorePhaseTwo()
- func (backRepoTone *BackRepoToneStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoTreeStruct
- func (backRepoTree *BackRepoTreeStruct) Backup(dirPath string)
- func (backRepoTree *BackRepoTreeStruct) BackupXL(file *xlsx.File)
- func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseOne() (Error error)
- func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseOneInstance(treeDB *TreeDB) (Error error)
- func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, treeDB *TreeDB) (Error error)
- func (backRepoTree *BackRepoTreeStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoTree *BackRepoTreeStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoTree *BackRepoTreeStruct) CommitPhaseOneInstance(tree *models.Tree) (Error error)
- func (backRepoTree *BackRepoTreeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTree *BackRepoTreeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, tree *models.Tree) (Error error)
- func (backRepoTree *BackRepoTreeStruct) GetDB() db.DBInterface
- func (backRepoTree *BackRepoTreeStruct) GetStage() (stage *models.Stage)
- func (backRepoTree *BackRepoTreeStruct) GetTreeDBFromTreePtr(tree *models.Tree) (treeDB *TreeDB)
- func (backRepoTree *BackRepoTreeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoTree *BackRepoTreeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, tree *models.Tree) (Error error)
- func (backRepoTree *BackRepoTreeStruct) RestorePhaseOne(dirPath string)
- func (backRepoTree *BackRepoTreeStruct) RestorePhaseTwo()
- func (backRepoTree *BackRepoTreeStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoViewStruct
- func (backRepoView *BackRepoViewStruct) Backup(dirPath string)
- func (backRepoView *BackRepoViewStruct) BackupXL(file *xlsx.File)
- func (backRepoView *BackRepoViewStruct) CheckoutPhaseOne() (Error error)
- func (backRepoView *BackRepoViewStruct) CheckoutPhaseOneInstance(viewDB *ViewDB) (Error error)
- func (backRepoView *BackRepoViewStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoView *BackRepoViewStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, viewDB *ViewDB) (Error error)
- func (backRepoView *BackRepoViewStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoView *BackRepoViewStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoView *BackRepoViewStruct) CommitPhaseOneInstance(view *models.View) (Error error)
- func (backRepoView *BackRepoViewStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoView *BackRepoViewStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, view *models.View) (Error error)
- func (backRepoView *BackRepoViewStruct) GetDB() db.DBInterface
- func (backRepoView *BackRepoViewStruct) GetStage() (stage *models.Stage)
- func (backRepoView *BackRepoViewStruct) GetViewDBFromViewPtr(view *models.View) (viewDB *ViewDB)
- func (backRepoView *BackRepoViewStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoView *BackRepoViewStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, view *models.View) (Error error)
- func (backRepoView *BackRepoViewStruct) RestorePhaseOne(dirPath string)
- func (backRepoView *BackRepoViewStruct) RestorePhaseTwo()
- func (backRepoView *BackRepoViewStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoXlsxStruct
- func (backRepoXlsx *BackRepoXlsxStruct) Backup(dirPath string)
- func (backRepoXlsx *BackRepoXlsxStruct) BackupXL(file *xlsx.File)
- func (backRepoXlsx *BackRepoXlsxStruct) CheckoutPhaseOne() (Error error)
- func (backRepoXlsx *BackRepoXlsxStruct) CheckoutPhaseOneInstance(xlsxDB *XlsxDB) (Error error)
- func (backRepoXlsx *BackRepoXlsxStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoXlsx *BackRepoXlsxStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, xlsxDB *XlsxDB) (Error error)
- func (backRepoXlsx *BackRepoXlsxStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoXlsx *BackRepoXlsxStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoXlsx *BackRepoXlsxStruct) CommitPhaseOneInstance(xlsx *models.Xlsx) (Error error)
- func (backRepoXlsx *BackRepoXlsxStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoXlsx *BackRepoXlsxStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, xlsx *models.Xlsx) (Error error)
- func (backRepoXlsx *BackRepoXlsxStruct) GetDB() db.DBInterface
- func (backRepoXlsx *BackRepoXlsxStruct) GetStage() (stage *models.Stage)
- func (backRepoXlsx *BackRepoXlsxStruct) GetXlsxDBFromXlsxPtr(xlsx *models.Xlsx) (xlsxDB *XlsxDB)
- func (backRepoXlsx *BackRepoXlsxStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoXlsx *BackRepoXlsxStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, xlsx *models.Xlsx) (Error error)
- func (backRepoXlsx *BackRepoXlsxStruct) RestorePhaseOne(dirPath string)
- func (backRepoXlsx *BackRepoXlsxStruct) RestorePhaseTwo()
- func (backRepoXlsx *BackRepoXlsxStruct) RestoreXLPhaseOne(file *xlsx.File)
- type ButtonAPI
- type ButtonDB
- func (buttonDB *ButtonDB) CopyBasicFieldsFromButton(button *models.Button)
- func (buttonDB *ButtonDB) CopyBasicFieldsFromButtonWOP(button *ButtonWOP)
- func (buttonDB *ButtonDB) CopyBasicFieldsFromButton_WOP(button *models.Button_WOP)
- func (buttonDB *ButtonDB) CopyBasicFieldsToButton(button *models.Button)
- func (buttonDB *ButtonDB) CopyBasicFieldsToButtonWOP(button *ButtonWOP)
- func (buttonDB *ButtonDB) CopyBasicFieldsToButton_WOP(button *models.Button_WOP)
- func (buttonDB *ButtonDB) DecodePointers(backRepo *BackRepoStruct, button *models.Button)
- type ButtonDBResponse
- type ButtonDBs
- type ButtonPointersEncoding
- type ButtonWOP
- type CursorAPI
- type CursorDB
- func (cursorDB *CursorDB) CopyBasicFieldsFromCursor(cursor *models.Cursor)
- func (cursorDB *CursorDB) CopyBasicFieldsFromCursorWOP(cursor *CursorWOP)
- func (cursorDB *CursorDB) CopyBasicFieldsFromCursor_WOP(cursor *models.Cursor_WOP)
- func (cursorDB *CursorDB) CopyBasicFieldsToCursor(cursor *models.Cursor)
- func (cursorDB *CursorDB) CopyBasicFieldsToCursorWOP(cursor *CursorWOP)
- func (cursorDB *CursorDB) CopyBasicFieldsToCursor_WOP(cursor *models.Cursor_WOP)
- func (cursorDB *CursorDB) DecodePointers(backRepo *BackRepoStruct, cursor *models.Cursor)
- type CursorDBResponse
- type CursorDBs
- type CursorPointersEncoding
- type CursorWOP
- 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 FavIconAPI
- type FavIconDB
- func (faviconDB *FavIconDB) CopyBasicFieldsFromFavIcon(favicon *models.FavIcon)
- func (faviconDB *FavIconDB) CopyBasicFieldsFromFavIconWOP(favicon *FavIconWOP)
- func (faviconDB *FavIconDB) CopyBasicFieldsFromFavIcon_WOP(favicon *models.FavIcon_WOP)
- func (faviconDB *FavIconDB) CopyBasicFieldsToFavIcon(favicon *models.FavIcon)
- func (faviconDB *FavIconDB) CopyBasicFieldsToFavIconWOP(favicon *FavIconWOP)
- func (faviconDB *FavIconDB) CopyBasicFieldsToFavIcon_WOP(favicon *models.FavIcon_WOP)
- func (faviconDB *FavIconDB) DecodePointers(backRepo *BackRepoStruct, favicon *models.FavIcon)
- type FavIconDBResponse
- type FavIconDBs
- type FavIconPointersEncoding
- type FavIconWOP
- type FormAPI
- type FormDB
- func (formDB *FormDB) CopyBasicFieldsFromForm(form *models.Form)
- func (formDB *FormDB) CopyBasicFieldsFromFormWOP(form *FormWOP)
- func (formDB *FormDB) CopyBasicFieldsFromForm_WOP(form *models.Form_WOP)
- func (formDB *FormDB) CopyBasicFieldsToForm(form *models.Form)
- func (formDB *FormDB) CopyBasicFieldsToFormWOP(form *FormWOP)
- func (formDB *FormDB) CopyBasicFieldsToForm_WOP(form *models.Form_WOP)
- func (formDB *FormDB) DecodePointers(backRepo *BackRepoStruct, form *models.Form)
- type FormDBResponse
- type FormDBs
- type FormPointersEncoding
- type FormWOP
- type GongstructDB
- type IntSlice
- type LoadAPI
- type LoadDB
- func (loadDB *LoadDB) CopyBasicFieldsFromLoad(load *models.Load)
- func (loadDB *LoadDB) CopyBasicFieldsFromLoadWOP(load *LoadWOP)
- func (loadDB *LoadDB) CopyBasicFieldsFromLoad_WOP(load *models.Load_WOP)
- func (loadDB *LoadDB) CopyBasicFieldsToLoad(load *models.Load)
- func (loadDB *LoadDB) CopyBasicFieldsToLoadWOP(load *LoadWOP)
- func (loadDB *LoadDB) CopyBasicFieldsToLoad_WOP(load *models.Load_WOP)
- func (loadDB *LoadDB) DecodePointers(backRepo *BackRepoStruct, load *models.Load)
- type LoadDBResponse
- type LoadDBs
- type LoadPointersEncoding
- type LoadWOP
- type LogoOnTheLeftAPI
- type LogoOnTheLeftDB
- func (logoontheleftDB *LogoOnTheLeftDB) CopyBasicFieldsFromLogoOnTheLeft(logoontheleft *models.LogoOnTheLeft)
- func (logoontheleftDB *LogoOnTheLeftDB) CopyBasicFieldsFromLogoOnTheLeftWOP(logoontheleft *LogoOnTheLeftWOP)
- func (logoontheleftDB *LogoOnTheLeftDB) CopyBasicFieldsFromLogoOnTheLeft_WOP(logoontheleft *models.LogoOnTheLeft_WOP)
- func (logoontheleftDB *LogoOnTheLeftDB) CopyBasicFieldsToLogoOnTheLeft(logoontheleft *models.LogoOnTheLeft)
- func (logoontheleftDB *LogoOnTheLeftDB) CopyBasicFieldsToLogoOnTheLeftWOP(logoontheleft *LogoOnTheLeftWOP)
- func (logoontheleftDB *LogoOnTheLeftDB) CopyBasicFieldsToLogoOnTheLeft_WOP(logoontheleft *models.LogoOnTheLeft_WOP)
- func (logoontheleftDB *LogoOnTheLeftDB) DecodePointers(backRepo *BackRepoStruct, logoontheleft *models.LogoOnTheLeft)
- type LogoOnTheLeftDBResponse
- type LogoOnTheLeftDBs
- type LogoOnTheLeftPointersEncoding
- type LogoOnTheLeftWOP
- type LogoOnTheRightAPI
- type LogoOnTheRightDB
- func (logoontherightDB *LogoOnTheRightDB) CopyBasicFieldsFromLogoOnTheRight(logoontheright *models.LogoOnTheRight)
- func (logoontherightDB *LogoOnTheRightDB) CopyBasicFieldsFromLogoOnTheRightWOP(logoontheright *LogoOnTheRightWOP)
- func (logoontherightDB *LogoOnTheRightDB) CopyBasicFieldsFromLogoOnTheRight_WOP(logoontheright *models.LogoOnTheRight_WOP)
- func (logoontherightDB *LogoOnTheRightDB) CopyBasicFieldsToLogoOnTheRight(logoontheright *models.LogoOnTheRight)
- func (logoontherightDB *LogoOnTheRightDB) CopyBasicFieldsToLogoOnTheRightWOP(logoontheright *LogoOnTheRightWOP)
- func (logoontherightDB *LogoOnTheRightDB) CopyBasicFieldsToLogoOnTheRight_WOP(logoontheright *models.LogoOnTheRight_WOP)
- func (logoontherightDB *LogoOnTheRightDB) DecodePointers(backRepo *BackRepoStruct, logoontheright *models.LogoOnTheRight)
- type LogoOnTheRightDBResponse
- type LogoOnTheRightDBs
- type LogoOnTheRightPointersEncoding
- type LogoOnTheRightWOP
- type MarkdownAPI
- type MarkdownDB
- func (markdownDB *MarkdownDB) CopyBasicFieldsFromMarkdown(markdown *models.Markdown)
- func (markdownDB *MarkdownDB) CopyBasicFieldsFromMarkdownWOP(markdown *MarkdownWOP)
- func (markdownDB *MarkdownDB) CopyBasicFieldsFromMarkdown_WOP(markdown *models.Markdown_WOP)
- func (markdownDB *MarkdownDB) CopyBasicFieldsToMarkdown(markdown *models.Markdown)
- func (markdownDB *MarkdownDB) CopyBasicFieldsToMarkdownWOP(markdown *MarkdownWOP)
- func (markdownDB *MarkdownDB) CopyBasicFieldsToMarkdown_WOP(markdown *models.Markdown_WOP)
- func (markdownDB *MarkdownDB) DecodePointers(backRepo *BackRepoStruct, markdown *models.Markdown)
- type MarkdownDBResponse
- type MarkdownDBs
- type MarkdownPointersEncoding
- type MarkdownWOP
- type SliderAPI
- type SliderDB
- func (sliderDB *SliderDB) CopyBasicFieldsFromSlider(slider *models.Slider)
- func (sliderDB *SliderDB) CopyBasicFieldsFromSliderWOP(slider *SliderWOP)
- func (sliderDB *SliderDB) CopyBasicFieldsFromSlider_WOP(slider *models.Slider_WOP)
- func (sliderDB *SliderDB) CopyBasicFieldsToSlider(slider *models.Slider)
- func (sliderDB *SliderDB) CopyBasicFieldsToSliderWOP(slider *SliderWOP)
- func (sliderDB *SliderDB) CopyBasicFieldsToSlider_WOP(slider *models.Slider_WOP)
- func (sliderDB *SliderDB) DecodePointers(backRepo *BackRepoStruct, slider *models.Slider)
- type SliderDBResponse
- type SliderDBs
- type SliderPointersEncoding
- type SliderWOP
- type SplitAPI
- type SplitDB
- func (splitDB *SplitDB) CopyBasicFieldsFromSplit(split *models.Split)
- func (splitDB *SplitDB) CopyBasicFieldsFromSplitWOP(split *SplitWOP)
- func (splitDB *SplitDB) CopyBasicFieldsFromSplit_WOP(split *models.Split_WOP)
- func (splitDB *SplitDB) CopyBasicFieldsToSplit(split *models.Split)
- func (splitDB *SplitDB) CopyBasicFieldsToSplitWOP(split *SplitWOP)
- func (splitDB *SplitDB) CopyBasicFieldsToSplit_WOP(split *models.Split_WOP)
- func (splitDB *SplitDB) DecodePointers(backRepo *BackRepoStruct, split *models.Split)
- type SplitDBResponse
- type SplitDBs
- type SplitPointersEncoding
- type SplitWOP
- type SvgAPI
- type SvgDB
- func (svgDB *SvgDB) CopyBasicFieldsFromSvg(svg *models.Svg)
- func (svgDB *SvgDB) CopyBasicFieldsFromSvgWOP(svg *SvgWOP)
- func (svgDB *SvgDB) CopyBasicFieldsFromSvg_WOP(svg *models.Svg_WOP)
- func (svgDB *SvgDB) CopyBasicFieldsToSvg(svg *models.Svg)
- func (svgDB *SvgDB) CopyBasicFieldsToSvgWOP(svg *SvgWOP)
- func (svgDB *SvgDB) CopyBasicFieldsToSvg_WOP(svg *models.Svg_WOP)
- func (svgDB *SvgDB) DecodePointers(backRepo *BackRepoStruct, svg *models.Svg)
- type SvgDBResponse
- type SvgDBs
- type SvgPointersEncoding
- type SvgWOP
- type TableAPI
- type TableDB
- func (tableDB *TableDB) CopyBasicFieldsFromTable(table *models.Table)
- func (tableDB *TableDB) CopyBasicFieldsFromTableWOP(table *TableWOP)
- func (tableDB *TableDB) CopyBasicFieldsFromTable_WOP(table *models.Table_WOP)
- func (tableDB *TableDB) CopyBasicFieldsToTable(table *models.Table)
- func (tableDB *TableDB) CopyBasicFieldsToTableWOP(table *TableWOP)
- func (tableDB *TableDB) CopyBasicFieldsToTable_WOP(table *models.Table_WOP)
- func (tableDB *TableDB) DecodePointers(backRepo *BackRepoStruct, table *models.Table)
- type TableDBResponse
- type TableDBs
- type TablePointersEncoding
- type TableWOP
- type TitleAPI
- type TitleDB
- func (titleDB *TitleDB) CopyBasicFieldsFromTitle(title *models.Title)
- func (titleDB *TitleDB) CopyBasicFieldsFromTitleWOP(title *TitleWOP)
- func (titleDB *TitleDB) CopyBasicFieldsFromTitle_WOP(title *models.Title_WOP)
- func (titleDB *TitleDB) CopyBasicFieldsToTitle(title *models.Title)
- func (titleDB *TitleDB) CopyBasicFieldsToTitleWOP(title *TitleWOP)
- func (titleDB *TitleDB) CopyBasicFieldsToTitle_WOP(title *models.Title_WOP)
- func (titleDB *TitleDB) DecodePointers(backRepo *BackRepoStruct, title *models.Title)
- type TitleDBResponse
- type TitleDBs
- type TitlePointersEncoding
- type TitleWOP
- type ToneAPI
- type ToneDB
- func (toneDB *ToneDB) CopyBasicFieldsFromTone(tone *models.Tone)
- func (toneDB *ToneDB) CopyBasicFieldsFromToneWOP(tone *ToneWOP)
- func (toneDB *ToneDB) CopyBasicFieldsFromTone_WOP(tone *models.Tone_WOP)
- func (toneDB *ToneDB) CopyBasicFieldsToTone(tone *models.Tone)
- func (toneDB *ToneDB) CopyBasicFieldsToToneWOP(tone *ToneWOP)
- func (toneDB *ToneDB) CopyBasicFieldsToTone_WOP(tone *models.Tone_WOP)
- func (toneDB *ToneDB) DecodePointers(backRepo *BackRepoStruct, tone *models.Tone)
- type ToneDBResponse
- type ToneDBs
- type TonePointersEncoding
- type ToneWOP
- type TreeAPI
- type TreeDB
- func (treeDB *TreeDB) CopyBasicFieldsFromTree(tree *models.Tree)
- func (treeDB *TreeDB) CopyBasicFieldsFromTreeWOP(tree *TreeWOP)
- func (treeDB *TreeDB) CopyBasicFieldsFromTree_WOP(tree *models.Tree_WOP)
- func (treeDB *TreeDB) CopyBasicFieldsToTree(tree *models.Tree)
- func (treeDB *TreeDB) CopyBasicFieldsToTreeWOP(tree *TreeWOP)
- func (treeDB *TreeDB) CopyBasicFieldsToTree_WOP(tree *models.Tree_WOP)
- func (treeDB *TreeDB) DecodePointers(backRepo *BackRepoStruct, tree *models.Tree)
- type TreeDBResponse
- type TreeDBs
- type TreePointersEncoding
- type TreeWOP
- type ViewAPI
- type ViewDB
- func (viewDB *ViewDB) CopyBasicFieldsFromView(view *models.View)
- func (viewDB *ViewDB) CopyBasicFieldsFromViewWOP(view *ViewWOP)
- func (viewDB *ViewDB) CopyBasicFieldsFromView_WOP(view *models.View_WOP)
- func (viewDB *ViewDB) CopyBasicFieldsToView(view *models.View)
- func (viewDB *ViewDB) CopyBasicFieldsToViewWOP(view *ViewWOP)
- func (viewDB *ViewDB) CopyBasicFieldsToView_WOP(view *models.View_WOP)
- func (viewDB *ViewDB) DecodePointers(backRepo *BackRepoStruct, view *models.View)
- type ViewDBResponse
- type ViewDBs
- type ViewPointersEncoding
- type ViewWOP
- type XlsxAPI
- type XlsxDB
- func (xlsxDB *XlsxDB) CopyBasicFieldsFromXlsx(xlsx *models.Xlsx)
- func (xlsxDB *XlsxDB) CopyBasicFieldsFromXlsxWOP(xlsx *XlsxWOP)
- func (xlsxDB *XlsxDB) CopyBasicFieldsFromXlsx_WOP(xlsx *models.Xlsx_WOP)
- func (xlsxDB *XlsxDB) CopyBasicFieldsToXlsx(xlsx *models.Xlsx)
- func (xlsxDB *XlsxDB) CopyBasicFieldsToXlsxWOP(xlsx *XlsxWOP)
- func (xlsxDB *XlsxDB) CopyBasicFieldsToXlsx_WOP(xlsx *models.Xlsx_WOP)
- func (xlsxDB *XlsxDB) DecodePointers(backRepo *BackRepoStruct, xlsx *models.Xlsx)
- type XlsxDBResponse
- type XlsxDBs
- type XlsxPointersEncoding
- type XlsxWOP
Constants ¶
This section is empty.
Variables ¶
var AsSplitArea_Fields = []string{
"ID",
"Name",
"ShowNameInHeader",
"Size",
"IsAny",
"HasDiv",
"DivStyle",
}
var AsSplit_Fields = []string{
"ID",
"Name",
"Direction",
}
var BackRepoAsSplitAreaid_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 BackRepoAsSplitid_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 BackRepoButtonid_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 BackRepoCursorid_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 BackRepoFavIconid_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 BackRepoFormid_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 BackRepoLoadid_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 BackRepoLogoOnTheLeftid_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 BackRepoLogoOnTheRightid_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 BackRepoMarkdownid_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 BackRepoSliderid_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 BackRepoSplitid_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 BackRepoSvgid_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 BackRepoTableid_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 BackRepoTitleid_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 BackRepoToneid_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 BackRepoTreeid_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 BackRepoViewid_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 BackRepoXlsxid_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 Button_Fields = []string{
"ID",
"Name",
"StackName",
}
var Cursor_Fields = []string{
"ID",
"Name",
"StackName",
"Style",
}
var FavIcon_Fields = []string{
"ID",
"Name",
"SVG",
}
var Form_Fields = []string{
"ID",
"Name",
"StackName",
}
var Load_Fields = []string{
"ID",
"Name",
"StackName",
}
var LogoOnTheLeft_Fields = []string{
"ID",
"Name",
"Width",
"Height",
"SVG",
}
var LogoOnTheRight_Fields = []string{
"ID",
"Name",
"Width",
"Height",
"SVG",
}
var Markdown_Fields = []string{
"ID",
"Name",
"StackName",
}
var Slider_Fields = []string{
"ID",
"Name",
"StackName",
}
var Split_Fields = []string{
"ID",
"Name",
"StackName",
}
var Svg_Fields = []string{
"ID",
"Name",
"StackName",
"Style",
}
var Table_Fields = []string{
"ID",
"Name",
"StackName",
}
var Title_Fields = []string{
"ID",
"Name",
}
var Tone_Fields = []string{
"ID",
"Name",
"StackName",
}
var Tree_Fields = []string{
"ID",
"Name",
"StackName",
}
var View_Fields = []string{
"ID",
"Name",
"ShowViewName",
"IsSelectedView",
}
var Xlsx_Fields = []string{
"ID",
"Name",
"StackName",
}
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 AsSplitAPI ¶
type AsSplitAPI struct { gorm.Model models.AsSplit_WOP // encoding of pointers // for API, it cannot be embedded AsSplitPointersEncoding AsSplitPointersEncoding }
AsSplitAPI 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 assplitAPI
type AsSplitAreaAPI ¶
type AsSplitAreaAPI struct { gorm.Model models.AsSplitArea_WOP // encoding of pointers // for API, it cannot be embedded AsSplitAreaPointersEncoding AsSplitAreaPointersEncoding }
AsSplitAreaAPI 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 assplitareaAPI
type AsSplitAreaDB ¶
type AsSplitAreaDB struct { gorm.Model // Declation for basic field assplitareaDB.Name Name_Data sql.NullString // Declation for basic field assplitareaDB.ShowNameInHeader // provide the sql storage for the boolan ShowNameInHeader_Data sql.NullBool // Declation for basic field assplitareaDB.Size Size_Data sql.NullFloat64 // Declation for basic field assplitareaDB.IsAny // provide the sql storage for the boolan IsAny_Data sql.NullBool // Declation for basic field assplitareaDB.HasDiv // provide the sql storage for the boolan HasDiv_Data sql.NullBool // Declation for basic field assplitareaDB.DivStyle DivStyle_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration AsSplitAreaPointersEncoding }
AsSplitAreaDB describes a assplitarea 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 assplitareaDB
func (*AsSplitAreaDB) CopyBasicFieldsFromAsSplitArea ¶
func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsFromAsSplitArea(assplitarea *models.AsSplitArea)
CopyBasicFieldsFromAsSplitArea
func (*AsSplitAreaDB) CopyBasicFieldsFromAsSplitAreaWOP ¶
func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsFromAsSplitAreaWOP(assplitarea *AsSplitAreaWOP)
CopyBasicFieldsFromAsSplitAreaWOP
func (*AsSplitAreaDB) CopyBasicFieldsFromAsSplitArea_WOP ¶
func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsFromAsSplitArea_WOP(assplitarea *models.AsSplitArea_WOP)
CopyBasicFieldsFromAsSplitArea_WOP
func (*AsSplitAreaDB) CopyBasicFieldsToAsSplitArea ¶
func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsToAsSplitArea(assplitarea *models.AsSplitArea)
CopyBasicFieldsToAsSplitArea
func (*AsSplitAreaDB) CopyBasicFieldsToAsSplitAreaWOP ¶
func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsToAsSplitAreaWOP(assplitarea *AsSplitAreaWOP)
CopyBasicFieldsToAsSplitAreaWOP
func (*AsSplitAreaDB) CopyBasicFieldsToAsSplitArea_WOP ¶
func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsToAsSplitArea_WOP(assplitarea *models.AsSplitArea_WOP)
CopyBasicFieldsToAsSplitArea_WOP
func (*AsSplitAreaDB) DecodePointers ¶
func (assplitareaDB *AsSplitAreaDB) DecodePointers(backRepo *BackRepoStruct, assplitarea *models.AsSplitArea)
type AsSplitAreaDBResponse ¶
type AsSplitAreaDBResponse struct {
AsSplitAreaDB
}
AsSplitAreaDBResponse provides response swagger:response assplitareaDBResponse
type AsSplitAreaDBs ¶
type AsSplitAreaDBs []AsSplitAreaDB
AsSplitAreaDBs arrays assplitareaDBs swagger:response assplitareaDBsResponse
type AsSplitAreaPointersEncoding ¶
type AsSplitAreaPointersEncoding struct { // field AsSplit is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association AsSplitID sql.NullInt64 // field Button is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association ButtonID sql.NullInt64 // field Cursor is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association CursorID sql.NullInt64 // field Form is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association FormID sql.NullInt64 // field Load is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association LoadID sql.NullInt64 // field Markdown is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association MarkdownID sql.NullInt64 // field Slider is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association SliderID sql.NullInt64 // field Split is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association SplitID sql.NullInt64 // field Svg is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association SvgID sql.NullInt64 // field Table is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association TableID sql.NullInt64 // field Tone is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association ToneID sql.NullInt64 // field Tree is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association TreeID sql.NullInt64 // field Xlsx is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association XlsxID sql.NullInt64 }
AsSplitAreaPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type AsSplitAreaWOP ¶
type AsSplitAreaWOP struct { ID int `xlsx:"0"` Name string `xlsx:"1"` ShowNameInHeader bool `xlsx:"2"` Size float64 `xlsx:"3"` IsAny bool `xlsx:"4"` HasDiv bool `xlsx:"5"` DivStyle string `xlsx:"6"` }
AsSplitAreaWOP is a AsSplitArea without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type AsSplitDB ¶
type AsSplitDB struct { gorm.Model // Declation for basic field assplitDB.Name Name_Data sql.NullString // Declation for basic field assplitDB.Direction Direction_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration AsSplitPointersEncoding }
AsSplitDB describes a assplit 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 assplitDB
func (*AsSplitDB) CopyBasicFieldsFromAsSplit ¶
CopyBasicFieldsFromAsSplit
func (*AsSplitDB) CopyBasicFieldsFromAsSplitWOP ¶
func (assplitDB *AsSplitDB) CopyBasicFieldsFromAsSplitWOP(assplit *AsSplitWOP)
CopyBasicFieldsFromAsSplitWOP
func (*AsSplitDB) CopyBasicFieldsFromAsSplit_WOP ¶
func (assplitDB *AsSplitDB) CopyBasicFieldsFromAsSplit_WOP(assplit *models.AsSplit_WOP)
CopyBasicFieldsFromAsSplit_WOP
func (*AsSplitDB) CopyBasicFieldsToAsSplit ¶
CopyBasicFieldsToAsSplit
func (*AsSplitDB) CopyBasicFieldsToAsSplitWOP ¶
func (assplitDB *AsSplitDB) CopyBasicFieldsToAsSplitWOP(assplit *AsSplitWOP)
CopyBasicFieldsToAsSplitWOP
func (*AsSplitDB) CopyBasicFieldsToAsSplit_WOP ¶
func (assplitDB *AsSplitDB) CopyBasicFieldsToAsSplit_WOP(assplit *models.AsSplit_WOP)
CopyBasicFieldsToAsSplit_WOP
func (*AsSplitDB) DecodePointers ¶
func (assplitDB *AsSplitDB) DecodePointers(backRepo *BackRepoStruct, assplit *models.AsSplit)
type AsSplitDBResponse ¶
type AsSplitDBResponse struct {
AsSplitDB
}
AsSplitDBResponse provides response swagger:response assplitDBResponse
type AsSplitDBs ¶
type AsSplitDBs []AsSplitDB
AsSplitDBs arrays assplitDBs swagger:response assplitDBsResponse
type AsSplitPointersEncoding ¶
type AsSplitPointersEncoding struct { // field AsSplitAreas is a slice of pointers to another Struct (optional or 0..1) AsSplitAreas IntSlice `gorm:"type:TEXT"` }
AsSplitPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type AsSplitWOP ¶
type AsSplitWOP struct { ID int `xlsx:"0"` Name string `xlsx:"1"` Direction models.Direction `xlsx:"2"` }
AsSplitWOP is a AsSplit without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type BackRepoAsSplitAreaStruct ¶
type BackRepoAsSplitAreaStruct struct { // stores AsSplitAreaDB according to their gorm ID Map_AsSplitAreaDBID_AsSplitAreaDB map[uint]*AsSplitAreaDB // stores AsSplitAreaDB ID according to AsSplitArea address Map_AsSplitAreaPtr_AsSplitAreaDBID map[*models.AsSplitArea]uint // stores AsSplitArea according to their gorm ID Map_AsSplitAreaDBID_AsSplitAreaPtr map[uint]*models.AsSplitArea // contains filtered or unexported fields }
func (*BackRepoAsSplitAreaStruct) Backup ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) Backup(dirPath string)
Backup generates a json file from a slice of all AsSplitAreaDB instances in the backrepo
func (*BackRepoAsSplitAreaStruct) BackupXL ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all AsSplitAreaDB instances in the backrepo
func (*BackRepoAsSplitAreaStruct) CheckoutPhaseOne ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CheckoutPhaseOne() (Error error)
BackRepoAsSplitArea.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 (*BackRepoAsSplitAreaStruct) CheckoutPhaseOneInstance ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CheckoutPhaseOneInstance(assplitareaDB *AsSplitAreaDB) (Error error)
CheckoutPhaseOneInstance takes a assplitareaDB that has been found in the DB, updates the backRepo and stages the models version of the assplitareaDB
func (*BackRepoAsSplitAreaStruct) CheckoutPhaseTwo ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoAsSplitArea.CheckoutPhaseTwo Checkouts all staged instances of AsSplitArea to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitAreaStruct) CheckoutPhaseTwoInstance ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, assplitareaDB *AsSplitAreaDB) (Error error)
BackRepoAsSplitArea.CheckoutPhaseTwoInstance Checkouts staged instances of AsSplitArea to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitAreaStruct) CommitDeleteInstance ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoAsSplitArea.CommitDeleteInstance commits deletion of AsSplitArea to the BackRepo
func (*BackRepoAsSplitAreaStruct) CommitPhaseOne ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoAsSplitArea.CommitPhaseOne commits all staged instances of AsSplitArea 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 (*BackRepoAsSplitAreaStruct) CommitPhaseOneInstance ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitPhaseOneInstance(assplitarea *models.AsSplitArea) (Error error)
BackRepoAsSplitArea.CommitPhaseOneInstance commits assplitarea staged instances of AsSplitArea 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 (*BackRepoAsSplitAreaStruct) CommitPhaseTwo ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoAsSplitArea.CommitPhaseTwo commits all staged instances of AsSplitArea to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitAreaStruct) CommitPhaseTwoInstance ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, assplitarea *models.AsSplitArea) (Error error)
BackRepoAsSplitArea.CommitPhaseTwoInstance commits {{structname }} of models.AsSplitArea to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitAreaStruct) GetAsSplitAreaDBFromAsSplitAreaPtr ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) GetAsSplitAreaDBFromAsSplitAreaPtr(assplitarea *models.AsSplitArea) (assplitareaDB *AsSplitAreaDB)
GetAsSplitAreaDBFromAsSplitAreaPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoAsSplitAreaStruct) GetDB ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) GetDB() db.DBInterface
func (*BackRepoAsSplitAreaStruct) GetStage ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) GetStage() (stage *models.Stage)
func (*BackRepoAsSplitAreaStruct) ResetReversePointers ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoAsSplitArea.ResetReversePointers commits all staged instances of AsSplitArea to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitAreaStruct) ResetReversePointersInstance ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, assplitarea *models.AsSplitArea) (Error error)
func (*BackRepoAsSplitAreaStruct) RestorePhaseOne ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "AsSplitAreaDB.json" in dirPath that stores an array of AsSplitAreaDB and stores it in the database the map BackRepoAsSplitAreaid_atBckpTime_newID is updated accordingly
func (*BackRepoAsSplitAreaStruct) RestorePhaseTwo ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<AsSplitArea>id_atBckpTime_newID to compute new index
func (*BackRepoAsSplitAreaStruct) RestoreXLPhaseOne ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "AsSplitArea" sheet all AsSplitAreaDB instances
type BackRepoAsSplitStruct ¶
type BackRepoAsSplitStruct struct { // stores AsSplitDB according to their gorm ID Map_AsSplitDBID_AsSplitDB map[uint]*AsSplitDB // stores AsSplitDB ID according to AsSplit address Map_AsSplitPtr_AsSplitDBID map[*models.AsSplit]uint // stores AsSplit according to their gorm ID Map_AsSplitDBID_AsSplitPtr map[uint]*models.AsSplit // contains filtered or unexported fields }
func (*BackRepoAsSplitStruct) Backup ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) Backup(dirPath string)
Backup generates a json file from a slice of all AsSplitDB instances in the backrepo
func (*BackRepoAsSplitStruct) BackupXL ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all AsSplitDB instances in the backrepo
func (*BackRepoAsSplitStruct) CheckoutPhaseOne ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) CheckoutPhaseOne() (Error error)
BackRepoAsSplit.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 (*BackRepoAsSplitStruct) CheckoutPhaseOneInstance ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) CheckoutPhaseOneInstance(assplitDB *AsSplitDB) (Error error)
CheckoutPhaseOneInstance takes a assplitDB that has been found in the DB, updates the backRepo and stages the models version of the assplitDB
func (*BackRepoAsSplitStruct) CheckoutPhaseTwo ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoAsSplit.CheckoutPhaseTwo Checkouts all staged instances of AsSplit to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitStruct) CheckoutPhaseTwoInstance ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, assplitDB *AsSplitDB) (Error error)
BackRepoAsSplit.CheckoutPhaseTwoInstance Checkouts staged instances of AsSplit to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitStruct) CommitDeleteInstance ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoAsSplit.CommitDeleteInstance commits deletion of AsSplit to the BackRepo
func (*BackRepoAsSplitStruct) CommitPhaseOne ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoAsSplit.CommitPhaseOne commits all staged instances of AsSplit 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 (*BackRepoAsSplitStruct) CommitPhaseOneInstance ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) CommitPhaseOneInstance(assplit *models.AsSplit) (Error error)
BackRepoAsSplit.CommitPhaseOneInstance commits assplit staged instances of AsSplit 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 (*BackRepoAsSplitStruct) CommitPhaseTwo ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoAsSplit.CommitPhaseTwo commits all staged instances of AsSplit to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitStruct) CommitPhaseTwoInstance ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, assplit *models.AsSplit) (Error error)
BackRepoAsSplit.CommitPhaseTwoInstance commits {{structname }} of models.AsSplit to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitStruct) GetAsSplitDBFromAsSplitPtr ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) GetAsSplitDBFromAsSplitPtr(assplit *models.AsSplit) (assplitDB *AsSplitDB)
GetAsSplitDBFromAsSplitPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoAsSplitStruct) GetDB ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) GetDB() db.DBInterface
func (*BackRepoAsSplitStruct) GetStage ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) GetStage() (stage *models.Stage)
func (*BackRepoAsSplitStruct) ResetReversePointers ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoAsSplit.ResetReversePointers commits all staged instances of AsSplit to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitStruct) ResetReversePointersInstance ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, assplit *models.AsSplit) (Error error)
func (*BackRepoAsSplitStruct) RestorePhaseOne ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "AsSplitDB.json" in dirPath that stores an array of AsSplitDB and stores it in the database the map BackRepoAsSplitid_atBckpTime_newID is updated accordingly
func (*BackRepoAsSplitStruct) RestorePhaseTwo ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<AsSplit>id_atBckpTime_newID to compute new index
func (*BackRepoAsSplitStruct) RestoreXLPhaseOne ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "AsSplit" sheet all AsSplitDB instances
type BackRepoButtonStruct ¶
type BackRepoButtonStruct struct { // stores ButtonDB according to their gorm ID Map_ButtonDBID_ButtonDB map[uint]*ButtonDB // stores ButtonDB ID according to Button address Map_ButtonPtr_ButtonDBID map[*models.Button]uint // stores Button according to their gorm ID Map_ButtonDBID_ButtonPtr map[uint]*models.Button // contains filtered or unexported fields }
func (*BackRepoButtonStruct) Backup ¶
func (backRepoButton *BackRepoButtonStruct) Backup(dirPath string)
Backup generates a json file from a slice of all ButtonDB instances in the backrepo
func (*BackRepoButtonStruct) BackupXL ¶
func (backRepoButton *BackRepoButtonStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all ButtonDB instances in the backrepo
func (*BackRepoButtonStruct) CheckoutPhaseOne ¶
func (backRepoButton *BackRepoButtonStruct) CheckoutPhaseOne() (Error error)
BackRepoButton.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 (*BackRepoButtonStruct) CheckoutPhaseOneInstance ¶
func (backRepoButton *BackRepoButtonStruct) CheckoutPhaseOneInstance(buttonDB *ButtonDB) (Error error)
CheckoutPhaseOneInstance takes a buttonDB that has been found in the DB, updates the backRepo and stages the models version of the buttonDB
func (*BackRepoButtonStruct) CheckoutPhaseTwo ¶
func (backRepoButton *BackRepoButtonStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoButton.CheckoutPhaseTwo Checkouts all staged instances of Button to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoButtonStruct) CheckoutPhaseTwoInstance ¶
func (backRepoButton *BackRepoButtonStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, buttonDB *ButtonDB) (Error error)
BackRepoButton.CheckoutPhaseTwoInstance Checkouts staged instances of Button to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoButtonStruct) CommitDeleteInstance ¶
func (backRepoButton *BackRepoButtonStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoButton.CommitDeleteInstance commits deletion of Button to the BackRepo
func (*BackRepoButtonStruct) CommitPhaseOne ¶
func (backRepoButton *BackRepoButtonStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoButton.CommitPhaseOne commits all staged instances of Button 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 (*BackRepoButtonStruct) CommitPhaseOneInstance ¶
func (backRepoButton *BackRepoButtonStruct) CommitPhaseOneInstance(button *models.Button) (Error error)
BackRepoButton.CommitPhaseOneInstance commits button staged instances of Button 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 (*BackRepoButtonStruct) CommitPhaseTwo ¶
func (backRepoButton *BackRepoButtonStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoButton.CommitPhaseTwo commits all staged instances of Button to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoButtonStruct) CommitPhaseTwoInstance ¶
func (backRepoButton *BackRepoButtonStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, button *models.Button) (Error error)
BackRepoButton.CommitPhaseTwoInstance commits {{structname }} of models.Button to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoButtonStruct) GetButtonDBFromButtonPtr ¶
func (backRepoButton *BackRepoButtonStruct) GetButtonDBFromButtonPtr(button *models.Button) (buttonDB *ButtonDB)
GetButtonDBFromButtonPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoButtonStruct) GetDB ¶
func (backRepoButton *BackRepoButtonStruct) GetDB() db.DBInterface
func (*BackRepoButtonStruct) GetStage ¶
func (backRepoButton *BackRepoButtonStruct) GetStage() (stage *models.Stage)
func (*BackRepoButtonStruct) ResetReversePointers ¶
func (backRepoButton *BackRepoButtonStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoButton.ResetReversePointers commits all staged instances of Button to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoButtonStruct) ResetReversePointersInstance ¶
func (backRepoButton *BackRepoButtonStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, button *models.Button) (Error error)
func (*BackRepoButtonStruct) RestorePhaseOne ¶
func (backRepoButton *BackRepoButtonStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "ButtonDB.json" in dirPath that stores an array of ButtonDB and stores it in the database the map BackRepoButtonid_atBckpTime_newID is updated accordingly
func (*BackRepoButtonStruct) RestorePhaseTwo ¶
func (backRepoButton *BackRepoButtonStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Button>id_atBckpTime_newID to compute new index
func (*BackRepoButtonStruct) RestoreXLPhaseOne ¶
func (backRepoButton *BackRepoButtonStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Button" sheet all ButtonDB instances
type BackRepoCursorStruct ¶
type BackRepoCursorStruct struct { // stores CursorDB according to their gorm ID Map_CursorDBID_CursorDB map[uint]*CursorDB // stores CursorDB ID according to Cursor address Map_CursorPtr_CursorDBID map[*models.Cursor]uint // stores Cursor according to their gorm ID Map_CursorDBID_CursorPtr map[uint]*models.Cursor // contains filtered or unexported fields }
func (*BackRepoCursorStruct) Backup ¶
func (backRepoCursor *BackRepoCursorStruct) Backup(dirPath string)
Backup generates a json file from a slice of all CursorDB instances in the backrepo
func (*BackRepoCursorStruct) BackupXL ¶
func (backRepoCursor *BackRepoCursorStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all CursorDB instances in the backrepo
func (*BackRepoCursorStruct) CheckoutPhaseOne ¶
func (backRepoCursor *BackRepoCursorStruct) CheckoutPhaseOne() (Error error)
BackRepoCursor.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 (*BackRepoCursorStruct) CheckoutPhaseOneInstance ¶
func (backRepoCursor *BackRepoCursorStruct) CheckoutPhaseOneInstance(cursorDB *CursorDB) (Error error)
CheckoutPhaseOneInstance takes a cursorDB that has been found in the DB, updates the backRepo and stages the models version of the cursorDB
func (*BackRepoCursorStruct) CheckoutPhaseTwo ¶
func (backRepoCursor *BackRepoCursorStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoCursor.CheckoutPhaseTwo Checkouts all staged instances of Cursor to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoCursorStruct) CheckoutPhaseTwoInstance ¶
func (backRepoCursor *BackRepoCursorStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, cursorDB *CursorDB) (Error error)
BackRepoCursor.CheckoutPhaseTwoInstance Checkouts staged instances of Cursor to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoCursorStruct) CommitDeleteInstance ¶
func (backRepoCursor *BackRepoCursorStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoCursor.CommitDeleteInstance commits deletion of Cursor to the BackRepo
func (*BackRepoCursorStruct) CommitPhaseOne ¶
func (backRepoCursor *BackRepoCursorStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoCursor.CommitPhaseOne commits all staged instances of Cursor 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 (*BackRepoCursorStruct) CommitPhaseOneInstance ¶
func (backRepoCursor *BackRepoCursorStruct) CommitPhaseOneInstance(cursor *models.Cursor) (Error error)
BackRepoCursor.CommitPhaseOneInstance commits cursor staged instances of Cursor 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 (*BackRepoCursorStruct) CommitPhaseTwo ¶
func (backRepoCursor *BackRepoCursorStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoCursor.CommitPhaseTwo commits all staged instances of Cursor to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoCursorStruct) CommitPhaseTwoInstance ¶
func (backRepoCursor *BackRepoCursorStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, cursor *models.Cursor) (Error error)
BackRepoCursor.CommitPhaseTwoInstance commits {{structname }} of models.Cursor to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoCursorStruct) GetCursorDBFromCursorPtr ¶
func (backRepoCursor *BackRepoCursorStruct) GetCursorDBFromCursorPtr(cursor *models.Cursor) (cursorDB *CursorDB)
GetCursorDBFromCursorPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoCursorStruct) GetDB ¶
func (backRepoCursor *BackRepoCursorStruct) GetDB() db.DBInterface
func (*BackRepoCursorStruct) GetStage ¶
func (backRepoCursor *BackRepoCursorStruct) GetStage() (stage *models.Stage)
func (*BackRepoCursorStruct) ResetReversePointers ¶
func (backRepoCursor *BackRepoCursorStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoCursor.ResetReversePointers commits all staged instances of Cursor to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoCursorStruct) ResetReversePointersInstance ¶
func (backRepoCursor *BackRepoCursorStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, cursor *models.Cursor) (Error error)
func (*BackRepoCursorStruct) RestorePhaseOne ¶
func (backRepoCursor *BackRepoCursorStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "CursorDB.json" in dirPath that stores an array of CursorDB and stores it in the database the map BackRepoCursorid_atBckpTime_newID is updated accordingly
func (*BackRepoCursorStruct) RestorePhaseTwo ¶
func (backRepoCursor *BackRepoCursorStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Cursor>id_atBckpTime_newID to compute new index
func (*BackRepoCursorStruct) RestoreXLPhaseOne ¶
func (backRepoCursor *BackRepoCursorStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Cursor" sheet all CursorDB instances
type BackRepoData ¶
type BackRepoData struct { AsSplitAPIs []*AsSplitAPI AsSplitAreaAPIs []*AsSplitAreaAPI ButtonAPIs []*ButtonAPI CursorAPIs []*CursorAPI FavIconAPIs []*FavIconAPI FormAPIs []*FormAPI LoadAPIs []*LoadAPI LogoOnTheLeftAPIs []*LogoOnTheLeftAPI LogoOnTheRightAPIs []*LogoOnTheRightAPI MarkdownAPIs []*MarkdownAPI SliderAPIs []*SliderAPI SplitAPIs []*SplitAPI SvgAPIs []*SvgAPI TableAPIs []*TableAPI TitleAPIs []*TitleAPI ToneAPIs []*ToneAPI TreeAPIs []*TreeAPI ViewAPIs []*ViewAPI XlsxAPIs []*XlsxAPI // index of the web socket for this stack type (unique among all stack instances) GONG__Index int }
type BackRepoFavIconStruct ¶
type BackRepoFavIconStruct struct { // stores FavIconDB according to their gorm ID Map_FavIconDBID_FavIconDB map[uint]*FavIconDB // stores FavIconDB ID according to FavIcon address Map_FavIconPtr_FavIconDBID map[*models.FavIcon]uint // stores FavIcon according to their gorm ID Map_FavIconDBID_FavIconPtr map[uint]*models.FavIcon // contains filtered or unexported fields }
func (*BackRepoFavIconStruct) Backup ¶
func (backRepoFavIcon *BackRepoFavIconStruct) Backup(dirPath string)
Backup generates a json file from a slice of all FavIconDB instances in the backrepo
func (*BackRepoFavIconStruct) BackupXL ¶
func (backRepoFavIcon *BackRepoFavIconStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all FavIconDB instances in the backrepo
func (*BackRepoFavIconStruct) CheckoutPhaseOne ¶
func (backRepoFavIcon *BackRepoFavIconStruct) CheckoutPhaseOne() (Error error)
BackRepoFavIcon.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 (*BackRepoFavIconStruct) CheckoutPhaseOneInstance ¶
func (backRepoFavIcon *BackRepoFavIconStruct) CheckoutPhaseOneInstance(faviconDB *FavIconDB) (Error error)
CheckoutPhaseOneInstance takes a faviconDB that has been found in the DB, updates the backRepo and stages the models version of the faviconDB
func (*BackRepoFavIconStruct) CheckoutPhaseTwo ¶
func (backRepoFavIcon *BackRepoFavIconStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoFavIcon.CheckoutPhaseTwo Checkouts all staged instances of FavIcon to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFavIconStruct) CheckoutPhaseTwoInstance ¶
func (backRepoFavIcon *BackRepoFavIconStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, faviconDB *FavIconDB) (Error error)
BackRepoFavIcon.CheckoutPhaseTwoInstance Checkouts staged instances of FavIcon to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFavIconStruct) CommitDeleteInstance ¶
func (backRepoFavIcon *BackRepoFavIconStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoFavIcon.CommitDeleteInstance commits deletion of FavIcon to the BackRepo
func (*BackRepoFavIconStruct) CommitPhaseOne ¶
func (backRepoFavIcon *BackRepoFavIconStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoFavIcon.CommitPhaseOne commits all staged instances of FavIcon 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 (*BackRepoFavIconStruct) CommitPhaseOneInstance ¶
func (backRepoFavIcon *BackRepoFavIconStruct) CommitPhaseOneInstance(favicon *models.FavIcon) (Error error)
BackRepoFavIcon.CommitPhaseOneInstance commits favicon staged instances of FavIcon 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 (*BackRepoFavIconStruct) CommitPhaseTwo ¶
func (backRepoFavIcon *BackRepoFavIconStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoFavIcon.CommitPhaseTwo commits all staged instances of FavIcon to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFavIconStruct) CommitPhaseTwoInstance ¶
func (backRepoFavIcon *BackRepoFavIconStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, favicon *models.FavIcon) (Error error)
BackRepoFavIcon.CommitPhaseTwoInstance commits {{structname }} of models.FavIcon to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFavIconStruct) GetDB ¶
func (backRepoFavIcon *BackRepoFavIconStruct) GetDB() db.DBInterface
func (*BackRepoFavIconStruct) GetFavIconDBFromFavIconPtr ¶
func (backRepoFavIcon *BackRepoFavIconStruct) GetFavIconDBFromFavIconPtr(favicon *models.FavIcon) (faviconDB *FavIconDB)
GetFavIconDBFromFavIconPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoFavIconStruct) GetStage ¶
func (backRepoFavIcon *BackRepoFavIconStruct) GetStage() (stage *models.Stage)
func (*BackRepoFavIconStruct) ResetReversePointers ¶
func (backRepoFavIcon *BackRepoFavIconStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoFavIcon.ResetReversePointers commits all staged instances of FavIcon to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFavIconStruct) ResetReversePointersInstance ¶
func (backRepoFavIcon *BackRepoFavIconStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, favicon *models.FavIcon) (Error error)
func (*BackRepoFavIconStruct) RestorePhaseOne ¶
func (backRepoFavIcon *BackRepoFavIconStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "FavIconDB.json" in dirPath that stores an array of FavIconDB and stores it in the database the map BackRepoFavIconid_atBckpTime_newID is updated accordingly
func (*BackRepoFavIconStruct) RestorePhaseTwo ¶
func (backRepoFavIcon *BackRepoFavIconStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<FavIcon>id_atBckpTime_newID to compute new index
func (*BackRepoFavIconStruct) RestoreXLPhaseOne ¶
func (backRepoFavIcon *BackRepoFavIconStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "FavIcon" sheet all FavIconDB instances
type BackRepoFormStruct ¶
type BackRepoFormStruct struct { // stores FormDB according to their gorm ID Map_FormDBID_FormDB map[uint]*FormDB // stores FormDB ID according to Form address Map_FormPtr_FormDBID map[*models.Form]uint // stores Form according to their gorm ID Map_FormDBID_FormPtr map[uint]*models.Form // contains filtered or unexported fields }
func (*BackRepoFormStruct) Backup ¶
func (backRepoForm *BackRepoFormStruct) Backup(dirPath string)
Backup generates a json file from a slice of all FormDB instances in the backrepo
func (*BackRepoFormStruct) BackupXL ¶
func (backRepoForm *BackRepoFormStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all FormDB instances in the backrepo
func (*BackRepoFormStruct) CheckoutPhaseOne ¶
func (backRepoForm *BackRepoFormStruct) CheckoutPhaseOne() (Error error)
BackRepoForm.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 (*BackRepoFormStruct) CheckoutPhaseOneInstance ¶
func (backRepoForm *BackRepoFormStruct) CheckoutPhaseOneInstance(formDB *FormDB) (Error error)
CheckoutPhaseOneInstance takes a formDB that has been found in the DB, updates the backRepo and stages the models version of the formDB
func (*BackRepoFormStruct) CheckoutPhaseTwo ¶
func (backRepoForm *BackRepoFormStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoForm.CheckoutPhaseTwo Checkouts all staged instances of Form to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFormStruct) CheckoutPhaseTwoInstance ¶
func (backRepoForm *BackRepoFormStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, formDB *FormDB) (Error error)
BackRepoForm.CheckoutPhaseTwoInstance Checkouts staged instances of Form to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFormStruct) CommitDeleteInstance ¶
func (backRepoForm *BackRepoFormStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoForm.CommitDeleteInstance commits deletion of Form to the BackRepo
func (*BackRepoFormStruct) CommitPhaseOne ¶
func (backRepoForm *BackRepoFormStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoForm.CommitPhaseOne commits all staged instances of Form 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 (*BackRepoFormStruct) CommitPhaseOneInstance ¶
func (backRepoForm *BackRepoFormStruct) CommitPhaseOneInstance(form *models.Form) (Error error)
BackRepoForm.CommitPhaseOneInstance commits form staged instances of Form 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 (*BackRepoFormStruct) CommitPhaseTwo ¶
func (backRepoForm *BackRepoFormStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoForm.CommitPhaseTwo commits all staged instances of Form to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFormStruct) CommitPhaseTwoInstance ¶
func (backRepoForm *BackRepoFormStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, form *models.Form) (Error error)
BackRepoForm.CommitPhaseTwoInstance commits {{structname }} of models.Form to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFormStruct) GetDB ¶
func (backRepoForm *BackRepoFormStruct) GetDB() db.DBInterface
func (*BackRepoFormStruct) GetFormDBFromFormPtr ¶
func (backRepoForm *BackRepoFormStruct) GetFormDBFromFormPtr(form *models.Form) (formDB *FormDB)
GetFormDBFromFormPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoFormStruct) GetStage ¶
func (backRepoForm *BackRepoFormStruct) GetStage() (stage *models.Stage)
func (*BackRepoFormStruct) ResetReversePointers ¶
func (backRepoForm *BackRepoFormStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoForm.ResetReversePointers commits all staged instances of Form to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFormStruct) ResetReversePointersInstance ¶
func (backRepoForm *BackRepoFormStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, form *models.Form) (Error error)
func (*BackRepoFormStruct) RestorePhaseOne ¶
func (backRepoForm *BackRepoFormStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "FormDB.json" in dirPath that stores an array of FormDB and stores it in the database the map BackRepoFormid_atBckpTime_newID is updated accordingly
func (*BackRepoFormStruct) RestorePhaseTwo ¶
func (backRepoForm *BackRepoFormStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Form>id_atBckpTime_newID to compute new index
func (*BackRepoFormStruct) RestoreXLPhaseOne ¶
func (backRepoForm *BackRepoFormStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Form" sheet all FormDB instances
type BackRepoLoadStruct ¶
type BackRepoLoadStruct struct { // stores LoadDB according to their gorm ID Map_LoadDBID_LoadDB map[uint]*LoadDB // stores LoadDB ID according to Load address Map_LoadPtr_LoadDBID map[*models.Load]uint // stores Load according to their gorm ID Map_LoadDBID_LoadPtr map[uint]*models.Load // contains filtered or unexported fields }
func (*BackRepoLoadStruct) Backup ¶
func (backRepoLoad *BackRepoLoadStruct) Backup(dirPath string)
Backup generates a json file from a slice of all LoadDB instances in the backrepo
func (*BackRepoLoadStruct) BackupXL ¶
func (backRepoLoad *BackRepoLoadStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all LoadDB instances in the backrepo
func (*BackRepoLoadStruct) CheckoutPhaseOne ¶
func (backRepoLoad *BackRepoLoadStruct) CheckoutPhaseOne() (Error error)
BackRepoLoad.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 (*BackRepoLoadStruct) CheckoutPhaseOneInstance ¶
func (backRepoLoad *BackRepoLoadStruct) CheckoutPhaseOneInstance(loadDB *LoadDB) (Error error)
CheckoutPhaseOneInstance takes a loadDB that has been found in the DB, updates the backRepo and stages the models version of the loadDB
func (*BackRepoLoadStruct) CheckoutPhaseTwo ¶
func (backRepoLoad *BackRepoLoadStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoLoad.CheckoutPhaseTwo Checkouts all staged instances of Load to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLoadStruct) CheckoutPhaseTwoInstance ¶
func (backRepoLoad *BackRepoLoadStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, loadDB *LoadDB) (Error error)
BackRepoLoad.CheckoutPhaseTwoInstance Checkouts staged instances of Load to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLoadStruct) CommitDeleteInstance ¶
func (backRepoLoad *BackRepoLoadStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoLoad.CommitDeleteInstance commits deletion of Load to the BackRepo
func (*BackRepoLoadStruct) CommitPhaseOne ¶
func (backRepoLoad *BackRepoLoadStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoLoad.CommitPhaseOne commits all staged instances of Load 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 (*BackRepoLoadStruct) CommitPhaseOneInstance ¶
func (backRepoLoad *BackRepoLoadStruct) CommitPhaseOneInstance(load *models.Load) (Error error)
BackRepoLoad.CommitPhaseOneInstance commits load staged instances of Load 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 (*BackRepoLoadStruct) CommitPhaseTwo ¶
func (backRepoLoad *BackRepoLoadStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoLoad.CommitPhaseTwo commits all staged instances of Load to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLoadStruct) CommitPhaseTwoInstance ¶
func (backRepoLoad *BackRepoLoadStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, load *models.Load) (Error error)
BackRepoLoad.CommitPhaseTwoInstance commits {{structname }} of models.Load to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLoadStruct) GetDB ¶
func (backRepoLoad *BackRepoLoadStruct) GetDB() db.DBInterface
func (*BackRepoLoadStruct) GetLoadDBFromLoadPtr ¶
func (backRepoLoad *BackRepoLoadStruct) GetLoadDBFromLoadPtr(load *models.Load) (loadDB *LoadDB)
GetLoadDBFromLoadPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoLoadStruct) GetStage ¶
func (backRepoLoad *BackRepoLoadStruct) GetStage() (stage *models.Stage)
func (*BackRepoLoadStruct) ResetReversePointers ¶
func (backRepoLoad *BackRepoLoadStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoLoad.ResetReversePointers commits all staged instances of Load to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLoadStruct) ResetReversePointersInstance ¶
func (backRepoLoad *BackRepoLoadStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, load *models.Load) (Error error)
func (*BackRepoLoadStruct) RestorePhaseOne ¶
func (backRepoLoad *BackRepoLoadStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "LoadDB.json" in dirPath that stores an array of LoadDB and stores it in the database the map BackRepoLoadid_atBckpTime_newID is updated accordingly
func (*BackRepoLoadStruct) RestorePhaseTwo ¶
func (backRepoLoad *BackRepoLoadStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Load>id_atBckpTime_newID to compute new index
func (*BackRepoLoadStruct) RestoreXLPhaseOne ¶
func (backRepoLoad *BackRepoLoadStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Load" sheet all LoadDB instances
type BackRepoLogoOnTheLeftStruct ¶
type BackRepoLogoOnTheLeftStruct struct { // stores LogoOnTheLeftDB according to their gorm ID Map_LogoOnTheLeftDBID_LogoOnTheLeftDB map[uint]*LogoOnTheLeftDB // stores LogoOnTheLeftDB ID according to LogoOnTheLeft address Map_LogoOnTheLeftPtr_LogoOnTheLeftDBID map[*models.LogoOnTheLeft]uint // stores LogoOnTheLeft according to their gorm ID Map_LogoOnTheLeftDBID_LogoOnTheLeftPtr map[uint]*models.LogoOnTheLeft // contains filtered or unexported fields }
func (*BackRepoLogoOnTheLeftStruct) Backup ¶
func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) Backup(dirPath string)
Backup generates a json file from a slice of all LogoOnTheLeftDB instances in the backrepo
func (*BackRepoLogoOnTheLeftStruct) BackupXL ¶
func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all LogoOnTheLeftDB instances in the backrepo
func (*BackRepoLogoOnTheLeftStruct) CheckoutPhaseOne ¶
func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) CheckoutPhaseOne() (Error error)
BackRepoLogoOnTheLeft.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 (*BackRepoLogoOnTheLeftStruct) CheckoutPhaseOneInstance ¶
func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) CheckoutPhaseOneInstance(logoontheleftDB *LogoOnTheLeftDB) (Error error)
CheckoutPhaseOneInstance takes a logoontheleftDB that has been found in the DB, updates the backRepo and stages the models version of the logoontheleftDB
func (*BackRepoLogoOnTheLeftStruct) CheckoutPhaseTwo ¶
func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoLogoOnTheLeft.CheckoutPhaseTwo Checkouts all staged instances of LogoOnTheLeft to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLogoOnTheLeftStruct) CheckoutPhaseTwoInstance ¶
func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, logoontheleftDB *LogoOnTheLeftDB) (Error error)
BackRepoLogoOnTheLeft.CheckoutPhaseTwoInstance Checkouts staged instances of LogoOnTheLeft to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLogoOnTheLeftStruct) CommitDeleteInstance ¶
func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoLogoOnTheLeft.CommitDeleteInstance commits deletion of LogoOnTheLeft to the BackRepo
func (*BackRepoLogoOnTheLeftStruct) CommitPhaseOne ¶
func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoLogoOnTheLeft.CommitPhaseOne commits all staged instances of LogoOnTheLeft 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 (*BackRepoLogoOnTheLeftStruct) CommitPhaseOneInstance ¶
func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) CommitPhaseOneInstance(logoontheleft *models.LogoOnTheLeft) (Error error)
BackRepoLogoOnTheLeft.CommitPhaseOneInstance commits logoontheleft staged instances of LogoOnTheLeft 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 (*BackRepoLogoOnTheLeftStruct) CommitPhaseTwo ¶
func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoLogoOnTheLeft.CommitPhaseTwo commits all staged instances of LogoOnTheLeft to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLogoOnTheLeftStruct) CommitPhaseTwoInstance ¶
func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, logoontheleft *models.LogoOnTheLeft) (Error error)
BackRepoLogoOnTheLeft.CommitPhaseTwoInstance commits {{structname }} of models.LogoOnTheLeft to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLogoOnTheLeftStruct) GetDB ¶
func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) GetDB() db.DBInterface
func (*BackRepoLogoOnTheLeftStruct) GetLogoOnTheLeftDBFromLogoOnTheLeftPtr ¶
func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) GetLogoOnTheLeftDBFromLogoOnTheLeftPtr(logoontheleft *models.LogoOnTheLeft) (logoontheleftDB *LogoOnTheLeftDB)
GetLogoOnTheLeftDBFromLogoOnTheLeftPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoLogoOnTheLeftStruct) GetStage ¶
func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) GetStage() (stage *models.Stage)
func (*BackRepoLogoOnTheLeftStruct) ResetReversePointers ¶
func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoLogoOnTheLeft.ResetReversePointers commits all staged instances of LogoOnTheLeft to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLogoOnTheLeftStruct) ResetReversePointersInstance ¶
func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, logoontheleft *models.LogoOnTheLeft) (Error error)
func (*BackRepoLogoOnTheLeftStruct) RestorePhaseOne ¶
func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "LogoOnTheLeftDB.json" in dirPath that stores an array of LogoOnTheLeftDB and stores it in the database the map BackRepoLogoOnTheLeftid_atBckpTime_newID is updated accordingly
func (*BackRepoLogoOnTheLeftStruct) RestorePhaseTwo ¶
func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<LogoOnTheLeft>id_atBckpTime_newID to compute new index
func (*BackRepoLogoOnTheLeftStruct) RestoreXLPhaseOne ¶
func (backRepoLogoOnTheLeft *BackRepoLogoOnTheLeftStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "LogoOnTheLeft" sheet all LogoOnTheLeftDB instances
type BackRepoLogoOnTheRightStruct ¶
type BackRepoLogoOnTheRightStruct struct { // stores LogoOnTheRightDB according to their gorm ID Map_LogoOnTheRightDBID_LogoOnTheRightDB map[uint]*LogoOnTheRightDB // stores LogoOnTheRightDB ID according to LogoOnTheRight address Map_LogoOnTheRightPtr_LogoOnTheRightDBID map[*models.LogoOnTheRight]uint // stores LogoOnTheRight according to their gorm ID Map_LogoOnTheRightDBID_LogoOnTheRightPtr map[uint]*models.LogoOnTheRight // contains filtered or unexported fields }
func (*BackRepoLogoOnTheRightStruct) Backup ¶
func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) Backup(dirPath string)
Backup generates a json file from a slice of all LogoOnTheRightDB instances in the backrepo
func (*BackRepoLogoOnTheRightStruct) BackupXL ¶
func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all LogoOnTheRightDB instances in the backrepo
func (*BackRepoLogoOnTheRightStruct) CheckoutPhaseOne ¶
func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) CheckoutPhaseOne() (Error error)
BackRepoLogoOnTheRight.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 (*BackRepoLogoOnTheRightStruct) CheckoutPhaseOneInstance ¶
func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) CheckoutPhaseOneInstance(logoontherightDB *LogoOnTheRightDB) (Error error)
CheckoutPhaseOneInstance takes a logoontherightDB that has been found in the DB, updates the backRepo and stages the models version of the logoontherightDB
func (*BackRepoLogoOnTheRightStruct) CheckoutPhaseTwo ¶
func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoLogoOnTheRight.CheckoutPhaseTwo Checkouts all staged instances of LogoOnTheRight to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLogoOnTheRightStruct) CheckoutPhaseTwoInstance ¶
func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, logoontherightDB *LogoOnTheRightDB) (Error error)
BackRepoLogoOnTheRight.CheckoutPhaseTwoInstance Checkouts staged instances of LogoOnTheRight to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLogoOnTheRightStruct) CommitDeleteInstance ¶
func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoLogoOnTheRight.CommitDeleteInstance commits deletion of LogoOnTheRight to the BackRepo
func (*BackRepoLogoOnTheRightStruct) CommitPhaseOne ¶
func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoLogoOnTheRight.CommitPhaseOne commits all staged instances of LogoOnTheRight 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 (*BackRepoLogoOnTheRightStruct) CommitPhaseOneInstance ¶
func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) CommitPhaseOneInstance(logoontheright *models.LogoOnTheRight) (Error error)
BackRepoLogoOnTheRight.CommitPhaseOneInstance commits logoontheright staged instances of LogoOnTheRight 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 (*BackRepoLogoOnTheRightStruct) CommitPhaseTwo ¶
func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoLogoOnTheRight.CommitPhaseTwo commits all staged instances of LogoOnTheRight to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLogoOnTheRightStruct) CommitPhaseTwoInstance ¶
func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, logoontheright *models.LogoOnTheRight) (Error error)
BackRepoLogoOnTheRight.CommitPhaseTwoInstance commits {{structname }} of models.LogoOnTheRight to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLogoOnTheRightStruct) GetDB ¶
func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) GetDB() db.DBInterface
func (*BackRepoLogoOnTheRightStruct) GetLogoOnTheRightDBFromLogoOnTheRightPtr ¶
func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) GetLogoOnTheRightDBFromLogoOnTheRightPtr(logoontheright *models.LogoOnTheRight) (logoontherightDB *LogoOnTheRightDB)
GetLogoOnTheRightDBFromLogoOnTheRightPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoLogoOnTheRightStruct) GetStage ¶
func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) GetStage() (stage *models.Stage)
func (*BackRepoLogoOnTheRightStruct) ResetReversePointers ¶
func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoLogoOnTheRight.ResetReversePointers commits all staged instances of LogoOnTheRight to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLogoOnTheRightStruct) ResetReversePointersInstance ¶
func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, logoontheright *models.LogoOnTheRight) (Error error)
func (*BackRepoLogoOnTheRightStruct) RestorePhaseOne ¶
func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "LogoOnTheRightDB.json" in dirPath that stores an array of LogoOnTheRightDB and stores it in the database the map BackRepoLogoOnTheRightid_atBckpTime_newID is updated accordingly
func (*BackRepoLogoOnTheRightStruct) RestorePhaseTwo ¶
func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<LogoOnTheRight>id_atBckpTime_newID to compute new index
func (*BackRepoLogoOnTheRightStruct) RestoreXLPhaseOne ¶
func (backRepoLogoOnTheRight *BackRepoLogoOnTheRightStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "LogoOnTheRight" sheet all LogoOnTheRightDB instances
type BackRepoMarkdownStruct ¶
type BackRepoMarkdownStruct struct { // stores MarkdownDB according to their gorm ID Map_MarkdownDBID_MarkdownDB map[uint]*MarkdownDB // stores MarkdownDB ID according to Markdown address Map_MarkdownPtr_MarkdownDBID map[*models.Markdown]uint // stores Markdown according to their gorm ID Map_MarkdownDBID_MarkdownPtr map[uint]*models.Markdown // contains filtered or unexported fields }
func (*BackRepoMarkdownStruct) Backup ¶
func (backRepoMarkdown *BackRepoMarkdownStruct) Backup(dirPath string)
Backup generates a json file from a slice of all MarkdownDB instances in the backrepo
func (*BackRepoMarkdownStruct) BackupXL ¶
func (backRepoMarkdown *BackRepoMarkdownStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all MarkdownDB instances in the backrepo
func (*BackRepoMarkdownStruct) CheckoutPhaseOne ¶
func (backRepoMarkdown *BackRepoMarkdownStruct) CheckoutPhaseOne() (Error error)
BackRepoMarkdown.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 (*BackRepoMarkdownStruct) CheckoutPhaseOneInstance ¶
func (backRepoMarkdown *BackRepoMarkdownStruct) CheckoutPhaseOneInstance(markdownDB *MarkdownDB) (Error error)
CheckoutPhaseOneInstance takes a markdownDB that has been found in the DB, updates the backRepo and stages the models version of the markdownDB
func (*BackRepoMarkdownStruct) CheckoutPhaseTwo ¶
func (backRepoMarkdown *BackRepoMarkdownStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoMarkdown.CheckoutPhaseTwo Checkouts all staged instances of Markdown to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoMarkdownStruct) CheckoutPhaseTwoInstance ¶
func (backRepoMarkdown *BackRepoMarkdownStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, markdownDB *MarkdownDB) (Error error)
BackRepoMarkdown.CheckoutPhaseTwoInstance Checkouts staged instances of Markdown to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoMarkdownStruct) CommitDeleteInstance ¶
func (backRepoMarkdown *BackRepoMarkdownStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoMarkdown.CommitDeleteInstance commits deletion of Markdown to the BackRepo
func (*BackRepoMarkdownStruct) CommitPhaseOne ¶
func (backRepoMarkdown *BackRepoMarkdownStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoMarkdown.CommitPhaseOne commits all staged instances of Markdown 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 (*BackRepoMarkdownStruct) CommitPhaseOneInstance ¶
func (backRepoMarkdown *BackRepoMarkdownStruct) CommitPhaseOneInstance(markdown *models.Markdown) (Error error)
BackRepoMarkdown.CommitPhaseOneInstance commits markdown staged instances of Markdown 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 (*BackRepoMarkdownStruct) CommitPhaseTwo ¶
func (backRepoMarkdown *BackRepoMarkdownStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoMarkdown.CommitPhaseTwo commits all staged instances of Markdown to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoMarkdownStruct) CommitPhaseTwoInstance ¶
func (backRepoMarkdown *BackRepoMarkdownStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, markdown *models.Markdown) (Error error)
BackRepoMarkdown.CommitPhaseTwoInstance commits {{structname }} of models.Markdown to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoMarkdownStruct) GetDB ¶
func (backRepoMarkdown *BackRepoMarkdownStruct) GetDB() db.DBInterface
func (*BackRepoMarkdownStruct) GetMarkdownDBFromMarkdownPtr ¶
func (backRepoMarkdown *BackRepoMarkdownStruct) GetMarkdownDBFromMarkdownPtr(markdown *models.Markdown) (markdownDB *MarkdownDB)
GetMarkdownDBFromMarkdownPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoMarkdownStruct) GetStage ¶
func (backRepoMarkdown *BackRepoMarkdownStruct) GetStage() (stage *models.Stage)
func (*BackRepoMarkdownStruct) ResetReversePointers ¶
func (backRepoMarkdown *BackRepoMarkdownStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoMarkdown.ResetReversePointers commits all staged instances of Markdown to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoMarkdownStruct) ResetReversePointersInstance ¶
func (backRepoMarkdown *BackRepoMarkdownStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, markdown *models.Markdown) (Error error)
func (*BackRepoMarkdownStruct) RestorePhaseOne ¶
func (backRepoMarkdown *BackRepoMarkdownStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "MarkdownDB.json" in dirPath that stores an array of MarkdownDB and stores it in the database the map BackRepoMarkdownid_atBckpTime_newID is updated accordingly
func (*BackRepoMarkdownStruct) RestorePhaseTwo ¶
func (backRepoMarkdown *BackRepoMarkdownStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Markdown>id_atBckpTime_newID to compute new index
func (*BackRepoMarkdownStruct) RestoreXLPhaseOne ¶
func (backRepoMarkdown *BackRepoMarkdownStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Markdown" sheet all MarkdownDB instances
type BackRepoSliderStruct ¶
type BackRepoSliderStruct struct { // stores SliderDB according to their gorm ID Map_SliderDBID_SliderDB map[uint]*SliderDB // stores SliderDB ID according to Slider address Map_SliderPtr_SliderDBID map[*models.Slider]uint // stores Slider according to their gorm ID Map_SliderDBID_SliderPtr map[uint]*models.Slider // contains filtered or unexported fields }
func (*BackRepoSliderStruct) Backup ¶
func (backRepoSlider *BackRepoSliderStruct) Backup(dirPath string)
Backup generates a json file from a slice of all SliderDB instances in the backrepo
func (*BackRepoSliderStruct) BackupXL ¶
func (backRepoSlider *BackRepoSliderStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all SliderDB instances in the backrepo
func (*BackRepoSliderStruct) CheckoutPhaseOne ¶
func (backRepoSlider *BackRepoSliderStruct) CheckoutPhaseOne() (Error error)
BackRepoSlider.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 (*BackRepoSliderStruct) CheckoutPhaseOneInstance ¶
func (backRepoSlider *BackRepoSliderStruct) CheckoutPhaseOneInstance(sliderDB *SliderDB) (Error error)
CheckoutPhaseOneInstance takes a sliderDB that has been found in the DB, updates the backRepo and stages the models version of the sliderDB
func (*BackRepoSliderStruct) CheckoutPhaseTwo ¶
func (backRepoSlider *BackRepoSliderStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoSlider.CheckoutPhaseTwo Checkouts all staged instances of Slider to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSliderStruct) CheckoutPhaseTwoInstance ¶
func (backRepoSlider *BackRepoSliderStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, sliderDB *SliderDB) (Error error)
BackRepoSlider.CheckoutPhaseTwoInstance Checkouts staged instances of Slider to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSliderStruct) CommitDeleteInstance ¶
func (backRepoSlider *BackRepoSliderStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoSlider.CommitDeleteInstance commits deletion of Slider to the BackRepo
func (*BackRepoSliderStruct) CommitPhaseOne ¶
func (backRepoSlider *BackRepoSliderStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoSlider.CommitPhaseOne commits all staged instances of Slider 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 (*BackRepoSliderStruct) CommitPhaseOneInstance ¶
func (backRepoSlider *BackRepoSliderStruct) CommitPhaseOneInstance(slider *models.Slider) (Error error)
BackRepoSlider.CommitPhaseOneInstance commits slider staged instances of Slider 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 (*BackRepoSliderStruct) CommitPhaseTwo ¶
func (backRepoSlider *BackRepoSliderStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoSlider.CommitPhaseTwo commits all staged instances of Slider to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSliderStruct) CommitPhaseTwoInstance ¶
func (backRepoSlider *BackRepoSliderStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, slider *models.Slider) (Error error)
BackRepoSlider.CommitPhaseTwoInstance commits {{structname }} of models.Slider to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSliderStruct) GetDB ¶
func (backRepoSlider *BackRepoSliderStruct) GetDB() db.DBInterface
func (*BackRepoSliderStruct) GetSliderDBFromSliderPtr ¶
func (backRepoSlider *BackRepoSliderStruct) GetSliderDBFromSliderPtr(slider *models.Slider) (sliderDB *SliderDB)
GetSliderDBFromSliderPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoSliderStruct) GetStage ¶
func (backRepoSlider *BackRepoSliderStruct) GetStage() (stage *models.Stage)
func (*BackRepoSliderStruct) ResetReversePointers ¶
func (backRepoSlider *BackRepoSliderStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoSlider.ResetReversePointers commits all staged instances of Slider to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSliderStruct) ResetReversePointersInstance ¶
func (backRepoSlider *BackRepoSliderStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, slider *models.Slider) (Error error)
func (*BackRepoSliderStruct) RestorePhaseOne ¶
func (backRepoSlider *BackRepoSliderStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "SliderDB.json" in dirPath that stores an array of SliderDB and stores it in the database the map BackRepoSliderid_atBckpTime_newID is updated accordingly
func (*BackRepoSliderStruct) RestorePhaseTwo ¶
func (backRepoSlider *BackRepoSliderStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Slider>id_atBckpTime_newID to compute new index
func (*BackRepoSliderStruct) RestoreXLPhaseOne ¶
func (backRepoSlider *BackRepoSliderStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Slider" sheet all SliderDB instances
type BackRepoSplitStruct ¶
type BackRepoSplitStruct struct { // stores SplitDB according to their gorm ID Map_SplitDBID_SplitDB map[uint]*SplitDB // stores SplitDB ID according to Split address Map_SplitPtr_SplitDBID map[*models.Split]uint // stores Split according to their gorm ID Map_SplitDBID_SplitPtr map[uint]*models.Split // contains filtered or unexported fields }
func (*BackRepoSplitStruct) Backup ¶
func (backRepoSplit *BackRepoSplitStruct) Backup(dirPath string)
Backup generates a json file from a slice of all SplitDB instances in the backrepo
func (*BackRepoSplitStruct) BackupXL ¶
func (backRepoSplit *BackRepoSplitStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all SplitDB instances in the backrepo
func (*BackRepoSplitStruct) CheckoutPhaseOne ¶
func (backRepoSplit *BackRepoSplitStruct) CheckoutPhaseOne() (Error error)
BackRepoSplit.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 (*BackRepoSplitStruct) CheckoutPhaseOneInstance ¶
func (backRepoSplit *BackRepoSplitStruct) CheckoutPhaseOneInstance(splitDB *SplitDB) (Error error)
CheckoutPhaseOneInstance takes a splitDB that has been found in the DB, updates the backRepo and stages the models version of the splitDB
func (*BackRepoSplitStruct) CheckoutPhaseTwo ¶
func (backRepoSplit *BackRepoSplitStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoSplit.CheckoutPhaseTwo Checkouts all staged instances of Split to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSplitStruct) CheckoutPhaseTwoInstance ¶
func (backRepoSplit *BackRepoSplitStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, splitDB *SplitDB) (Error error)
BackRepoSplit.CheckoutPhaseTwoInstance Checkouts staged instances of Split to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSplitStruct) CommitDeleteInstance ¶
func (backRepoSplit *BackRepoSplitStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoSplit.CommitDeleteInstance commits deletion of Split to the BackRepo
func (*BackRepoSplitStruct) CommitPhaseOne ¶
func (backRepoSplit *BackRepoSplitStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoSplit.CommitPhaseOne commits all staged instances of Split 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 (*BackRepoSplitStruct) CommitPhaseOneInstance ¶
func (backRepoSplit *BackRepoSplitStruct) CommitPhaseOneInstance(split *models.Split) (Error error)
BackRepoSplit.CommitPhaseOneInstance commits split staged instances of Split 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 (*BackRepoSplitStruct) CommitPhaseTwo ¶
func (backRepoSplit *BackRepoSplitStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoSplit.CommitPhaseTwo commits all staged instances of Split to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSplitStruct) CommitPhaseTwoInstance ¶
func (backRepoSplit *BackRepoSplitStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, split *models.Split) (Error error)
BackRepoSplit.CommitPhaseTwoInstance commits {{structname }} of models.Split to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSplitStruct) GetDB ¶
func (backRepoSplit *BackRepoSplitStruct) GetDB() db.DBInterface
func (*BackRepoSplitStruct) GetSplitDBFromSplitPtr ¶
func (backRepoSplit *BackRepoSplitStruct) GetSplitDBFromSplitPtr(split *models.Split) (splitDB *SplitDB)
GetSplitDBFromSplitPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoSplitStruct) GetStage ¶
func (backRepoSplit *BackRepoSplitStruct) GetStage() (stage *models.Stage)
func (*BackRepoSplitStruct) ResetReversePointers ¶
func (backRepoSplit *BackRepoSplitStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoSplit.ResetReversePointers commits all staged instances of Split to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSplitStruct) ResetReversePointersInstance ¶
func (backRepoSplit *BackRepoSplitStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, split *models.Split) (Error error)
func (*BackRepoSplitStruct) RestorePhaseOne ¶
func (backRepoSplit *BackRepoSplitStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "SplitDB.json" in dirPath that stores an array of SplitDB and stores it in the database the map BackRepoSplitid_atBckpTime_newID is updated accordingly
func (*BackRepoSplitStruct) RestorePhaseTwo ¶
func (backRepoSplit *BackRepoSplitStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Split>id_atBckpTime_newID to compute new index
func (*BackRepoSplitStruct) RestoreXLPhaseOne ¶
func (backRepoSplit *BackRepoSplitStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Split" sheet all SplitDB instances
type BackRepoStruct ¶
type BackRepoStruct struct { // insertion point for per struct back repo declarations BackRepoAsSplit BackRepoAsSplitStruct BackRepoAsSplitArea BackRepoAsSplitAreaStruct BackRepoButton BackRepoButtonStruct BackRepoCursor BackRepoCursorStruct BackRepoFavIcon BackRepoFavIconStruct BackRepoForm BackRepoFormStruct BackRepoLoad BackRepoLoadStruct BackRepoLogoOnTheLeft BackRepoLogoOnTheLeftStruct BackRepoLogoOnTheRight BackRepoLogoOnTheRightStruct BackRepoMarkdown BackRepoMarkdownStruct BackRepoSlider BackRepoSliderStruct BackRepoSplit BackRepoSplitStruct BackRepoSvg BackRepoSvgStruct BackRepoTable BackRepoTableStruct BackRepoTitle BackRepoTitleStruct BackRepoTone BackRepoToneStruct BackRepoTree BackRepoTreeStruct BackRepoView BackRepoViewStruct BackRepoXlsx BackRepoXlsxStruct 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) CheckoutAsSplit ¶
func (backRepo *BackRepoStruct) CheckoutAsSplit(assplit *models.AsSplit)
CommitAsSplit allows checkout of a single assplit (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutAsSplitArea ¶
func (backRepo *BackRepoStruct) CheckoutAsSplitArea(assplitarea *models.AsSplitArea)
CommitAsSplitArea allows checkout of a single assplitarea (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutButton ¶
func (backRepo *BackRepoStruct) CheckoutButton(button *models.Button)
CommitButton allows checkout of a single button (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutCursor ¶
func (backRepo *BackRepoStruct) CheckoutCursor(cursor *models.Cursor)
CommitCursor allows checkout of a single cursor (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutFavIcon ¶
func (backRepo *BackRepoStruct) CheckoutFavIcon(favicon *models.FavIcon)
CommitFavIcon allows checkout of a single favicon (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutForm ¶
func (backRepo *BackRepoStruct) CheckoutForm(form *models.Form)
CommitForm allows checkout of a single form (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutLoad ¶
func (backRepo *BackRepoStruct) CheckoutLoad(load *models.Load)
CommitLoad allows checkout of a single load (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutLogoOnTheLeft ¶
func (backRepo *BackRepoStruct) CheckoutLogoOnTheLeft(logoontheleft *models.LogoOnTheLeft)
CommitLogoOnTheLeft allows checkout of a single logoontheleft (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutLogoOnTheRight ¶
func (backRepo *BackRepoStruct) CheckoutLogoOnTheRight(logoontheright *models.LogoOnTheRight)
CommitLogoOnTheRight allows checkout of a single logoontheright (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutMarkdown ¶
func (backRepo *BackRepoStruct) CheckoutMarkdown(markdown *models.Markdown)
CommitMarkdown allows checkout of a single markdown (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutSlider ¶
func (backRepo *BackRepoStruct) CheckoutSlider(slider *models.Slider)
CommitSlider allows checkout of a single slider (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutSplit ¶
func (backRepo *BackRepoStruct) CheckoutSplit(split *models.Split)
CommitSplit allows checkout of a single split (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutSvg ¶
func (backRepo *BackRepoStruct) CheckoutSvg(svg *models.Svg)
CommitSvg allows checkout of a single svg (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutTable ¶
func (backRepo *BackRepoStruct) CheckoutTable(table *models.Table)
CommitTable allows checkout of a single table (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutTitle ¶
func (backRepo *BackRepoStruct) CheckoutTitle(title *models.Title)
CommitTitle allows checkout of a single title (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutTone ¶
func (backRepo *BackRepoStruct) CheckoutTone(tone *models.Tone)
CommitTone allows checkout of a single tone (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutTree ¶
func (backRepo *BackRepoStruct) CheckoutTree(tree *models.Tree)
CommitTree allows checkout of a single tree (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutView ¶
func (backRepo *BackRepoStruct) CheckoutView(view *models.View)
CommitView allows checkout of a single view (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutXlsx ¶
func (backRepo *BackRepoStruct) CheckoutXlsx(xlsx *models.Xlsx)
CommitXlsx allows checkout of a single xlsx (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) CommitAsSplit ¶
func (backRepo *BackRepoStruct) CommitAsSplit(assplit *models.AsSplit)
CommitAsSplit allows commit of a single assplit (if already staged)
func (*BackRepoStruct) CommitAsSplitArea ¶
func (backRepo *BackRepoStruct) CommitAsSplitArea(assplitarea *models.AsSplitArea)
CommitAsSplitArea allows commit of a single assplitarea (if already staged)
func (*BackRepoStruct) CommitButton ¶
func (backRepo *BackRepoStruct) CommitButton(button *models.Button)
CommitButton allows commit of a single button (if already staged)
func (*BackRepoStruct) CommitCursor ¶
func (backRepo *BackRepoStruct) CommitCursor(cursor *models.Cursor)
CommitCursor allows commit of a single cursor (if already staged)
func (*BackRepoStruct) CommitFavIcon ¶
func (backRepo *BackRepoStruct) CommitFavIcon(favicon *models.FavIcon)
CommitFavIcon allows commit of a single favicon (if already staged)
func (*BackRepoStruct) CommitForm ¶
func (backRepo *BackRepoStruct) CommitForm(form *models.Form)
CommitForm allows commit of a single form (if already staged)
func (*BackRepoStruct) CommitLoad ¶
func (backRepo *BackRepoStruct) CommitLoad(load *models.Load)
CommitLoad allows commit of a single load (if already staged)
func (*BackRepoStruct) CommitLogoOnTheLeft ¶
func (backRepo *BackRepoStruct) CommitLogoOnTheLeft(logoontheleft *models.LogoOnTheLeft)
CommitLogoOnTheLeft allows commit of a single logoontheleft (if already staged)
func (*BackRepoStruct) CommitLogoOnTheRight ¶
func (backRepo *BackRepoStruct) CommitLogoOnTheRight(logoontheright *models.LogoOnTheRight)
CommitLogoOnTheRight allows commit of a single logoontheright (if already staged)
func (*BackRepoStruct) CommitMarkdown ¶
func (backRepo *BackRepoStruct) CommitMarkdown(markdown *models.Markdown)
CommitMarkdown allows commit of a single markdown (if already staged)
func (*BackRepoStruct) CommitSlider ¶
func (backRepo *BackRepoStruct) CommitSlider(slider *models.Slider)
CommitSlider allows commit of a single slider (if already staged)
func (*BackRepoStruct) CommitSplit ¶
func (backRepo *BackRepoStruct) CommitSplit(split *models.Split)
CommitSplit allows commit of a single split (if already staged)
func (*BackRepoStruct) CommitSvg ¶
func (backRepo *BackRepoStruct) CommitSvg(svg *models.Svg)
CommitSvg allows commit of a single svg (if already staged)
func (*BackRepoStruct) CommitTable ¶
func (backRepo *BackRepoStruct) CommitTable(table *models.Table)
CommitTable allows commit of a single table (if already staged)
func (*BackRepoStruct) CommitTitle ¶
func (backRepo *BackRepoStruct) CommitTitle(title *models.Title)
CommitTitle allows commit of a single title (if already staged)
func (*BackRepoStruct) CommitTone ¶
func (backRepo *BackRepoStruct) CommitTone(tone *models.Tone)
CommitTone allows commit of a single tone (if already staged)
func (*BackRepoStruct) CommitTree ¶
func (backRepo *BackRepoStruct) CommitTree(tree *models.Tree)
CommitTree allows commit of a single tree (if already staged)
func (*BackRepoStruct) CommitView ¶
func (backRepo *BackRepoStruct) CommitView(view *models.View)
CommitView allows commit of a single view (if already staged)
func (*BackRepoStruct) CommitXlsx ¶
func (backRepo *BackRepoStruct) CommitXlsx(xlsx *models.Xlsx)
CommitXlsx allows commit of a single xlsx (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 BackRepoSvgStruct ¶
type BackRepoSvgStruct struct { // stores SvgDB according to their gorm ID Map_SvgDBID_SvgDB map[uint]*SvgDB // stores SvgDB ID according to Svg address Map_SvgPtr_SvgDBID map[*models.Svg]uint // stores Svg according to their gorm ID Map_SvgDBID_SvgPtr map[uint]*models.Svg // contains filtered or unexported fields }
func (*BackRepoSvgStruct) Backup ¶
func (backRepoSvg *BackRepoSvgStruct) Backup(dirPath string)
Backup generates a json file from a slice of all SvgDB instances in the backrepo
func (*BackRepoSvgStruct) BackupXL ¶
func (backRepoSvg *BackRepoSvgStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all SvgDB instances in the backrepo
func (*BackRepoSvgStruct) CheckoutPhaseOne ¶
func (backRepoSvg *BackRepoSvgStruct) CheckoutPhaseOne() (Error error)
BackRepoSvg.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 (*BackRepoSvgStruct) CheckoutPhaseOneInstance ¶
func (backRepoSvg *BackRepoSvgStruct) CheckoutPhaseOneInstance(svgDB *SvgDB) (Error error)
CheckoutPhaseOneInstance takes a svgDB that has been found in the DB, updates the backRepo and stages the models version of the svgDB
func (*BackRepoSvgStruct) CheckoutPhaseTwo ¶
func (backRepoSvg *BackRepoSvgStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoSvg.CheckoutPhaseTwo Checkouts all staged instances of Svg to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSvgStruct) CheckoutPhaseTwoInstance ¶
func (backRepoSvg *BackRepoSvgStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, svgDB *SvgDB) (Error error)
BackRepoSvg.CheckoutPhaseTwoInstance Checkouts staged instances of Svg to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSvgStruct) CommitDeleteInstance ¶
func (backRepoSvg *BackRepoSvgStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoSvg.CommitDeleteInstance commits deletion of Svg to the BackRepo
func (*BackRepoSvgStruct) CommitPhaseOne ¶
func (backRepoSvg *BackRepoSvgStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoSvg.CommitPhaseOne commits all staged instances of Svg 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 (*BackRepoSvgStruct) CommitPhaseOneInstance ¶
func (backRepoSvg *BackRepoSvgStruct) CommitPhaseOneInstance(svg *models.Svg) (Error error)
BackRepoSvg.CommitPhaseOneInstance commits svg staged instances of Svg 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 (*BackRepoSvgStruct) CommitPhaseTwo ¶
func (backRepoSvg *BackRepoSvgStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoSvg.CommitPhaseTwo commits all staged instances of Svg to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSvgStruct) CommitPhaseTwoInstance ¶
func (backRepoSvg *BackRepoSvgStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, svg *models.Svg) (Error error)
BackRepoSvg.CommitPhaseTwoInstance commits {{structname }} of models.Svg to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSvgStruct) GetDB ¶
func (backRepoSvg *BackRepoSvgStruct) GetDB() db.DBInterface
func (*BackRepoSvgStruct) GetStage ¶
func (backRepoSvg *BackRepoSvgStruct) GetStage() (stage *models.Stage)
func (*BackRepoSvgStruct) GetSvgDBFromSvgPtr ¶
func (backRepoSvg *BackRepoSvgStruct) GetSvgDBFromSvgPtr(svg *models.Svg) (svgDB *SvgDB)
GetSvgDBFromSvgPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoSvgStruct) ResetReversePointers ¶
func (backRepoSvg *BackRepoSvgStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoSvg.ResetReversePointers commits all staged instances of Svg to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSvgStruct) ResetReversePointersInstance ¶
func (backRepoSvg *BackRepoSvgStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, svg *models.Svg) (Error error)
func (*BackRepoSvgStruct) RestorePhaseOne ¶
func (backRepoSvg *BackRepoSvgStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "SvgDB.json" in dirPath that stores an array of SvgDB and stores it in the database the map BackRepoSvgid_atBckpTime_newID is updated accordingly
func (*BackRepoSvgStruct) RestorePhaseTwo ¶
func (backRepoSvg *BackRepoSvgStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Svg>id_atBckpTime_newID to compute new index
func (*BackRepoSvgStruct) RestoreXLPhaseOne ¶
func (backRepoSvg *BackRepoSvgStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Svg" sheet all SvgDB instances
type BackRepoTableStruct ¶
type BackRepoTableStruct struct { // stores TableDB according to their gorm ID Map_TableDBID_TableDB map[uint]*TableDB // stores TableDB ID according to Table address Map_TablePtr_TableDBID map[*models.Table]uint // stores Table according to their gorm ID Map_TableDBID_TablePtr map[uint]*models.Table // contains filtered or unexported fields }
func (*BackRepoTableStruct) Backup ¶
func (backRepoTable *BackRepoTableStruct) Backup(dirPath string)
Backup generates a json file from a slice of all TableDB instances in the backrepo
func (*BackRepoTableStruct) BackupXL ¶
func (backRepoTable *BackRepoTableStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all TableDB instances in the backrepo
func (*BackRepoTableStruct) CheckoutPhaseOne ¶
func (backRepoTable *BackRepoTableStruct) CheckoutPhaseOne() (Error error)
BackRepoTable.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 (*BackRepoTableStruct) CheckoutPhaseOneInstance ¶
func (backRepoTable *BackRepoTableStruct) CheckoutPhaseOneInstance(tableDB *TableDB) (Error error)
CheckoutPhaseOneInstance takes a tableDB that has been found in the DB, updates the backRepo and stages the models version of the tableDB
func (*BackRepoTableStruct) CheckoutPhaseTwo ¶
func (backRepoTable *BackRepoTableStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTable.CheckoutPhaseTwo Checkouts all staged instances of Table to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableStruct) CheckoutPhaseTwoInstance ¶
func (backRepoTable *BackRepoTableStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, tableDB *TableDB) (Error error)
BackRepoTable.CheckoutPhaseTwoInstance Checkouts staged instances of Table to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableStruct) CommitDeleteInstance ¶
func (backRepoTable *BackRepoTableStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoTable.CommitDeleteInstance commits deletion of Table to the BackRepo
func (*BackRepoTableStruct) CommitPhaseOne ¶
func (backRepoTable *BackRepoTableStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoTable.CommitPhaseOne commits all staged instances of Table 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 (*BackRepoTableStruct) CommitPhaseOneInstance ¶
func (backRepoTable *BackRepoTableStruct) CommitPhaseOneInstance(table *models.Table) (Error error)
BackRepoTable.CommitPhaseOneInstance commits table staged instances of Table 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 (*BackRepoTableStruct) CommitPhaseTwo ¶
func (backRepoTable *BackRepoTableStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTable.CommitPhaseTwo commits all staged instances of Table to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableStruct) CommitPhaseTwoInstance ¶
func (backRepoTable *BackRepoTableStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, table *models.Table) (Error error)
BackRepoTable.CommitPhaseTwoInstance commits {{structname }} of models.Table to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableStruct) GetDB ¶
func (backRepoTable *BackRepoTableStruct) GetDB() db.DBInterface
func (*BackRepoTableStruct) GetStage ¶
func (backRepoTable *BackRepoTableStruct) GetStage() (stage *models.Stage)
func (*BackRepoTableStruct) GetTableDBFromTablePtr ¶
func (backRepoTable *BackRepoTableStruct) GetTableDBFromTablePtr(table *models.Table) (tableDB *TableDB)
GetTableDBFromTablePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoTableStruct) ResetReversePointers ¶
func (backRepoTable *BackRepoTableStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoTable.ResetReversePointers commits all staged instances of Table to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableStruct) ResetReversePointersInstance ¶
func (backRepoTable *BackRepoTableStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, table *models.Table) (Error error)
func (*BackRepoTableStruct) RestorePhaseOne ¶
func (backRepoTable *BackRepoTableStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "TableDB.json" in dirPath that stores an array of TableDB and stores it in the database the map BackRepoTableid_atBckpTime_newID is updated accordingly
func (*BackRepoTableStruct) RestorePhaseTwo ¶
func (backRepoTable *BackRepoTableStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Table>id_atBckpTime_newID to compute new index
func (*BackRepoTableStruct) RestoreXLPhaseOne ¶
func (backRepoTable *BackRepoTableStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Table" sheet all TableDB instances
type BackRepoTitleStruct ¶
type BackRepoTitleStruct struct { // stores TitleDB according to their gorm ID Map_TitleDBID_TitleDB map[uint]*TitleDB // stores TitleDB ID according to Title address Map_TitlePtr_TitleDBID map[*models.Title]uint // stores Title according to their gorm ID Map_TitleDBID_TitlePtr map[uint]*models.Title // contains filtered or unexported fields }
func (*BackRepoTitleStruct) Backup ¶
func (backRepoTitle *BackRepoTitleStruct) Backup(dirPath string)
Backup generates a json file from a slice of all TitleDB instances in the backrepo
func (*BackRepoTitleStruct) BackupXL ¶
func (backRepoTitle *BackRepoTitleStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all TitleDB instances in the backrepo
func (*BackRepoTitleStruct) CheckoutPhaseOne ¶
func (backRepoTitle *BackRepoTitleStruct) CheckoutPhaseOne() (Error error)
BackRepoTitle.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 (*BackRepoTitleStruct) CheckoutPhaseOneInstance ¶
func (backRepoTitle *BackRepoTitleStruct) CheckoutPhaseOneInstance(titleDB *TitleDB) (Error error)
CheckoutPhaseOneInstance takes a titleDB that has been found in the DB, updates the backRepo and stages the models version of the titleDB
func (*BackRepoTitleStruct) CheckoutPhaseTwo ¶
func (backRepoTitle *BackRepoTitleStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTitle.CheckoutPhaseTwo Checkouts all staged instances of Title to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTitleStruct) CheckoutPhaseTwoInstance ¶
func (backRepoTitle *BackRepoTitleStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, titleDB *TitleDB) (Error error)
BackRepoTitle.CheckoutPhaseTwoInstance Checkouts staged instances of Title to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTitleStruct) CommitDeleteInstance ¶
func (backRepoTitle *BackRepoTitleStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoTitle.CommitDeleteInstance commits deletion of Title to the BackRepo
func (*BackRepoTitleStruct) CommitPhaseOne ¶
func (backRepoTitle *BackRepoTitleStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoTitle.CommitPhaseOne commits all staged instances of Title 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 (*BackRepoTitleStruct) CommitPhaseOneInstance ¶
func (backRepoTitle *BackRepoTitleStruct) CommitPhaseOneInstance(title *models.Title) (Error error)
BackRepoTitle.CommitPhaseOneInstance commits title staged instances of Title 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 (*BackRepoTitleStruct) CommitPhaseTwo ¶
func (backRepoTitle *BackRepoTitleStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTitle.CommitPhaseTwo commits all staged instances of Title to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTitleStruct) CommitPhaseTwoInstance ¶
func (backRepoTitle *BackRepoTitleStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, title *models.Title) (Error error)
BackRepoTitle.CommitPhaseTwoInstance commits {{structname }} of models.Title to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTitleStruct) GetDB ¶
func (backRepoTitle *BackRepoTitleStruct) GetDB() db.DBInterface
func (*BackRepoTitleStruct) GetStage ¶
func (backRepoTitle *BackRepoTitleStruct) GetStage() (stage *models.Stage)
func (*BackRepoTitleStruct) GetTitleDBFromTitlePtr ¶
func (backRepoTitle *BackRepoTitleStruct) GetTitleDBFromTitlePtr(title *models.Title) (titleDB *TitleDB)
GetTitleDBFromTitlePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoTitleStruct) ResetReversePointers ¶
func (backRepoTitle *BackRepoTitleStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoTitle.ResetReversePointers commits all staged instances of Title to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTitleStruct) ResetReversePointersInstance ¶
func (backRepoTitle *BackRepoTitleStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, title *models.Title) (Error error)
func (*BackRepoTitleStruct) RestorePhaseOne ¶
func (backRepoTitle *BackRepoTitleStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "TitleDB.json" in dirPath that stores an array of TitleDB and stores it in the database the map BackRepoTitleid_atBckpTime_newID is updated accordingly
func (*BackRepoTitleStruct) RestorePhaseTwo ¶
func (backRepoTitle *BackRepoTitleStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Title>id_atBckpTime_newID to compute new index
func (*BackRepoTitleStruct) RestoreXLPhaseOne ¶
func (backRepoTitle *BackRepoTitleStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Title" sheet all TitleDB instances
type BackRepoToneStruct ¶
type BackRepoToneStruct struct { // stores ToneDB according to their gorm ID Map_ToneDBID_ToneDB map[uint]*ToneDB // stores ToneDB ID according to Tone address Map_TonePtr_ToneDBID map[*models.Tone]uint // stores Tone according to their gorm ID Map_ToneDBID_TonePtr map[uint]*models.Tone // contains filtered or unexported fields }
func (*BackRepoToneStruct) Backup ¶
func (backRepoTone *BackRepoToneStruct) Backup(dirPath string)
Backup generates a json file from a slice of all ToneDB instances in the backrepo
func (*BackRepoToneStruct) BackupXL ¶
func (backRepoTone *BackRepoToneStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all ToneDB instances in the backrepo
func (*BackRepoToneStruct) CheckoutPhaseOne ¶
func (backRepoTone *BackRepoToneStruct) CheckoutPhaseOne() (Error error)
BackRepoTone.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 (*BackRepoToneStruct) CheckoutPhaseOneInstance ¶
func (backRepoTone *BackRepoToneStruct) CheckoutPhaseOneInstance(toneDB *ToneDB) (Error error)
CheckoutPhaseOneInstance takes a toneDB that has been found in the DB, updates the backRepo and stages the models version of the toneDB
func (*BackRepoToneStruct) CheckoutPhaseTwo ¶
func (backRepoTone *BackRepoToneStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTone.CheckoutPhaseTwo Checkouts all staged instances of Tone to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoToneStruct) CheckoutPhaseTwoInstance ¶
func (backRepoTone *BackRepoToneStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, toneDB *ToneDB) (Error error)
BackRepoTone.CheckoutPhaseTwoInstance Checkouts staged instances of Tone to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoToneStruct) CommitDeleteInstance ¶
func (backRepoTone *BackRepoToneStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoTone.CommitDeleteInstance commits deletion of Tone to the BackRepo
func (*BackRepoToneStruct) CommitPhaseOne ¶
func (backRepoTone *BackRepoToneStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoTone.CommitPhaseOne commits all staged instances of Tone 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 (*BackRepoToneStruct) CommitPhaseOneInstance ¶
func (backRepoTone *BackRepoToneStruct) CommitPhaseOneInstance(tone *models.Tone) (Error error)
BackRepoTone.CommitPhaseOneInstance commits tone staged instances of Tone 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 (*BackRepoToneStruct) CommitPhaseTwo ¶
func (backRepoTone *BackRepoToneStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTone.CommitPhaseTwo commits all staged instances of Tone to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoToneStruct) CommitPhaseTwoInstance ¶
func (backRepoTone *BackRepoToneStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, tone *models.Tone) (Error error)
BackRepoTone.CommitPhaseTwoInstance commits {{structname }} of models.Tone to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoToneStruct) GetDB ¶
func (backRepoTone *BackRepoToneStruct) GetDB() db.DBInterface
func (*BackRepoToneStruct) GetStage ¶
func (backRepoTone *BackRepoToneStruct) GetStage() (stage *models.Stage)
func (*BackRepoToneStruct) GetToneDBFromTonePtr ¶
func (backRepoTone *BackRepoToneStruct) GetToneDBFromTonePtr(tone *models.Tone) (toneDB *ToneDB)
GetToneDBFromTonePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoToneStruct) ResetReversePointers ¶
func (backRepoTone *BackRepoToneStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoTone.ResetReversePointers commits all staged instances of Tone to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoToneStruct) ResetReversePointersInstance ¶
func (backRepoTone *BackRepoToneStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, tone *models.Tone) (Error error)
func (*BackRepoToneStruct) RestorePhaseOne ¶
func (backRepoTone *BackRepoToneStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "ToneDB.json" in dirPath that stores an array of ToneDB and stores it in the database the map BackRepoToneid_atBckpTime_newID is updated accordingly
func (*BackRepoToneStruct) RestorePhaseTwo ¶
func (backRepoTone *BackRepoToneStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Tone>id_atBckpTime_newID to compute new index
func (*BackRepoToneStruct) RestoreXLPhaseOne ¶
func (backRepoTone *BackRepoToneStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Tone" sheet all ToneDB instances
type BackRepoTreeStruct ¶
type BackRepoTreeStruct struct { // stores TreeDB according to their gorm ID Map_TreeDBID_TreeDB map[uint]*TreeDB // stores TreeDB ID according to Tree address Map_TreePtr_TreeDBID map[*models.Tree]uint // stores Tree according to their gorm ID Map_TreeDBID_TreePtr map[uint]*models.Tree // contains filtered or unexported fields }
func (*BackRepoTreeStruct) Backup ¶
func (backRepoTree *BackRepoTreeStruct) Backup(dirPath string)
Backup generates a json file from a slice of all TreeDB instances in the backrepo
func (*BackRepoTreeStruct) BackupXL ¶
func (backRepoTree *BackRepoTreeStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all TreeDB instances in the backrepo
func (*BackRepoTreeStruct) CheckoutPhaseOne ¶
func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseOne() (Error error)
BackRepoTree.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 (*BackRepoTreeStruct) CheckoutPhaseOneInstance ¶
func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseOneInstance(treeDB *TreeDB) (Error error)
CheckoutPhaseOneInstance takes a treeDB that has been found in the DB, updates the backRepo and stages the models version of the treeDB
func (*BackRepoTreeStruct) CheckoutPhaseTwo ¶
func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTree.CheckoutPhaseTwo Checkouts all staged instances of Tree to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTreeStruct) CheckoutPhaseTwoInstance ¶
func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, treeDB *TreeDB) (Error error)
BackRepoTree.CheckoutPhaseTwoInstance Checkouts staged instances of Tree to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTreeStruct) CommitDeleteInstance ¶
func (backRepoTree *BackRepoTreeStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoTree.CommitDeleteInstance commits deletion of Tree to the BackRepo
func (*BackRepoTreeStruct) CommitPhaseOne ¶
func (backRepoTree *BackRepoTreeStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoTree.CommitPhaseOne commits all staged instances of Tree 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 (*BackRepoTreeStruct) CommitPhaseOneInstance ¶
func (backRepoTree *BackRepoTreeStruct) CommitPhaseOneInstance(tree *models.Tree) (Error error)
BackRepoTree.CommitPhaseOneInstance commits tree staged instances of Tree 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 (*BackRepoTreeStruct) CommitPhaseTwo ¶
func (backRepoTree *BackRepoTreeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTree.CommitPhaseTwo commits all staged instances of Tree to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTreeStruct) CommitPhaseTwoInstance ¶
func (backRepoTree *BackRepoTreeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, tree *models.Tree) (Error error)
BackRepoTree.CommitPhaseTwoInstance commits {{structname }} of models.Tree to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTreeStruct) GetDB ¶
func (backRepoTree *BackRepoTreeStruct) GetDB() db.DBInterface
func (*BackRepoTreeStruct) GetStage ¶
func (backRepoTree *BackRepoTreeStruct) GetStage() (stage *models.Stage)
func (*BackRepoTreeStruct) GetTreeDBFromTreePtr ¶
func (backRepoTree *BackRepoTreeStruct) GetTreeDBFromTreePtr(tree *models.Tree) (treeDB *TreeDB)
GetTreeDBFromTreePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoTreeStruct) ResetReversePointers ¶
func (backRepoTree *BackRepoTreeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoTree.ResetReversePointers commits all staged instances of Tree to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTreeStruct) ResetReversePointersInstance ¶
func (backRepoTree *BackRepoTreeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, tree *models.Tree) (Error error)
func (*BackRepoTreeStruct) RestorePhaseOne ¶
func (backRepoTree *BackRepoTreeStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "TreeDB.json" in dirPath that stores an array of TreeDB and stores it in the database the map BackRepoTreeid_atBckpTime_newID is updated accordingly
func (*BackRepoTreeStruct) RestorePhaseTwo ¶
func (backRepoTree *BackRepoTreeStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Tree>id_atBckpTime_newID to compute new index
func (*BackRepoTreeStruct) RestoreXLPhaseOne ¶
func (backRepoTree *BackRepoTreeStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Tree" sheet all TreeDB instances
type BackRepoViewStruct ¶
type BackRepoViewStruct struct { // stores ViewDB according to their gorm ID Map_ViewDBID_ViewDB map[uint]*ViewDB // stores ViewDB ID according to View address Map_ViewPtr_ViewDBID map[*models.View]uint // stores View according to their gorm ID Map_ViewDBID_ViewPtr map[uint]*models.View // contains filtered or unexported fields }
func (*BackRepoViewStruct) Backup ¶
func (backRepoView *BackRepoViewStruct) Backup(dirPath string)
Backup generates a json file from a slice of all ViewDB instances in the backrepo
func (*BackRepoViewStruct) BackupXL ¶
func (backRepoView *BackRepoViewStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all ViewDB instances in the backrepo
func (*BackRepoViewStruct) CheckoutPhaseOne ¶
func (backRepoView *BackRepoViewStruct) CheckoutPhaseOne() (Error error)
BackRepoView.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 (*BackRepoViewStruct) CheckoutPhaseOneInstance ¶
func (backRepoView *BackRepoViewStruct) CheckoutPhaseOneInstance(viewDB *ViewDB) (Error error)
CheckoutPhaseOneInstance takes a viewDB that has been found in the DB, updates the backRepo and stages the models version of the viewDB
func (*BackRepoViewStruct) CheckoutPhaseTwo ¶
func (backRepoView *BackRepoViewStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoView.CheckoutPhaseTwo Checkouts all staged instances of View to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoViewStruct) CheckoutPhaseTwoInstance ¶
func (backRepoView *BackRepoViewStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, viewDB *ViewDB) (Error error)
BackRepoView.CheckoutPhaseTwoInstance Checkouts staged instances of View to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoViewStruct) CommitDeleteInstance ¶
func (backRepoView *BackRepoViewStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoView.CommitDeleteInstance commits deletion of View to the BackRepo
func (*BackRepoViewStruct) CommitPhaseOne ¶
func (backRepoView *BackRepoViewStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoView.CommitPhaseOne commits all staged instances of View 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 (*BackRepoViewStruct) CommitPhaseOneInstance ¶
func (backRepoView *BackRepoViewStruct) CommitPhaseOneInstance(view *models.View) (Error error)
BackRepoView.CommitPhaseOneInstance commits view staged instances of View 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 (*BackRepoViewStruct) CommitPhaseTwo ¶
func (backRepoView *BackRepoViewStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoView.CommitPhaseTwo commits all staged instances of View to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoViewStruct) CommitPhaseTwoInstance ¶
func (backRepoView *BackRepoViewStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, view *models.View) (Error error)
BackRepoView.CommitPhaseTwoInstance commits {{structname }} of models.View to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoViewStruct) GetDB ¶
func (backRepoView *BackRepoViewStruct) GetDB() db.DBInterface
func (*BackRepoViewStruct) GetStage ¶
func (backRepoView *BackRepoViewStruct) GetStage() (stage *models.Stage)
func (*BackRepoViewStruct) GetViewDBFromViewPtr ¶
func (backRepoView *BackRepoViewStruct) GetViewDBFromViewPtr(view *models.View) (viewDB *ViewDB)
GetViewDBFromViewPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoViewStruct) ResetReversePointers ¶
func (backRepoView *BackRepoViewStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoView.ResetReversePointers commits all staged instances of View to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoViewStruct) ResetReversePointersInstance ¶
func (backRepoView *BackRepoViewStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, view *models.View) (Error error)
func (*BackRepoViewStruct) RestorePhaseOne ¶
func (backRepoView *BackRepoViewStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "ViewDB.json" in dirPath that stores an array of ViewDB and stores it in the database the map BackRepoViewid_atBckpTime_newID is updated accordingly
func (*BackRepoViewStruct) RestorePhaseTwo ¶
func (backRepoView *BackRepoViewStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<View>id_atBckpTime_newID to compute new index
func (*BackRepoViewStruct) RestoreXLPhaseOne ¶
func (backRepoView *BackRepoViewStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "View" sheet all ViewDB instances
type BackRepoXlsxStruct ¶
type BackRepoXlsxStruct struct { // stores XlsxDB according to their gorm ID Map_XlsxDBID_XlsxDB map[uint]*XlsxDB // stores XlsxDB ID according to Xlsx address Map_XlsxPtr_XlsxDBID map[*models.Xlsx]uint // stores Xlsx according to their gorm ID Map_XlsxDBID_XlsxPtr map[uint]*models.Xlsx // contains filtered or unexported fields }
func (*BackRepoXlsxStruct) Backup ¶
func (backRepoXlsx *BackRepoXlsxStruct) Backup(dirPath string)
Backup generates a json file from a slice of all XlsxDB instances in the backrepo
func (*BackRepoXlsxStruct) BackupXL ¶
func (backRepoXlsx *BackRepoXlsxStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all XlsxDB instances in the backrepo
func (*BackRepoXlsxStruct) CheckoutPhaseOne ¶
func (backRepoXlsx *BackRepoXlsxStruct) CheckoutPhaseOne() (Error error)
BackRepoXlsx.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 (*BackRepoXlsxStruct) CheckoutPhaseOneInstance ¶
func (backRepoXlsx *BackRepoXlsxStruct) CheckoutPhaseOneInstance(xlsxDB *XlsxDB) (Error error)
CheckoutPhaseOneInstance takes a xlsxDB that has been found in the DB, updates the backRepo and stages the models version of the xlsxDB
func (*BackRepoXlsxStruct) CheckoutPhaseTwo ¶
func (backRepoXlsx *BackRepoXlsxStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoXlsx.CheckoutPhaseTwo Checkouts all staged instances of Xlsx to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoXlsxStruct) CheckoutPhaseTwoInstance ¶
func (backRepoXlsx *BackRepoXlsxStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, xlsxDB *XlsxDB) (Error error)
BackRepoXlsx.CheckoutPhaseTwoInstance Checkouts staged instances of Xlsx to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoXlsxStruct) CommitDeleteInstance ¶
func (backRepoXlsx *BackRepoXlsxStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoXlsx.CommitDeleteInstance commits deletion of Xlsx to the BackRepo
func (*BackRepoXlsxStruct) CommitPhaseOne ¶
func (backRepoXlsx *BackRepoXlsxStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoXlsx.CommitPhaseOne commits all staged instances of Xlsx 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 (*BackRepoXlsxStruct) CommitPhaseOneInstance ¶
func (backRepoXlsx *BackRepoXlsxStruct) CommitPhaseOneInstance(xlsx *models.Xlsx) (Error error)
BackRepoXlsx.CommitPhaseOneInstance commits xlsx staged instances of Xlsx 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 (*BackRepoXlsxStruct) CommitPhaseTwo ¶
func (backRepoXlsx *BackRepoXlsxStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoXlsx.CommitPhaseTwo commits all staged instances of Xlsx to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoXlsxStruct) CommitPhaseTwoInstance ¶
func (backRepoXlsx *BackRepoXlsxStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, xlsx *models.Xlsx) (Error error)
BackRepoXlsx.CommitPhaseTwoInstance commits {{structname }} of models.Xlsx to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoXlsxStruct) GetDB ¶
func (backRepoXlsx *BackRepoXlsxStruct) GetDB() db.DBInterface
func (*BackRepoXlsxStruct) GetStage ¶
func (backRepoXlsx *BackRepoXlsxStruct) GetStage() (stage *models.Stage)
func (*BackRepoXlsxStruct) GetXlsxDBFromXlsxPtr ¶
func (backRepoXlsx *BackRepoXlsxStruct) GetXlsxDBFromXlsxPtr(xlsx *models.Xlsx) (xlsxDB *XlsxDB)
GetXlsxDBFromXlsxPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoXlsxStruct) ResetReversePointers ¶
func (backRepoXlsx *BackRepoXlsxStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoXlsx.ResetReversePointers commits all staged instances of Xlsx to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoXlsxStruct) ResetReversePointersInstance ¶
func (backRepoXlsx *BackRepoXlsxStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, xlsx *models.Xlsx) (Error error)
func (*BackRepoXlsxStruct) RestorePhaseOne ¶
func (backRepoXlsx *BackRepoXlsxStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "XlsxDB.json" in dirPath that stores an array of XlsxDB and stores it in the database the map BackRepoXlsxid_atBckpTime_newID is updated accordingly
func (*BackRepoXlsxStruct) RestorePhaseTwo ¶
func (backRepoXlsx *BackRepoXlsxStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Xlsx>id_atBckpTime_newID to compute new index
func (*BackRepoXlsxStruct) RestoreXLPhaseOne ¶
func (backRepoXlsx *BackRepoXlsxStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Xlsx" sheet all XlsxDB instances
type ButtonAPI ¶
type ButtonAPI struct { gorm.Model models.Button_WOP // encoding of pointers // for API, it cannot be embedded ButtonPointersEncoding ButtonPointersEncoding }
ButtonAPI 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 buttonAPI
type ButtonDB ¶
type ButtonDB struct { gorm.Model // Declation for basic field buttonDB.Name Name_Data sql.NullString // Declation for basic field buttonDB.StackName StackName_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration ButtonPointersEncoding }
ButtonDB describes a button 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 buttonDB
func (*ButtonDB) CopyBasicFieldsFromButton ¶
CopyBasicFieldsFromButton
func (*ButtonDB) CopyBasicFieldsFromButtonWOP ¶
CopyBasicFieldsFromButtonWOP
func (*ButtonDB) CopyBasicFieldsFromButton_WOP ¶
func (buttonDB *ButtonDB) CopyBasicFieldsFromButton_WOP(button *models.Button_WOP)
CopyBasicFieldsFromButton_WOP
func (*ButtonDB) CopyBasicFieldsToButton ¶
CopyBasicFieldsToButton
func (*ButtonDB) CopyBasicFieldsToButtonWOP ¶
CopyBasicFieldsToButtonWOP
func (*ButtonDB) CopyBasicFieldsToButton_WOP ¶
func (buttonDB *ButtonDB) CopyBasicFieldsToButton_WOP(button *models.Button_WOP)
CopyBasicFieldsToButton_WOP
func (*ButtonDB) DecodePointers ¶
func (buttonDB *ButtonDB) DecodePointers(backRepo *BackRepoStruct, button *models.Button)
type ButtonDBResponse ¶
type ButtonDBResponse struct {
ButtonDB
}
ButtonDBResponse provides response swagger:response buttonDBResponse
type ButtonDBs ¶
type ButtonDBs []ButtonDB
ButtonDBs arrays buttonDBs swagger:response buttonDBsResponse
type ButtonPointersEncoding ¶
type ButtonPointersEncoding struct { }
ButtonPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type ButtonWOP ¶
ButtonWOP is a Button without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type CursorAPI ¶
type CursorAPI struct { gorm.Model models.Cursor_WOP // encoding of pointers // for API, it cannot be embedded CursorPointersEncoding CursorPointersEncoding }
CursorAPI 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 cursorAPI
type CursorDB ¶
type CursorDB struct { gorm.Model // Declation for basic field cursorDB.Name Name_Data sql.NullString // Declation for basic field cursorDB.StackName StackName_Data sql.NullString // Declation for basic field cursorDB.Style Style_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration CursorPointersEncoding }
CursorDB describes a cursor 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 cursorDB
func (*CursorDB) CopyBasicFieldsFromCursor ¶
CopyBasicFieldsFromCursor
func (*CursorDB) CopyBasicFieldsFromCursorWOP ¶
CopyBasicFieldsFromCursorWOP
func (*CursorDB) CopyBasicFieldsFromCursor_WOP ¶
func (cursorDB *CursorDB) CopyBasicFieldsFromCursor_WOP(cursor *models.Cursor_WOP)
CopyBasicFieldsFromCursor_WOP
func (*CursorDB) CopyBasicFieldsToCursor ¶
CopyBasicFieldsToCursor
func (*CursorDB) CopyBasicFieldsToCursorWOP ¶
CopyBasicFieldsToCursorWOP
func (*CursorDB) CopyBasicFieldsToCursor_WOP ¶
func (cursorDB *CursorDB) CopyBasicFieldsToCursor_WOP(cursor *models.Cursor_WOP)
CopyBasicFieldsToCursor_WOP
func (*CursorDB) DecodePointers ¶
func (cursorDB *CursorDB) DecodePointers(backRepo *BackRepoStruct, cursor *models.Cursor)
type CursorDBResponse ¶
type CursorDBResponse struct {
CursorDB
}
CursorDBResponse provides response swagger:response cursorDBResponse
type CursorDBs ¶
type CursorDBs []CursorDB
CursorDBs arrays cursorDBs swagger:response cursorDBsResponse
type CursorPointersEncoding ¶
type CursorPointersEncoding struct { }
CursorPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type CursorWOP ¶
type CursorWOP struct { ID int `xlsx:"0"` Name string `xlsx:"1"` StackName string `xlsx:"2"` Style string `xlsx:"3"` }
CursorWOP is a Cursor 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 FavIconAPI ¶
type FavIconAPI struct { gorm.Model models.FavIcon_WOP // encoding of pointers // for API, it cannot be embedded FavIconPointersEncoding FavIconPointersEncoding }
FavIconAPI 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 faviconAPI
type FavIconDB ¶
type FavIconDB struct { gorm.Model // Declation for basic field faviconDB.Name Name_Data sql.NullString // Declation for basic field faviconDB.SVG SVG_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration FavIconPointersEncoding }
FavIconDB describes a favicon 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 faviconDB
func (*FavIconDB) CopyBasicFieldsFromFavIcon ¶
CopyBasicFieldsFromFavIcon
func (*FavIconDB) CopyBasicFieldsFromFavIconWOP ¶
func (faviconDB *FavIconDB) CopyBasicFieldsFromFavIconWOP(favicon *FavIconWOP)
CopyBasicFieldsFromFavIconWOP
func (*FavIconDB) CopyBasicFieldsFromFavIcon_WOP ¶
func (faviconDB *FavIconDB) CopyBasicFieldsFromFavIcon_WOP(favicon *models.FavIcon_WOP)
CopyBasicFieldsFromFavIcon_WOP
func (*FavIconDB) CopyBasicFieldsToFavIcon ¶
CopyBasicFieldsToFavIcon
func (*FavIconDB) CopyBasicFieldsToFavIconWOP ¶
func (faviconDB *FavIconDB) CopyBasicFieldsToFavIconWOP(favicon *FavIconWOP)
CopyBasicFieldsToFavIconWOP
func (*FavIconDB) CopyBasicFieldsToFavIcon_WOP ¶
func (faviconDB *FavIconDB) CopyBasicFieldsToFavIcon_WOP(favicon *models.FavIcon_WOP)
CopyBasicFieldsToFavIcon_WOP
func (*FavIconDB) DecodePointers ¶
func (faviconDB *FavIconDB) DecodePointers(backRepo *BackRepoStruct, favicon *models.FavIcon)
type FavIconDBResponse ¶
type FavIconDBResponse struct {
FavIconDB
}
FavIconDBResponse provides response swagger:response faviconDBResponse
type FavIconDBs ¶
type FavIconDBs []FavIconDB
FavIconDBs arrays faviconDBs swagger:response faviconDBsResponse
type FavIconPointersEncoding ¶
type FavIconPointersEncoding struct { }
FavIconPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type FavIconWOP ¶
FavIconWOP is a FavIcon without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type FormAPI ¶
type FormAPI struct { gorm.Model models.Form_WOP // encoding of pointers // for API, it cannot be embedded FormPointersEncoding FormPointersEncoding }
FormAPI 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 formAPI
type FormDB ¶
type FormDB struct { gorm.Model // Declation for basic field formDB.Name Name_Data sql.NullString // Declation for basic field formDB.StackName StackName_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration FormPointersEncoding }
FormDB describes a form 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 formDB
func (*FormDB) CopyBasicFieldsFromForm ¶
CopyBasicFieldsFromForm
func (*FormDB) CopyBasicFieldsFromFormWOP ¶
CopyBasicFieldsFromFormWOP
func (*FormDB) CopyBasicFieldsFromForm_WOP ¶
CopyBasicFieldsFromForm_WOP
func (*FormDB) CopyBasicFieldsToForm ¶
CopyBasicFieldsToForm
func (*FormDB) CopyBasicFieldsToFormWOP ¶
CopyBasicFieldsToFormWOP
func (*FormDB) CopyBasicFieldsToForm_WOP ¶
CopyBasicFieldsToForm_WOP
func (*FormDB) DecodePointers ¶
func (formDB *FormDB) DecodePointers(backRepo *BackRepoStruct, form *models.Form)
type FormDBResponse ¶
type FormDBResponse struct {
FormDB
}
FormDBResponse provides response swagger:response formDBResponse
type FormPointersEncoding ¶
type FormPointersEncoding struct { }
FormPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type FormWOP ¶
FormWOP is a Form 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 LoadAPI ¶
type LoadAPI struct { gorm.Model models.Load_WOP // encoding of pointers // for API, it cannot be embedded LoadPointersEncoding LoadPointersEncoding }
LoadAPI 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 loadAPI
type LoadDB ¶
type LoadDB struct { gorm.Model // Declation for basic field loadDB.Name Name_Data sql.NullString // Declation for basic field loadDB.StackName StackName_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration LoadPointersEncoding }
LoadDB describes a load 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 loadDB
func (*LoadDB) CopyBasicFieldsFromLoad ¶
CopyBasicFieldsFromLoad
func (*LoadDB) CopyBasicFieldsFromLoadWOP ¶
CopyBasicFieldsFromLoadWOP
func (*LoadDB) CopyBasicFieldsFromLoad_WOP ¶
CopyBasicFieldsFromLoad_WOP
func (*LoadDB) CopyBasicFieldsToLoad ¶
CopyBasicFieldsToLoad
func (*LoadDB) CopyBasicFieldsToLoadWOP ¶
CopyBasicFieldsToLoadWOP
func (*LoadDB) CopyBasicFieldsToLoad_WOP ¶
CopyBasicFieldsToLoad_WOP
func (*LoadDB) DecodePointers ¶
func (loadDB *LoadDB) DecodePointers(backRepo *BackRepoStruct, load *models.Load)
type LoadDBResponse ¶
type LoadDBResponse struct {
LoadDB
}
LoadDBResponse provides response swagger:response loadDBResponse
type LoadPointersEncoding ¶
type LoadPointersEncoding struct { }
LoadPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type LoadWOP ¶
LoadWOP is a Load without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type LogoOnTheLeftAPI ¶
type LogoOnTheLeftAPI struct { gorm.Model models.LogoOnTheLeft_WOP // encoding of pointers // for API, it cannot be embedded LogoOnTheLeftPointersEncoding LogoOnTheLeftPointersEncoding }
LogoOnTheLeftAPI 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 logoontheleftAPI
type LogoOnTheLeftDB ¶
type LogoOnTheLeftDB struct { gorm.Model // Declation for basic field logoontheleftDB.Name Name_Data sql.NullString // Declation for basic field logoontheleftDB.Width Width_Data sql.NullInt64 // Declation for basic field logoontheleftDB.Height Height_Data sql.NullInt64 // Declation for basic field logoontheleftDB.SVG SVG_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration LogoOnTheLeftPointersEncoding }
LogoOnTheLeftDB describes a logoontheleft 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 logoontheleftDB
func (*LogoOnTheLeftDB) CopyBasicFieldsFromLogoOnTheLeft ¶
func (logoontheleftDB *LogoOnTheLeftDB) CopyBasicFieldsFromLogoOnTheLeft(logoontheleft *models.LogoOnTheLeft)
CopyBasicFieldsFromLogoOnTheLeft
func (*LogoOnTheLeftDB) CopyBasicFieldsFromLogoOnTheLeftWOP ¶
func (logoontheleftDB *LogoOnTheLeftDB) CopyBasicFieldsFromLogoOnTheLeftWOP(logoontheleft *LogoOnTheLeftWOP)
CopyBasicFieldsFromLogoOnTheLeftWOP
func (*LogoOnTheLeftDB) CopyBasicFieldsFromLogoOnTheLeft_WOP ¶
func (logoontheleftDB *LogoOnTheLeftDB) CopyBasicFieldsFromLogoOnTheLeft_WOP(logoontheleft *models.LogoOnTheLeft_WOP)
CopyBasicFieldsFromLogoOnTheLeft_WOP
func (*LogoOnTheLeftDB) CopyBasicFieldsToLogoOnTheLeft ¶
func (logoontheleftDB *LogoOnTheLeftDB) CopyBasicFieldsToLogoOnTheLeft(logoontheleft *models.LogoOnTheLeft)
CopyBasicFieldsToLogoOnTheLeft
func (*LogoOnTheLeftDB) CopyBasicFieldsToLogoOnTheLeftWOP ¶
func (logoontheleftDB *LogoOnTheLeftDB) CopyBasicFieldsToLogoOnTheLeftWOP(logoontheleft *LogoOnTheLeftWOP)
CopyBasicFieldsToLogoOnTheLeftWOP
func (*LogoOnTheLeftDB) CopyBasicFieldsToLogoOnTheLeft_WOP ¶
func (logoontheleftDB *LogoOnTheLeftDB) CopyBasicFieldsToLogoOnTheLeft_WOP(logoontheleft *models.LogoOnTheLeft_WOP)
CopyBasicFieldsToLogoOnTheLeft_WOP
func (*LogoOnTheLeftDB) DecodePointers ¶
func (logoontheleftDB *LogoOnTheLeftDB) DecodePointers(backRepo *BackRepoStruct, logoontheleft *models.LogoOnTheLeft)
type LogoOnTheLeftDBResponse ¶
type LogoOnTheLeftDBResponse struct {
LogoOnTheLeftDB
}
LogoOnTheLeftDBResponse provides response swagger:response logoontheleftDBResponse
type LogoOnTheLeftDBs ¶
type LogoOnTheLeftDBs []LogoOnTheLeftDB
LogoOnTheLeftDBs arrays logoontheleftDBs swagger:response logoontheleftDBsResponse
type LogoOnTheLeftPointersEncoding ¶
type LogoOnTheLeftPointersEncoding struct { }
LogoOnTheLeftPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type LogoOnTheLeftWOP ¶
type LogoOnTheLeftWOP struct { ID int `xlsx:"0"` Name string `xlsx:"1"` Width int `xlsx:"2"` Height int `xlsx:"3"` SVG string `xlsx:"4"` }
LogoOnTheLeftWOP is a LogoOnTheLeft without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type LogoOnTheRightAPI ¶
type LogoOnTheRightAPI struct { gorm.Model models.LogoOnTheRight_WOP // encoding of pointers // for API, it cannot be embedded LogoOnTheRightPointersEncoding LogoOnTheRightPointersEncoding }
LogoOnTheRightAPI 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 logoontherightAPI
type LogoOnTheRightDB ¶
type LogoOnTheRightDB struct { gorm.Model // Declation for basic field logoontherightDB.Name Name_Data sql.NullString // Declation for basic field logoontherightDB.Width Width_Data sql.NullInt64 // Declation for basic field logoontherightDB.Height Height_Data sql.NullInt64 // Declation for basic field logoontherightDB.SVG SVG_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration LogoOnTheRightPointersEncoding }
LogoOnTheRightDB describes a logoontheright 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 logoontherightDB
func (*LogoOnTheRightDB) CopyBasicFieldsFromLogoOnTheRight ¶
func (logoontherightDB *LogoOnTheRightDB) CopyBasicFieldsFromLogoOnTheRight(logoontheright *models.LogoOnTheRight)
CopyBasicFieldsFromLogoOnTheRight
func (*LogoOnTheRightDB) CopyBasicFieldsFromLogoOnTheRightWOP ¶
func (logoontherightDB *LogoOnTheRightDB) CopyBasicFieldsFromLogoOnTheRightWOP(logoontheright *LogoOnTheRightWOP)
CopyBasicFieldsFromLogoOnTheRightWOP
func (*LogoOnTheRightDB) CopyBasicFieldsFromLogoOnTheRight_WOP ¶
func (logoontherightDB *LogoOnTheRightDB) CopyBasicFieldsFromLogoOnTheRight_WOP(logoontheright *models.LogoOnTheRight_WOP)
CopyBasicFieldsFromLogoOnTheRight_WOP
func (*LogoOnTheRightDB) CopyBasicFieldsToLogoOnTheRight ¶
func (logoontherightDB *LogoOnTheRightDB) CopyBasicFieldsToLogoOnTheRight(logoontheright *models.LogoOnTheRight)
CopyBasicFieldsToLogoOnTheRight
func (*LogoOnTheRightDB) CopyBasicFieldsToLogoOnTheRightWOP ¶
func (logoontherightDB *LogoOnTheRightDB) CopyBasicFieldsToLogoOnTheRightWOP(logoontheright *LogoOnTheRightWOP)
CopyBasicFieldsToLogoOnTheRightWOP
func (*LogoOnTheRightDB) CopyBasicFieldsToLogoOnTheRight_WOP ¶
func (logoontherightDB *LogoOnTheRightDB) CopyBasicFieldsToLogoOnTheRight_WOP(logoontheright *models.LogoOnTheRight_WOP)
CopyBasicFieldsToLogoOnTheRight_WOP
func (*LogoOnTheRightDB) DecodePointers ¶
func (logoontherightDB *LogoOnTheRightDB) DecodePointers(backRepo *BackRepoStruct, logoontheright *models.LogoOnTheRight)
type LogoOnTheRightDBResponse ¶
type LogoOnTheRightDBResponse struct {
LogoOnTheRightDB
}
LogoOnTheRightDBResponse provides response swagger:response logoontherightDBResponse
type LogoOnTheRightDBs ¶
type LogoOnTheRightDBs []LogoOnTheRightDB
LogoOnTheRightDBs arrays logoontherightDBs swagger:response logoontherightDBsResponse
type LogoOnTheRightPointersEncoding ¶
type LogoOnTheRightPointersEncoding struct { }
LogoOnTheRightPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type LogoOnTheRightWOP ¶
type LogoOnTheRightWOP struct { ID int `xlsx:"0"` Name string `xlsx:"1"` Width int `xlsx:"2"` Height int `xlsx:"3"` SVG string `xlsx:"4"` }
LogoOnTheRightWOP is a LogoOnTheRight without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type MarkdownAPI ¶
type MarkdownAPI struct { gorm.Model models.Markdown_WOP // encoding of pointers // for API, it cannot be embedded MarkdownPointersEncoding MarkdownPointersEncoding }
MarkdownAPI 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 markdownAPI
type MarkdownDB ¶
type MarkdownDB struct { gorm.Model // Declation for basic field markdownDB.Name Name_Data sql.NullString // Declation for basic field markdownDB.StackName StackName_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration MarkdownPointersEncoding }
MarkdownDB describes a markdown 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 markdownDB
func (*MarkdownDB) CopyBasicFieldsFromMarkdown ¶
func (markdownDB *MarkdownDB) CopyBasicFieldsFromMarkdown(markdown *models.Markdown)
CopyBasicFieldsFromMarkdown
func (*MarkdownDB) CopyBasicFieldsFromMarkdownWOP ¶
func (markdownDB *MarkdownDB) CopyBasicFieldsFromMarkdownWOP(markdown *MarkdownWOP)
CopyBasicFieldsFromMarkdownWOP
func (*MarkdownDB) CopyBasicFieldsFromMarkdown_WOP ¶
func (markdownDB *MarkdownDB) CopyBasicFieldsFromMarkdown_WOP(markdown *models.Markdown_WOP)
CopyBasicFieldsFromMarkdown_WOP
func (*MarkdownDB) CopyBasicFieldsToMarkdown ¶
func (markdownDB *MarkdownDB) CopyBasicFieldsToMarkdown(markdown *models.Markdown)
CopyBasicFieldsToMarkdown
func (*MarkdownDB) CopyBasicFieldsToMarkdownWOP ¶
func (markdownDB *MarkdownDB) CopyBasicFieldsToMarkdownWOP(markdown *MarkdownWOP)
CopyBasicFieldsToMarkdownWOP
func (*MarkdownDB) CopyBasicFieldsToMarkdown_WOP ¶
func (markdownDB *MarkdownDB) CopyBasicFieldsToMarkdown_WOP(markdown *models.Markdown_WOP)
CopyBasicFieldsToMarkdown_WOP
func (*MarkdownDB) DecodePointers ¶
func (markdownDB *MarkdownDB) DecodePointers(backRepo *BackRepoStruct, markdown *models.Markdown)
type MarkdownDBResponse ¶
type MarkdownDBResponse struct {
MarkdownDB
}
MarkdownDBResponse provides response swagger:response markdownDBResponse
type MarkdownDBs ¶
type MarkdownDBs []MarkdownDB
MarkdownDBs arrays markdownDBs swagger:response markdownDBsResponse
type MarkdownPointersEncoding ¶
type MarkdownPointersEncoding struct { }
MarkdownPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type MarkdownWOP ¶
MarkdownWOP is a Markdown without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type SliderAPI ¶
type SliderAPI struct { gorm.Model models.Slider_WOP // encoding of pointers // for API, it cannot be embedded SliderPointersEncoding SliderPointersEncoding }
SliderAPI 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 sliderAPI
type SliderDB ¶
type SliderDB struct { gorm.Model // Declation for basic field sliderDB.Name Name_Data sql.NullString // Declation for basic field sliderDB.StackName StackName_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration SliderPointersEncoding }
SliderDB describes a slider 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 sliderDB
func (*SliderDB) CopyBasicFieldsFromSlider ¶
CopyBasicFieldsFromSlider
func (*SliderDB) CopyBasicFieldsFromSliderWOP ¶
CopyBasicFieldsFromSliderWOP
func (*SliderDB) CopyBasicFieldsFromSlider_WOP ¶
func (sliderDB *SliderDB) CopyBasicFieldsFromSlider_WOP(slider *models.Slider_WOP)
CopyBasicFieldsFromSlider_WOP
func (*SliderDB) CopyBasicFieldsToSlider ¶
CopyBasicFieldsToSlider
func (*SliderDB) CopyBasicFieldsToSliderWOP ¶
CopyBasicFieldsToSliderWOP
func (*SliderDB) CopyBasicFieldsToSlider_WOP ¶
func (sliderDB *SliderDB) CopyBasicFieldsToSlider_WOP(slider *models.Slider_WOP)
CopyBasicFieldsToSlider_WOP
func (*SliderDB) DecodePointers ¶
func (sliderDB *SliderDB) DecodePointers(backRepo *BackRepoStruct, slider *models.Slider)
type SliderDBResponse ¶
type SliderDBResponse struct {
SliderDB
}
SliderDBResponse provides response swagger:response sliderDBResponse
type SliderDBs ¶
type SliderDBs []SliderDB
SliderDBs arrays sliderDBs swagger:response sliderDBsResponse
type SliderPointersEncoding ¶
type SliderPointersEncoding struct { }
SliderPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type SliderWOP ¶
SliderWOP is a Slider without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type SplitAPI ¶
type SplitAPI struct { gorm.Model models.Split_WOP // encoding of pointers // for API, it cannot be embedded SplitPointersEncoding SplitPointersEncoding }
SplitAPI 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 splitAPI
type SplitDB ¶
type SplitDB struct { gorm.Model // Declation for basic field splitDB.Name Name_Data sql.NullString // Declation for basic field splitDB.StackName StackName_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration SplitPointersEncoding }
SplitDB describes a split 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 splitDB
func (*SplitDB) CopyBasicFieldsFromSplit ¶
CopyBasicFieldsFromSplit
func (*SplitDB) CopyBasicFieldsFromSplitWOP ¶
CopyBasicFieldsFromSplitWOP
func (*SplitDB) CopyBasicFieldsFromSplit_WOP ¶
CopyBasicFieldsFromSplit_WOP
func (*SplitDB) CopyBasicFieldsToSplit ¶
CopyBasicFieldsToSplit
func (*SplitDB) CopyBasicFieldsToSplitWOP ¶
CopyBasicFieldsToSplitWOP
func (*SplitDB) CopyBasicFieldsToSplit_WOP ¶
CopyBasicFieldsToSplit_WOP
func (*SplitDB) DecodePointers ¶
func (splitDB *SplitDB) DecodePointers(backRepo *BackRepoStruct, split *models.Split)
type SplitDBResponse ¶
type SplitDBResponse struct {
SplitDB
}
SplitDBResponse provides response swagger:response splitDBResponse
type SplitPointersEncoding ¶
type SplitPointersEncoding struct { }
SplitPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type SplitWOP ¶
SplitWOP is a Split without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type SvgAPI ¶
type SvgAPI struct { gorm.Model models.Svg_WOP // encoding of pointers // for API, it cannot be embedded SvgPointersEncoding SvgPointersEncoding }
SvgAPI 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 svgAPI
type SvgDB ¶
type SvgDB struct { gorm.Model // Declation for basic field svgDB.Name Name_Data sql.NullString // Declation for basic field svgDB.StackName StackName_Data sql.NullString // Declation for basic field svgDB.Style Style_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration SvgPointersEncoding }
SvgDB describes a svg 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 svgDB
func (*SvgDB) CopyBasicFieldsFromSvg ¶
CopyBasicFieldsFromSvg
func (*SvgDB) CopyBasicFieldsFromSvgWOP ¶
CopyBasicFieldsFromSvgWOP
func (*SvgDB) CopyBasicFieldsFromSvg_WOP ¶
CopyBasicFieldsFromSvg_WOP
func (*SvgDB) CopyBasicFieldsToSvg ¶
CopyBasicFieldsToSvg
func (*SvgDB) CopyBasicFieldsToSvgWOP ¶
CopyBasicFieldsToSvgWOP
func (*SvgDB) CopyBasicFieldsToSvg_WOP ¶
CopyBasicFieldsToSvg_WOP
func (*SvgDB) DecodePointers ¶
func (svgDB *SvgDB) DecodePointers(backRepo *BackRepoStruct, svg *models.Svg)
type SvgDBResponse ¶
type SvgDBResponse struct {
SvgDB
}
SvgDBResponse provides response swagger:response svgDBResponse
type SvgPointersEncoding ¶
type SvgPointersEncoding struct { }
SvgPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type SvgWOP ¶
type SvgWOP struct { ID int `xlsx:"0"` Name string `xlsx:"1"` StackName string `xlsx:"2"` Style string `xlsx:"3"` }
SvgWOP is a Svg without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type TableAPI ¶
type TableAPI struct { gorm.Model models.Table_WOP // encoding of pointers // for API, it cannot be embedded TablePointersEncoding TablePointersEncoding }
TableAPI 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 tableAPI
type TableDB ¶
type TableDB struct { gorm.Model // Declation for basic field tableDB.Name Name_Data sql.NullString // Declation for basic field tableDB.StackName StackName_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration TablePointersEncoding }
TableDB describes a table 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 tableDB
func (*TableDB) CopyBasicFieldsFromTable ¶
CopyBasicFieldsFromTable
func (*TableDB) CopyBasicFieldsFromTableWOP ¶
CopyBasicFieldsFromTableWOP
func (*TableDB) CopyBasicFieldsFromTable_WOP ¶
CopyBasicFieldsFromTable_WOP
func (*TableDB) CopyBasicFieldsToTable ¶
CopyBasicFieldsToTable
func (*TableDB) CopyBasicFieldsToTableWOP ¶
CopyBasicFieldsToTableWOP
func (*TableDB) CopyBasicFieldsToTable_WOP ¶
CopyBasicFieldsToTable_WOP
func (*TableDB) DecodePointers ¶
func (tableDB *TableDB) DecodePointers(backRepo *BackRepoStruct, table *models.Table)
type TableDBResponse ¶
type TableDBResponse struct {
TableDB
}
TableDBResponse provides response swagger:response tableDBResponse
type TablePointersEncoding ¶
type TablePointersEncoding struct { }
TablePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type TableWOP ¶
TableWOP is a Table without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type TitleAPI ¶
type TitleAPI struct { gorm.Model models.Title_WOP // encoding of pointers // for API, it cannot be embedded TitlePointersEncoding TitlePointersEncoding }
TitleAPI 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 titleAPI
type TitleDB ¶
type TitleDB struct { gorm.Model // Declation for basic field titleDB.Name Name_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration TitlePointersEncoding }
TitleDB describes a title 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 titleDB
func (*TitleDB) CopyBasicFieldsFromTitle ¶
CopyBasicFieldsFromTitle
func (*TitleDB) CopyBasicFieldsFromTitleWOP ¶
CopyBasicFieldsFromTitleWOP
func (*TitleDB) CopyBasicFieldsFromTitle_WOP ¶
CopyBasicFieldsFromTitle_WOP
func (*TitleDB) CopyBasicFieldsToTitle ¶
CopyBasicFieldsToTitle
func (*TitleDB) CopyBasicFieldsToTitleWOP ¶
CopyBasicFieldsToTitleWOP
func (*TitleDB) CopyBasicFieldsToTitle_WOP ¶
CopyBasicFieldsToTitle_WOP
func (*TitleDB) DecodePointers ¶
func (titleDB *TitleDB) DecodePointers(backRepo *BackRepoStruct, title *models.Title)
type TitleDBResponse ¶
type TitleDBResponse struct {
TitleDB
}
TitleDBResponse provides response swagger:response titleDBResponse
type TitlePointersEncoding ¶
type TitlePointersEncoding struct { }
TitlePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type TitleWOP ¶
TitleWOP is a Title without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type ToneAPI ¶
type ToneAPI struct { gorm.Model models.Tone_WOP // encoding of pointers // for API, it cannot be embedded TonePointersEncoding TonePointersEncoding }
ToneAPI 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 toneAPI
type ToneDB ¶
type ToneDB struct { gorm.Model // Declation for basic field toneDB.Name Name_Data sql.NullString // Declation for basic field toneDB.StackName StackName_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration TonePointersEncoding }
ToneDB describes a tone 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 toneDB
func (*ToneDB) CopyBasicFieldsFromTone ¶
CopyBasicFieldsFromTone
func (*ToneDB) CopyBasicFieldsFromToneWOP ¶
CopyBasicFieldsFromToneWOP
func (*ToneDB) CopyBasicFieldsFromTone_WOP ¶
CopyBasicFieldsFromTone_WOP
func (*ToneDB) CopyBasicFieldsToTone ¶
CopyBasicFieldsToTone
func (*ToneDB) CopyBasicFieldsToToneWOP ¶
CopyBasicFieldsToToneWOP
func (*ToneDB) CopyBasicFieldsToTone_WOP ¶
CopyBasicFieldsToTone_WOP
func (*ToneDB) DecodePointers ¶
func (toneDB *ToneDB) DecodePointers(backRepo *BackRepoStruct, tone *models.Tone)
type ToneDBResponse ¶
type ToneDBResponse struct {
ToneDB
}
ToneDBResponse provides response swagger:response toneDBResponse
type TonePointersEncoding ¶
type TonePointersEncoding struct { }
TonePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type ToneWOP ¶
ToneWOP is a Tone without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type TreeAPI ¶
type TreeAPI struct { gorm.Model models.Tree_WOP // encoding of pointers // for API, it cannot be embedded TreePointersEncoding TreePointersEncoding }
TreeAPI 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 treeAPI
type TreeDB ¶
type TreeDB struct { gorm.Model // Declation for basic field treeDB.Name Name_Data sql.NullString // Declation for basic field treeDB.StackName StackName_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration TreePointersEncoding }
TreeDB describes a tree 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 treeDB
func (*TreeDB) CopyBasicFieldsFromTree ¶
CopyBasicFieldsFromTree
func (*TreeDB) CopyBasicFieldsFromTreeWOP ¶
CopyBasicFieldsFromTreeWOP
func (*TreeDB) CopyBasicFieldsFromTree_WOP ¶
CopyBasicFieldsFromTree_WOP
func (*TreeDB) CopyBasicFieldsToTree ¶
CopyBasicFieldsToTree
func (*TreeDB) CopyBasicFieldsToTreeWOP ¶
CopyBasicFieldsToTreeWOP
func (*TreeDB) CopyBasicFieldsToTree_WOP ¶
CopyBasicFieldsToTree_WOP
func (*TreeDB) DecodePointers ¶
func (treeDB *TreeDB) DecodePointers(backRepo *BackRepoStruct, tree *models.Tree)
type TreeDBResponse ¶
type TreeDBResponse struct {
TreeDB
}
TreeDBResponse provides response swagger:response treeDBResponse
type TreePointersEncoding ¶
type TreePointersEncoding struct { }
TreePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type TreeWOP ¶
TreeWOP is a Tree without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type ViewAPI ¶
type ViewAPI struct { gorm.Model models.View_WOP // encoding of pointers // for API, it cannot be embedded ViewPointersEncoding ViewPointersEncoding }
ViewAPI 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 viewAPI
type ViewDB ¶
type ViewDB struct { gorm.Model // Declation for basic field viewDB.Name Name_Data sql.NullString // Declation for basic field viewDB.ShowViewName // provide the sql storage for the boolan ShowViewName_Data sql.NullBool // Declation for basic field viewDB.IsSelectedView // provide the sql storage for the boolan IsSelectedView_Data sql.NullBool // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration ViewPointersEncoding }
ViewDB describes a view 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 viewDB
func (*ViewDB) CopyBasicFieldsFromView ¶
CopyBasicFieldsFromView
func (*ViewDB) CopyBasicFieldsFromViewWOP ¶
CopyBasicFieldsFromViewWOP
func (*ViewDB) CopyBasicFieldsFromView_WOP ¶
CopyBasicFieldsFromView_WOP
func (*ViewDB) CopyBasicFieldsToView ¶
CopyBasicFieldsToView
func (*ViewDB) CopyBasicFieldsToViewWOP ¶
CopyBasicFieldsToViewWOP
func (*ViewDB) CopyBasicFieldsToView_WOP ¶
CopyBasicFieldsToView_WOP
func (*ViewDB) DecodePointers ¶
func (viewDB *ViewDB) DecodePointers(backRepo *BackRepoStruct, view *models.View)
type ViewDBResponse ¶
type ViewDBResponse struct {
ViewDB
}
ViewDBResponse provides response swagger:response viewDBResponse
type ViewPointersEncoding ¶
type ViewPointersEncoding struct { // field RootAsSplitAreas is a slice of pointers to another Struct (optional or 0..1) RootAsSplitAreas IntSlice `gorm:"type:TEXT"` }
ViewPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type ViewWOP ¶
type ViewWOP struct { ID int `xlsx:"0"` Name string `xlsx:"1"` ShowViewName bool `xlsx:"2"` IsSelectedView bool `xlsx:"3"` }
ViewWOP is a View without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type XlsxAPI ¶
type XlsxAPI struct { gorm.Model models.Xlsx_WOP // encoding of pointers // for API, it cannot be embedded XlsxPointersEncoding XlsxPointersEncoding }
XlsxAPI 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 xlsxAPI
type XlsxDB ¶
type XlsxDB struct { gorm.Model // Declation for basic field xlsxDB.Name Name_Data sql.NullString // Declation for basic field xlsxDB.StackName StackName_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration XlsxPointersEncoding }
XlsxDB describes a xlsx 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 xlsxDB
func (*XlsxDB) CopyBasicFieldsFromXlsx ¶
CopyBasicFieldsFromXlsx
func (*XlsxDB) CopyBasicFieldsFromXlsxWOP ¶
CopyBasicFieldsFromXlsxWOP
func (*XlsxDB) CopyBasicFieldsFromXlsx_WOP ¶
CopyBasicFieldsFromXlsx_WOP
func (*XlsxDB) CopyBasicFieldsToXlsx ¶
CopyBasicFieldsToXlsx
func (*XlsxDB) CopyBasicFieldsToXlsxWOP ¶
CopyBasicFieldsToXlsxWOP
func (*XlsxDB) CopyBasicFieldsToXlsx_WOP ¶
CopyBasicFieldsToXlsx_WOP
func (*XlsxDB) DecodePointers ¶
func (xlsxDB *XlsxDB) DecodePointers(backRepo *BackRepoStruct, xlsx *models.Xlsx)
type XlsxDBResponse ¶
type XlsxDBResponse struct {
XlsxDB
}
XlsxDBResponse provides response swagger:response xlsxDBResponse
type XlsxPointersEncoding ¶
type XlsxPointersEncoding struct { }
XlsxPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct