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
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 ArrowAPI
- type ArrowDB
- func (arrowDB *ArrowDB) CopyBasicFieldsFromArrow(arrow *models.Arrow)
- func (arrowDB *ArrowDB) CopyBasicFieldsFromArrowWOP(arrow *ArrowWOP)
- func (arrowDB *ArrowDB) CopyBasicFieldsFromArrow_WOP(arrow *models.Arrow_WOP)
- func (arrowDB *ArrowDB) CopyBasicFieldsToArrow(arrow *models.Arrow)
- func (arrowDB *ArrowDB) CopyBasicFieldsToArrowWOP(arrow *ArrowWOP)
- func (arrowDB *ArrowDB) CopyBasicFieldsToArrow_WOP(arrow *models.Arrow_WOP)
- func (arrowDB *ArrowDB) DecodePointers(backRepo *BackRepoStruct, arrow *models.Arrow)
- type ArrowDBResponse
- type ArrowDBs
- type ArrowPointersEncoding
- type ArrowWOP
- type BackRepoArrowStruct
- func (backRepoArrow *BackRepoArrowStruct) Backup(dirPath string)
- func (backRepoArrow *BackRepoArrowStruct) BackupXL(file *xlsx.File)
- func (backRepoArrow *BackRepoArrowStruct) CheckoutPhaseOne() (Error error)
- func (backRepoArrow *BackRepoArrowStruct) CheckoutPhaseOneInstance(arrowDB *ArrowDB) (Error error)
- func (backRepoArrow *BackRepoArrowStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoArrow *BackRepoArrowStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, arrowDB *ArrowDB) (Error error)
- func (backRepoArrow *BackRepoArrowStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoArrow *BackRepoArrowStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoArrow *BackRepoArrowStruct) CommitPhaseOneInstance(arrow *models.Arrow) (Error error)
- func (backRepoArrow *BackRepoArrowStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoArrow *BackRepoArrowStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, arrow *models.Arrow) (Error error)
- func (backRepoArrow *BackRepoArrowStruct) GetArrowDBFromArrowPtr(arrow *models.Arrow) (arrowDB *ArrowDB)
- func (backRepoArrow *BackRepoArrowStruct) GetDB() db.DBInterface
- func (backRepoArrow *BackRepoArrowStruct) GetStage() (stage *models.Stage)
- func (backRepoArrow *BackRepoArrowStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoArrow *BackRepoArrowStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, arrow *models.Arrow) (Error error)
- func (backRepoArrow *BackRepoArrowStruct) RestorePhaseOne(dirPath string)
- func (backRepoArrow *BackRepoArrowStruct) RestorePhaseTwo()
- func (backRepoArrow *BackRepoArrowStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoBarStruct
- func (backRepoBar *BackRepoBarStruct) Backup(dirPath string)
- func (backRepoBar *BackRepoBarStruct) BackupXL(file *xlsx.File)
- func (backRepoBar *BackRepoBarStruct) CheckoutPhaseOne() (Error error)
- func (backRepoBar *BackRepoBarStruct) CheckoutPhaseOneInstance(barDB *BarDB) (Error error)
- func (backRepoBar *BackRepoBarStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoBar *BackRepoBarStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, barDB *BarDB) (Error error)
- func (backRepoBar *BackRepoBarStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoBar *BackRepoBarStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoBar *BackRepoBarStruct) CommitPhaseOneInstance(bar *models.Bar) (Error error)
- func (backRepoBar *BackRepoBarStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoBar *BackRepoBarStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, bar *models.Bar) (Error error)
- func (backRepoBar *BackRepoBarStruct) GetBarDBFromBarPtr(bar *models.Bar) (barDB *BarDB)
- func (backRepoBar *BackRepoBarStruct) GetDB() db.DBInterface
- func (backRepoBar *BackRepoBarStruct) GetStage() (stage *models.Stage)
- func (backRepoBar *BackRepoBarStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoBar *BackRepoBarStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, bar *models.Bar) (Error error)
- func (backRepoBar *BackRepoBarStruct) RestorePhaseOne(dirPath string)
- func (backRepoBar *BackRepoBarStruct) RestorePhaseTwo()
- func (backRepoBar *BackRepoBarStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoData
- type BackRepoGanttStruct
- func (backRepoGantt *BackRepoGanttStruct) Backup(dirPath string)
- func (backRepoGantt *BackRepoGanttStruct) BackupXL(file *xlsx.File)
- func (backRepoGantt *BackRepoGanttStruct) CheckoutPhaseOne() (Error error)
- func (backRepoGantt *BackRepoGanttStruct) CheckoutPhaseOneInstance(ganttDB *GanttDB) (Error error)
- func (backRepoGantt *BackRepoGanttStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoGantt *BackRepoGanttStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, ganttDB *GanttDB) (Error error)
- func (backRepoGantt *BackRepoGanttStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoGantt *BackRepoGanttStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoGantt *BackRepoGanttStruct) CommitPhaseOneInstance(gantt *models.Gantt) (Error error)
- func (backRepoGantt *BackRepoGanttStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoGantt *BackRepoGanttStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gantt *models.Gantt) (Error error)
- func (backRepoGantt *BackRepoGanttStruct) GetDB() db.DBInterface
- func (backRepoGantt *BackRepoGanttStruct) GetGanttDBFromGanttPtr(gantt *models.Gantt) (ganttDB *GanttDB)
- func (backRepoGantt *BackRepoGanttStruct) GetStage() (stage *models.Stage)
- func (backRepoGantt *BackRepoGanttStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoGantt *BackRepoGanttStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gantt *models.Gantt) (Error error)
- func (backRepoGantt *BackRepoGanttStruct) RestorePhaseOne(dirPath string)
- func (backRepoGantt *BackRepoGanttStruct) RestorePhaseTwo()
- func (backRepoGantt *BackRepoGanttStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoGroupStruct
- func (backRepoGroup *BackRepoGroupStruct) Backup(dirPath string)
- func (backRepoGroup *BackRepoGroupStruct) BackupXL(file *xlsx.File)
- func (backRepoGroup *BackRepoGroupStruct) CheckoutPhaseOne() (Error error)
- func (backRepoGroup *BackRepoGroupStruct) CheckoutPhaseOneInstance(groupDB *GroupDB) (Error error)
- func (backRepoGroup *BackRepoGroupStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoGroup *BackRepoGroupStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, groupDB *GroupDB) (Error error)
- func (backRepoGroup *BackRepoGroupStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoGroup *BackRepoGroupStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoGroup *BackRepoGroupStruct) CommitPhaseOneInstance(group *models.Group) (Error error)
- func (backRepoGroup *BackRepoGroupStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoGroup *BackRepoGroupStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, group *models.Group) (Error error)
- func (backRepoGroup *BackRepoGroupStruct) GetDB() db.DBInterface
- func (backRepoGroup *BackRepoGroupStruct) GetGroupDBFromGroupPtr(group *models.Group) (groupDB *GroupDB)
- func (backRepoGroup *BackRepoGroupStruct) GetStage() (stage *models.Stage)
- func (backRepoGroup *BackRepoGroupStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoGroup *BackRepoGroupStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, group *models.Group) (Error error)
- func (backRepoGroup *BackRepoGroupStruct) RestorePhaseOne(dirPath string)
- func (backRepoGroup *BackRepoGroupStruct) RestorePhaseTwo()
- func (backRepoGroup *BackRepoGroupStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoLaneStruct
- func (backRepoLane *BackRepoLaneStruct) Backup(dirPath string)
- func (backRepoLane *BackRepoLaneStruct) BackupXL(file *xlsx.File)
- func (backRepoLane *BackRepoLaneStruct) CheckoutPhaseOne() (Error error)
- func (backRepoLane *BackRepoLaneStruct) CheckoutPhaseOneInstance(laneDB *LaneDB) (Error error)
- func (backRepoLane *BackRepoLaneStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoLane *BackRepoLaneStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, laneDB *LaneDB) (Error error)
- func (backRepoLane *BackRepoLaneStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoLane *BackRepoLaneStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoLane *BackRepoLaneStruct) CommitPhaseOneInstance(lane *models.Lane) (Error error)
- func (backRepoLane *BackRepoLaneStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoLane *BackRepoLaneStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, lane *models.Lane) (Error error)
- func (backRepoLane *BackRepoLaneStruct) GetDB() db.DBInterface
- func (backRepoLane *BackRepoLaneStruct) GetLaneDBFromLanePtr(lane *models.Lane) (laneDB *LaneDB)
- func (backRepoLane *BackRepoLaneStruct) GetStage() (stage *models.Stage)
- func (backRepoLane *BackRepoLaneStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoLane *BackRepoLaneStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, lane *models.Lane) (Error error)
- func (backRepoLane *BackRepoLaneStruct) RestorePhaseOne(dirPath string)
- func (backRepoLane *BackRepoLaneStruct) RestorePhaseTwo()
- func (backRepoLane *BackRepoLaneStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoLaneUseStruct
- func (backRepoLaneUse *BackRepoLaneUseStruct) Backup(dirPath string)
- func (backRepoLaneUse *BackRepoLaneUseStruct) BackupXL(file *xlsx.File)
- func (backRepoLaneUse *BackRepoLaneUseStruct) CheckoutPhaseOne() (Error error)
- func (backRepoLaneUse *BackRepoLaneUseStruct) CheckoutPhaseOneInstance(laneuseDB *LaneUseDB) (Error error)
- func (backRepoLaneUse *BackRepoLaneUseStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoLaneUse *BackRepoLaneUseStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, laneuseDB *LaneUseDB) (Error error)
- func (backRepoLaneUse *BackRepoLaneUseStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoLaneUse *BackRepoLaneUseStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoLaneUse *BackRepoLaneUseStruct) CommitPhaseOneInstance(laneuse *models.LaneUse) (Error error)
- func (backRepoLaneUse *BackRepoLaneUseStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoLaneUse *BackRepoLaneUseStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, laneuse *models.LaneUse) (Error error)
- func (backRepoLaneUse *BackRepoLaneUseStruct) GetDB() db.DBInterface
- func (backRepoLaneUse *BackRepoLaneUseStruct) GetLaneUseDBFromLaneUsePtr(laneuse *models.LaneUse) (laneuseDB *LaneUseDB)
- func (backRepoLaneUse *BackRepoLaneUseStruct) GetStage() (stage *models.Stage)
- func (backRepoLaneUse *BackRepoLaneUseStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoLaneUse *BackRepoLaneUseStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, laneuse *models.LaneUse) (Error error)
- func (backRepoLaneUse *BackRepoLaneUseStruct) RestorePhaseOne(dirPath string)
- func (backRepoLaneUse *BackRepoLaneUseStruct) RestorePhaseTwo()
- func (backRepoLaneUse *BackRepoLaneUseStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoMilestoneStruct
- func (backRepoMilestone *BackRepoMilestoneStruct) Backup(dirPath string)
- func (backRepoMilestone *BackRepoMilestoneStruct) BackupXL(file *xlsx.File)
- func (backRepoMilestone *BackRepoMilestoneStruct) CheckoutPhaseOne() (Error error)
- func (backRepoMilestone *BackRepoMilestoneStruct) CheckoutPhaseOneInstance(milestoneDB *MilestoneDB) (Error error)
- func (backRepoMilestone *BackRepoMilestoneStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoMilestone *BackRepoMilestoneStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, milestoneDB *MilestoneDB) (Error error)
- func (backRepoMilestone *BackRepoMilestoneStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoMilestone *BackRepoMilestoneStruct) CommitPhaseOne(stage *models.Stage) (Error error)
- func (backRepoMilestone *BackRepoMilestoneStruct) CommitPhaseOneInstance(milestone *models.Milestone) (Error error)
- func (backRepoMilestone *BackRepoMilestoneStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoMilestone *BackRepoMilestoneStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, milestone *models.Milestone) (Error error)
- func (backRepoMilestone *BackRepoMilestoneStruct) GetDB() db.DBInterface
- func (backRepoMilestone *BackRepoMilestoneStruct) GetMilestoneDBFromMilestonePtr(milestone *models.Milestone) (milestoneDB *MilestoneDB)
- func (backRepoMilestone *BackRepoMilestoneStruct) GetStage() (stage *models.Stage)
- func (backRepoMilestone *BackRepoMilestoneStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoMilestone *BackRepoMilestoneStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, milestone *models.Milestone) (Error error)
- func (backRepoMilestone *BackRepoMilestoneStruct) RestorePhaseOne(dirPath string)
- func (backRepoMilestone *BackRepoMilestoneStruct) RestorePhaseTwo()
- func (backRepoMilestone *BackRepoMilestoneStruct) 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) CheckoutArrow(arrow *models.Arrow)
- func (backRepo *BackRepoStruct) CheckoutBar(bar *models.Bar)
- func (backRepo *BackRepoStruct) CheckoutGantt(gantt *models.Gantt)
- func (backRepo *BackRepoStruct) CheckoutGroup(group *models.Group)
- func (backRepo *BackRepoStruct) CheckoutLane(lane *models.Lane)
- func (backRepo *BackRepoStruct) CheckoutLaneUse(laneuse *models.LaneUse)
- func (backRepo *BackRepoStruct) CheckoutMilestone(milestone *models.Milestone)
- func (backRepo *BackRepoStruct) Commit(stage *models.Stage)
- func (backRepo *BackRepoStruct) CommitArrow(arrow *models.Arrow)
- func (backRepo *BackRepoStruct) CommitBar(bar *models.Bar)
- func (backRepo *BackRepoStruct) CommitGantt(gantt *models.Gantt)
- func (backRepo *BackRepoStruct) CommitGroup(group *models.Group)
- func (backRepo *BackRepoStruct) CommitLane(lane *models.Lane)
- func (backRepo *BackRepoStruct) CommitLaneUse(laneuse *models.LaneUse)
- func (backRepo *BackRepoStruct) CommitMilestone(milestone *models.Milestone)
- 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 BarAPI
- type BarDB
- func (barDB *BarDB) CopyBasicFieldsFromBar(bar *models.Bar)
- func (barDB *BarDB) CopyBasicFieldsFromBarWOP(bar *BarWOP)
- func (barDB *BarDB) CopyBasicFieldsFromBar_WOP(bar *models.Bar_WOP)
- func (barDB *BarDB) CopyBasicFieldsToBar(bar *models.Bar)
- func (barDB *BarDB) CopyBasicFieldsToBarWOP(bar *BarWOP)
- func (barDB *BarDB) CopyBasicFieldsToBar_WOP(bar *models.Bar_WOP)
- func (barDB *BarDB) DecodePointers(backRepo *BackRepoStruct, bar *models.Bar)
- type BarDBResponse
- type BarDBs
- type BarPointersEncoding
- type BarWOP
- 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 GanttAPI
- type GanttDB
- func (ganttDB *GanttDB) CopyBasicFieldsFromGantt(gantt *models.Gantt)
- func (ganttDB *GanttDB) CopyBasicFieldsFromGanttWOP(gantt *GanttWOP)
- func (ganttDB *GanttDB) CopyBasicFieldsFromGantt_WOP(gantt *models.Gantt_WOP)
- func (ganttDB *GanttDB) CopyBasicFieldsToGantt(gantt *models.Gantt)
- func (ganttDB *GanttDB) CopyBasicFieldsToGanttWOP(gantt *GanttWOP)
- func (ganttDB *GanttDB) CopyBasicFieldsToGantt_WOP(gantt *models.Gantt_WOP)
- func (ganttDB *GanttDB) DecodePointers(backRepo *BackRepoStruct, gantt *models.Gantt)
- type GanttDBResponse
- type GanttDBs
- type GanttPointersEncoding
- type GanttWOP
- type GongstructDB
- type GroupAPI
- type GroupDB
- func (groupDB *GroupDB) CopyBasicFieldsFromGroup(group *models.Group)
- func (groupDB *GroupDB) CopyBasicFieldsFromGroupWOP(group *GroupWOP)
- func (groupDB *GroupDB) CopyBasicFieldsFromGroup_WOP(group *models.Group_WOP)
- func (groupDB *GroupDB) CopyBasicFieldsToGroup(group *models.Group)
- func (groupDB *GroupDB) CopyBasicFieldsToGroupWOP(group *GroupWOP)
- func (groupDB *GroupDB) CopyBasicFieldsToGroup_WOP(group *models.Group_WOP)
- func (groupDB *GroupDB) DecodePointers(backRepo *BackRepoStruct, group *models.Group)
- type GroupDBResponse
- type GroupDBs
- type GroupPointersEncoding
- type GroupWOP
- type IntSlice
- type LaneAPI
- type LaneDB
- func (laneDB *LaneDB) CopyBasicFieldsFromLane(lane *models.Lane)
- func (laneDB *LaneDB) CopyBasicFieldsFromLaneWOP(lane *LaneWOP)
- func (laneDB *LaneDB) CopyBasicFieldsFromLane_WOP(lane *models.Lane_WOP)
- func (laneDB *LaneDB) CopyBasicFieldsToLane(lane *models.Lane)
- func (laneDB *LaneDB) CopyBasicFieldsToLaneWOP(lane *LaneWOP)
- func (laneDB *LaneDB) CopyBasicFieldsToLane_WOP(lane *models.Lane_WOP)
- func (laneDB *LaneDB) DecodePointers(backRepo *BackRepoStruct, lane *models.Lane)
- type LaneDBResponse
- type LaneDBs
- type LanePointersEncoding
- type LaneUseAPI
- type LaneUseDB
- func (laneuseDB *LaneUseDB) CopyBasicFieldsFromLaneUse(laneuse *models.LaneUse)
- func (laneuseDB *LaneUseDB) CopyBasicFieldsFromLaneUseWOP(laneuse *LaneUseWOP)
- func (laneuseDB *LaneUseDB) CopyBasicFieldsFromLaneUse_WOP(laneuse *models.LaneUse_WOP)
- func (laneuseDB *LaneUseDB) CopyBasicFieldsToLaneUse(laneuse *models.LaneUse)
- func (laneuseDB *LaneUseDB) CopyBasicFieldsToLaneUseWOP(laneuse *LaneUseWOP)
- func (laneuseDB *LaneUseDB) CopyBasicFieldsToLaneUse_WOP(laneuse *models.LaneUse_WOP)
- func (laneuseDB *LaneUseDB) DecodePointers(backRepo *BackRepoStruct, laneuse *models.LaneUse)
- type LaneUseDBResponse
- type LaneUseDBs
- type LaneUsePointersEncoding
- type LaneUseWOP
- type LaneWOP
- type MilestoneAPI
- type MilestoneDB
- func (milestoneDB *MilestoneDB) CopyBasicFieldsFromMilestone(milestone *models.Milestone)
- func (milestoneDB *MilestoneDB) CopyBasicFieldsFromMilestoneWOP(milestone *MilestoneWOP)
- func (milestoneDB *MilestoneDB) CopyBasicFieldsFromMilestone_WOP(milestone *models.Milestone_WOP)
- func (milestoneDB *MilestoneDB) CopyBasicFieldsToMilestone(milestone *models.Milestone)
- func (milestoneDB *MilestoneDB) CopyBasicFieldsToMilestoneWOP(milestone *MilestoneWOP)
- func (milestoneDB *MilestoneDB) CopyBasicFieldsToMilestone_WOP(milestone *models.Milestone_WOP)
- func (milestoneDB *MilestoneDB) DecodePointers(backRepo *BackRepoStruct, milestone *models.Milestone)
- type MilestoneDBResponse
- type MilestoneDBs
- type MilestonePointersEncoding
- type MilestoneWOP
Constants ¶
This section is empty.
Variables ¶
var Arrow_Fields = []string{
"ID",
"Name",
"OptionnalColor",
"OptionnalStroke",
}
var BackRepoArrowid_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 BackRepoBarid_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 BackRepoGanttid_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 BackRepoGroupid_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 BackRepoLaneUseid_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 BackRepoLaneid_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 BackRepoMilestoneid_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 Bar_Fields = []string{
"ID",
"Name",
"Start",
"End",
"ComputedDuration",
"OptionnalColor",
"OptionnalStroke",
"FillOpacity",
"StrokeWidth",
"StrokeDashArray",
}
var Gantt_Fields = []string{
"ID",
"Name",
"ComputedStart",
"ComputedEnd",
"ComputedDuration",
"UseManualStartAndEndDates",
"ManualStart",
"ManualEnd",
"LaneHeight",
"RatioBarToLaneHeight",
"YTopMargin",
"XLeftText",
"TextHeight",
"XLeftLanes",
"XRightMargin",
"ArrowLengthToTheRightOfStartBar",
"ArrowTipLenght",
"TimeLine_Color",
"TimeLine_FillOpacity",
"TimeLine_Stroke",
"TimeLine_StrokeWidth",
"Group_Stroke",
"Group_StrokeWidth",
"Group_StrokeDashArray",
"DateYOffset",
"AlignOnStartEndOnYearStart",
}
var Group_Fields = []string{
"ID",
"Name",
}
var LaneUse_Fields = []string{
"ID",
"Name",
}
var Lane_Fields = []string{
"ID",
"Name",
"Order",
}
var Milestone_Fields = []string{
"ID",
"Name",
"Date",
"DisplayVerticalBar",
}
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 ArrowAPI ¶
type ArrowAPI struct { gorm.Model models.Arrow_WOP // encoding of pointers // for API, it cannot be embedded ArrowPointersEncoding ArrowPointersEncoding }
ArrowAPI 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 arrowAPI
type ArrowDB ¶
type ArrowDB struct { gorm.Model // Declation for basic field arrowDB.Name Name_Data sql.NullString // Declation for basic field arrowDB.OptionnalColor OptionnalColor_Data sql.NullString // Declation for basic field arrowDB.OptionnalStroke OptionnalStroke_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration ArrowPointersEncoding }
ArrowDB describes a arrow 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 arrowDB
func (*ArrowDB) CopyBasicFieldsFromArrow ¶
CopyBasicFieldsFromArrow
func (*ArrowDB) CopyBasicFieldsFromArrowWOP ¶
CopyBasicFieldsFromArrowWOP
func (*ArrowDB) CopyBasicFieldsFromArrow_WOP ¶
CopyBasicFieldsFromArrow_WOP
func (*ArrowDB) CopyBasicFieldsToArrow ¶
CopyBasicFieldsToArrow
func (*ArrowDB) CopyBasicFieldsToArrowWOP ¶
CopyBasicFieldsToArrowWOP
func (*ArrowDB) CopyBasicFieldsToArrow_WOP ¶
CopyBasicFieldsToArrow_WOP
func (*ArrowDB) DecodePointers ¶
func (arrowDB *ArrowDB) DecodePointers(backRepo *BackRepoStruct, arrow *models.Arrow)
type ArrowDBResponse ¶
type ArrowDBResponse struct {
ArrowDB
}
ArrowDBResponse provides response swagger:response arrowDBResponse
type ArrowPointersEncoding ¶
type ArrowPointersEncoding struct { // field From is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association FromID sql.NullInt64 // field To is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association ToID sql.NullInt64 }
ArrowPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type ArrowWOP ¶
type ArrowWOP struct { ID int `xlsx:"0"` Name string `xlsx:"1"` OptionnalColor string `xlsx:"2"` OptionnalStroke string `xlsx:"3"` }
ArrowWOP is a Arrow without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type BackRepoArrowStruct ¶
type BackRepoArrowStruct struct { // stores ArrowDB according to their gorm ID Map_ArrowDBID_ArrowDB map[uint]*ArrowDB // stores ArrowDB ID according to Arrow address Map_ArrowPtr_ArrowDBID map[*models.Arrow]uint // stores Arrow according to their gorm ID Map_ArrowDBID_ArrowPtr map[uint]*models.Arrow // contains filtered or unexported fields }
func (*BackRepoArrowStruct) Backup ¶
func (backRepoArrow *BackRepoArrowStruct) Backup(dirPath string)
Backup generates a json file from a slice of all ArrowDB instances in the backrepo
func (*BackRepoArrowStruct) BackupXL ¶
func (backRepoArrow *BackRepoArrowStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all ArrowDB instances in the backrepo
func (*BackRepoArrowStruct) CheckoutPhaseOne ¶
func (backRepoArrow *BackRepoArrowStruct) CheckoutPhaseOne() (Error error)
BackRepoArrow.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 (*BackRepoArrowStruct) CheckoutPhaseOneInstance ¶
func (backRepoArrow *BackRepoArrowStruct) CheckoutPhaseOneInstance(arrowDB *ArrowDB) (Error error)
CheckoutPhaseOneInstance takes a arrowDB that has been found in the DB, updates the backRepo and stages the models version of the arrowDB
func (*BackRepoArrowStruct) CheckoutPhaseTwo ¶
func (backRepoArrow *BackRepoArrowStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoArrow.CheckoutPhaseTwo Checkouts all staged instances of Arrow to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoArrowStruct) CheckoutPhaseTwoInstance ¶
func (backRepoArrow *BackRepoArrowStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, arrowDB *ArrowDB) (Error error)
BackRepoArrow.CheckoutPhaseTwoInstance Checkouts staged instances of Arrow to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoArrowStruct) CommitDeleteInstance ¶
func (backRepoArrow *BackRepoArrowStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoArrow.CommitDeleteInstance commits deletion of Arrow to the BackRepo
func (*BackRepoArrowStruct) CommitPhaseOne ¶
func (backRepoArrow *BackRepoArrowStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoArrow.CommitPhaseOne commits all staged instances of Arrow 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 (*BackRepoArrowStruct) CommitPhaseOneInstance ¶
func (backRepoArrow *BackRepoArrowStruct) CommitPhaseOneInstance(arrow *models.Arrow) (Error error)
BackRepoArrow.CommitPhaseOneInstance commits arrow staged instances of Arrow 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 (*BackRepoArrowStruct) CommitPhaseTwo ¶
func (backRepoArrow *BackRepoArrowStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoArrow.CommitPhaseTwo commits all staged instances of Arrow to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoArrowStruct) CommitPhaseTwoInstance ¶
func (backRepoArrow *BackRepoArrowStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, arrow *models.Arrow) (Error error)
BackRepoArrow.CommitPhaseTwoInstance commits {{structname }} of models.Arrow to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoArrowStruct) GetArrowDBFromArrowPtr ¶
func (backRepoArrow *BackRepoArrowStruct) GetArrowDBFromArrowPtr(arrow *models.Arrow) (arrowDB *ArrowDB)
GetArrowDBFromArrowPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoArrowStruct) GetDB ¶
func (backRepoArrow *BackRepoArrowStruct) GetDB() db.DBInterface
func (*BackRepoArrowStruct) GetStage ¶
func (backRepoArrow *BackRepoArrowStruct) GetStage() (stage *models.Stage)
func (*BackRepoArrowStruct) ResetReversePointers ¶
func (backRepoArrow *BackRepoArrowStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoArrow.ResetReversePointers commits all staged instances of Arrow to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoArrowStruct) ResetReversePointersInstance ¶
func (backRepoArrow *BackRepoArrowStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, arrow *models.Arrow) (Error error)
func (*BackRepoArrowStruct) RestorePhaseOne ¶
func (backRepoArrow *BackRepoArrowStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "ArrowDB.json" in dirPath that stores an array of ArrowDB and stores it in the database the map BackRepoArrowid_atBckpTime_newID is updated accordingly
func (*BackRepoArrowStruct) RestorePhaseTwo ¶
func (backRepoArrow *BackRepoArrowStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Arrow>id_atBckpTime_newID to compute new index
func (*BackRepoArrowStruct) RestoreXLPhaseOne ¶
func (backRepoArrow *BackRepoArrowStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Arrow" sheet all ArrowDB instances
type BackRepoBarStruct ¶
type BackRepoBarStruct struct { // stores BarDB according to their gorm ID Map_BarDBID_BarDB map[uint]*BarDB // stores BarDB ID according to Bar address Map_BarPtr_BarDBID map[*models.Bar]uint // stores Bar according to their gorm ID Map_BarDBID_BarPtr map[uint]*models.Bar // contains filtered or unexported fields }
func (*BackRepoBarStruct) Backup ¶
func (backRepoBar *BackRepoBarStruct) Backup(dirPath string)
Backup generates a json file from a slice of all BarDB instances in the backrepo
func (*BackRepoBarStruct) BackupXL ¶
func (backRepoBar *BackRepoBarStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all BarDB instances in the backrepo
func (*BackRepoBarStruct) CheckoutPhaseOne ¶
func (backRepoBar *BackRepoBarStruct) CheckoutPhaseOne() (Error error)
BackRepoBar.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 (*BackRepoBarStruct) CheckoutPhaseOneInstance ¶
func (backRepoBar *BackRepoBarStruct) CheckoutPhaseOneInstance(barDB *BarDB) (Error error)
CheckoutPhaseOneInstance takes a barDB that has been found in the DB, updates the backRepo and stages the models version of the barDB
func (*BackRepoBarStruct) CheckoutPhaseTwo ¶
func (backRepoBar *BackRepoBarStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoBar.CheckoutPhaseTwo Checkouts all staged instances of Bar to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoBarStruct) CheckoutPhaseTwoInstance ¶
func (backRepoBar *BackRepoBarStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, barDB *BarDB) (Error error)
BackRepoBar.CheckoutPhaseTwoInstance Checkouts staged instances of Bar to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoBarStruct) CommitDeleteInstance ¶
func (backRepoBar *BackRepoBarStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoBar.CommitDeleteInstance commits deletion of Bar to the BackRepo
func (*BackRepoBarStruct) CommitPhaseOne ¶
func (backRepoBar *BackRepoBarStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoBar.CommitPhaseOne commits all staged instances of Bar 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 (*BackRepoBarStruct) CommitPhaseOneInstance ¶
func (backRepoBar *BackRepoBarStruct) CommitPhaseOneInstance(bar *models.Bar) (Error error)
BackRepoBar.CommitPhaseOneInstance commits bar staged instances of Bar 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 (*BackRepoBarStruct) CommitPhaseTwo ¶
func (backRepoBar *BackRepoBarStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoBar.CommitPhaseTwo commits all staged instances of Bar to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoBarStruct) CommitPhaseTwoInstance ¶
func (backRepoBar *BackRepoBarStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, bar *models.Bar) (Error error)
BackRepoBar.CommitPhaseTwoInstance commits {{structname }} of models.Bar to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoBarStruct) GetBarDBFromBarPtr ¶
func (backRepoBar *BackRepoBarStruct) GetBarDBFromBarPtr(bar *models.Bar) (barDB *BarDB)
GetBarDBFromBarPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoBarStruct) GetDB ¶
func (backRepoBar *BackRepoBarStruct) GetDB() db.DBInterface
func (*BackRepoBarStruct) GetStage ¶
func (backRepoBar *BackRepoBarStruct) GetStage() (stage *models.Stage)
func (*BackRepoBarStruct) ResetReversePointers ¶
func (backRepoBar *BackRepoBarStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoBar.ResetReversePointers commits all staged instances of Bar to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoBarStruct) ResetReversePointersInstance ¶
func (backRepoBar *BackRepoBarStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, bar *models.Bar) (Error error)
func (*BackRepoBarStruct) RestorePhaseOne ¶
func (backRepoBar *BackRepoBarStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "BarDB.json" in dirPath that stores an array of BarDB and stores it in the database the map BackRepoBarid_atBckpTime_newID is updated accordingly
func (*BackRepoBarStruct) RestorePhaseTwo ¶
func (backRepoBar *BackRepoBarStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Bar>id_atBckpTime_newID to compute new index
func (*BackRepoBarStruct) RestoreXLPhaseOne ¶
func (backRepoBar *BackRepoBarStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Bar" sheet all BarDB instances
type BackRepoData ¶
type BackRepoData struct { ArrowAPIs []*ArrowAPI BarAPIs []*BarAPI GanttAPIs []*GanttAPI GroupAPIs []*GroupAPI LaneAPIs []*LaneAPI LaneUseAPIs []*LaneUseAPI MilestoneAPIs []*MilestoneAPI // index of the web socket for this stack type (unique among all stack instances) GONG__Index int }
type BackRepoGanttStruct ¶
type BackRepoGanttStruct struct { // stores GanttDB according to their gorm ID Map_GanttDBID_GanttDB map[uint]*GanttDB // stores GanttDB ID according to Gantt address Map_GanttPtr_GanttDBID map[*models.Gantt]uint // stores Gantt according to their gorm ID Map_GanttDBID_GanttPtr map[uint]*models.Gantt // contains filtered or unexported fields }
func (*BackRepoGanttStruct) Backup ¶
func (backRepoGantt *BackRepoGanttStruct) Backup(dirPath string)
Backup generates a json file from a slice of all GanttDB instances in the backrepo
func (*BackRepoGanttStruct) BackupXL ¶
func (backRepoGantt *BackRepoGanttStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all GanttDB instances in the backrepo
func (*BackRepoGanttStruct) CheckoutPhaseOne ¶
func (backRepoGantt *BackRepoGanttStruct) CheckoutPhaseOne() (Error error)
BackRepoGantt.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 (*BackRepoGanttStruct) CheckoutPhaseOneInstance ¶
func (backRepoGantt *BackRepoGanttStruct) CheckoutPhaseOneInstance(ganttDB *GanttDB) (Error error)
CheckoutPhaseOneInstance takes a ganttDB that has been found in the DB, updates the backRepo and stages the models version of the ganttDB
func (*BackRepoGanttStruct) CheckoutPhaseTwo ¶
func (backRepoGantt *BackRepoGanttStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoGantt.CheckoutPhaseTwo Checkouts all staged instances of Gantt to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGanttStruct) CheckoutPhaseTwoInstance ¶
func (backRepoGantt *BackRepoGanttStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, ganttDB *GanttDB) (Error error)
BackRepoGantt.CheckoutPhaseTwoInstance Checkouts staged instances of Gantt to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGanttStruct) CommitDeleteInstance ¶
func (backRepoGantt *BackRepoGanttStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoGantt.CommitDeleteInstance commits deletion of Gantt to the BackRepo
func (*BackRepoGanttStruct) CommitPhaseOne ¶
func (backRepoGantt *BackRepoGanttStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoGantt.CommitPhaseOne commits all staged instances of Gantt 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 (*BackRepoGanttStruct) CommitPhaseOneInstance ¶
func (backRepoGantt *BackRepoGanttStruct) CommitPhaseOneInstance(gantt *models.Gantt) (Error error)
BackRepoGantt.CommitPhaseOneInstance commits gantt staged instances of Gantt 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 (*BackRepoGanttStruct) CommitPhaseTwo ¶
func (backRepoGantt *BackRepoGanttStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoGantt.CommitPhaseTwo commits all staged instances of Gantt to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGanttStruct) CommitPhaseTwoInstance ¶
func (backRepoGantt *BackRepoGanttStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gantt *models.Gantt) (Error error)
BackRepoGantt.CommitPhaseTwoInstance commits {{structname }} of models.Gantt to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGanttStruct) GetDB ¶
func (backRepoGantt *BackRepoGanttStruct) GetDB() db.DBInterface
func (*BackRepoGanttStruct) GetGanttDBFromGanttPtr ¶
func (backRepoGantt *BackRepoGanttStruct) GetGanttDBFromGanttPtr(gantt *models.Gantt) (ganttDB *GanttDB)
GetGanttDBFromGanttPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoGanttStruct) GetStage ¶
func (backRepoGantt *BackRepoGanttStruct) GetStage() (stage *models.Stage)
func (*BackRepoGanttStruct) ResetReversePointers ¶
func (backRepoGantt *BackRepoGanttStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoGantt.ResetReversePointers commits all staged instances of Gantt to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGanttStruct) ResetReversePointersInstance ¶
func (backRepoGantt *BackRepoGanttStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gantt *models.Gantt) (Error error)
func (*BackRepoGanttStruct) RestorePhaseOne ¶
func (backRepoGantt *BackRepoGanttStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "GanttDB.json" in dirPath that stores an array of GanttDB and stores it in the database the map BackRepoGanttid_atBckpTime_newID is updated accordingly
func (*BackRepoGanttStruct) RestorePhaseTwo ¶
func (backRepoGantt *BackRepoGanttStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Gantt>id_atBckpTime_newID to compute new index
func (*BackRepoGanttStruct) RestoreXLPhaseOne ¶
func (backRepoGantt *BackRepoGanttStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Gantt" sheet all GanttDB instances
type BackRepoGroupStruct ¶
type BackRepoGroupStruct struct { // stores GroupDB according to their gorm ID Map_GroupDBID_GroupDB map[uint]*GroupDB // stores GroupDB ID according to Group address Map_GroupPtr_GroupDBID map[*models.Group]uint // stores Group according to their gorm ID Map_GroupDBID_GroupPtr map[uint]*models.Group // contains filtered or unexported fields }
func (*BackRepoGroupStruct) Backup ¶
func (backRepoGroup *BackRepoGroupStruct) Backup(dirPath string)
Backup generates a json file from a slice of all GroupDB instances in the backrepo
func (*BackRepoGroupStruct) BackupXL ¶
func (backRepoGroup *BackRepoGroupStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all GroupDB instances in the backrepo
func (*BackRepoGroupStruct) CheckoutPhaseOne ¶
func (backRepoGroup *BackRepoGroupStruct) CheckoutPhaseOne() (Error error)
BackRepoGroup.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 (*BackRepoGroupStruct) CheckoutPhaseOneInstance ¶
func (backRepoGroup *BackRepoGroupStruct) CheckoutPhaseOneInstance(groupDB *GroupDB) (Error error)
CheckoutPhaseOneInstance takes a groupDB that has been found in the DB, updates the backRepo and stages the models version of the groupDB
func (*BackRepoGroupStruct) CheckoutPhaseTwo ¶
func (backRepoGroup *BackRepoGroupStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoGroup.CheckoutPhaseTwo Checkouts all staged instances of Group to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGroupStruct) CheckoutPhaseTwoInstance ¶
func (backRepoGroup *BackRepoGroupStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, groupDB *GroupDB) (Error error)
BackRepoGroup.CheckoutPhaseTwoInstance Checkouts staged instances of Group to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGroupStruct) CommitDeleteInstance ¶
func (backRepoGroup *BackRepoGroupStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoGroup.CommitDeleteInstance commits deletion of Group to the BackRepo
func (*BackRepoGroupStruct) CommitPhaseOne ¶
func (backRepoGroup *BackRepoGroupStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoGroup.CommitPhaseOne commits all staged instances of Group 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 (*BackRepoGroupStruct) CommitPhaseOneInstance ¶
func (backRepoGroup *BackRepoGroupStruct) CommitPhaseOneInstance(group *models.Group) (Error error)
BackRepoGroup.CommitPhaseOneInstance commits group staged instances of Group 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 (*BackRepoGroupStruct) CommitPhaseTwo ¶
func (backRepoGroup *BackRepoGroupStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoGroup.CommitPhaseTwo commits all staged instances of Group to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGroupStruct) CommitPhaseTwoInstance ¶
func (backRepoGroup *BackRepoGroupStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, group *models.Group) (Error error)
BackRepoGroup.CommitPhaseTwoInstance commits {{structname }} of models.Group to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGroupStruct) GetDB ¶
func (backRepoGroup *BackRepoGroupStruct) GetDB() db.DBInterface
func (*BackRepoGroupStruct) GetGroupDBFromGroupPtr ¶
func (backRepoGroup *BackRepoGroupStruct) GetGroupDBFromGroupPtr(group *models.Group) (groupDB *GroupDB)
GetGroupDBFromGroupPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoGroupStruct) GetStage ¶
func (backRepoGroup *BackRepoGroupStruct) GetStage() (stage *models.Stage)
func (*BackRepoGroupStruct) ResetReversePointers ¶
func (backRepoGroup *BackRepoGroupStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoGroup.ResetReversePointers commits all staged instances of Group to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGroupStruct) ResetReversePointersInstance ¶
func (backRepoGroup *BackRepoGroupStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, group *models.Group) (Error error)
func (*BackRepoGroupStruct) RestorePhaseOne ¶
func (backRepoGroup *BackRepoGroupStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "GroupDB.json" in dirPath that stores an array of GroupDB and stores it in the database the map BackRepoGroupid_atBckpTime_newID is updated accordingly
func (*BackRepoGroupStruct) RestorePhaseTwo ¶
func (backRepoGroup *BackRepoGroupStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Group>id_atBckpTime_newID to compute new index
func (*BackRepoGroupStruct) RestoreXLPhaseOne ¶
func (backRepoGroup *BackRepoGroupStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Group" sheet all GroupDB instances
type BackRepoLaneStruct ¶
type BackRepoLaneStruct struct { // stores LaneDB according to their gorm ID Map_LaneDBID_LaneDB map[uint]*LaneDB // stores LaneDB ID according to Lane address Map_LanePtr_LaneDBID map[*models.Lane]uint // stores Lane according to their gorm ID Map_LaneDBID_LanePtr map[uint]*models.Lane // contains filtered or unexported fields }
func (*BackRepoLaneStruct) Backup ¶
func (backRepoLane *BackRepoLaneStruct) Backup(dirPath string)
Backup generates a json file from a slice of all LaneDB instances in the backrepo
func (*BackRepoLaneStruct) BackupXL ¶
func (backRepoLane *BackRepoLaneStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all LaneDB instances in the backrepo
func (*BackRepoLaneStruct) CheckoutPhaseOne ¶
func (backRepoLane *BackRepoLaneStruct) CheckoutPhaseOne() (Error error)
BackRepoLane.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 (*BackRepoLaneStruct) CheckoutPhaseOneInstance ¶
func (backRepoLane *BackRepoLaneStruct) CheckoutPhaseOneInstance(laneDB *LaneDB) (Error error)
CheckoutPhaseOneInstance takes a laneDB that has been found in the DB, updates the backRepo and stages the models version of the laneDB
func (*BackRepoLaneStruct) CheckoutPhaseTwo ¶
func (backRepoLane *BackRepoLaneStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoLane.CheckoutPhaseTwo Checkouts all staged instances of Lane to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLaneStruct) CheckoutPhaseTwoInstance ¶
func (backRepoLane *BackRepoLaneStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, laneDB *LaneDB) (Error error)
BackRepoLane.CheckoutPhaseTwoInstance Checkouts staged instances of Lane to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLaneStruct) CommitDeleteInstance ¶
func (backRepoLane *BackRepoLaneStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoLane.CommitDeleteInstance commits deletion of Lane to the BackRepo
func (*BackRepoLaneStruct) CommitPhaseOne ¶
func (backRepoLane *BackRepoLaneStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoLane.CommitPhaseOne commits all staged instances of Lane 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 (*BackRepoLaneStruct) CommitPhaseOneInstance ¶
func (backRepoLane *BackRepoLaneStruct) CommitPhaseOneInstance(lane *models.Lane) (Error error)
BackRepoLane.CommitPhaseOneInstance commits lane staged instances of Lane 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 (*BackRepoLaneStruct) CommitPhaseTwo ¶
func (backRepoLane *BackRepoLaneStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoLane.CommitPhaseTwo commits all staged instances of Lane to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLaneStruct) CommitPhaseTwoInstance ¶
func (backRepoLane *BackRepoLaneStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, lane *models.Lane) (Error error)
BackRepoLane.CommitPhaseTwoInstance commits {{structname }} of models.Lane to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLaneStruct) GetDB ¶
func (backRepoLane *BackRepoLaneStruct) GetDB() db.DBInterface
func (*BackRepoLaneStruct) GetLaneDBFromLanePtr ¶
func (backRepoLane *BackRepoLaneStruct) GetLaneDBFromLanePtr(lane *models.Lane) (laneDB *LaneDB)
GetLaneDBFromLanePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoLaneStruct) GetStage ¶
func (backRepoLane *BackRepoLaneStruct) GetStage() (stage *models.Stage)
func (*BackRepoLaneStruct) ResetReversePointers ¶
func (backRepoLane *BackRepoLaneStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoLane.ResetReversePointers commits all staged instances of Lane to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLaneStruct) ResetReversePointersInstance ¶
func (backRepoLane *BackRepoLaneStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, lane *models.Lane) (Error error)
func (*BackRepoLaneStruct) RestorePhaseOne ¶
func (backRepoLane *BackRepoLaneStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "LaneDB.json" in dirPath that stores an array of LaneDB and stores it in the database the map BackRepoLaneid_atBckpTime_newID is updated accordingly
func (*BackRepoLaneStruct) RestorePhaseTwo ¶
func (backRepoLane *BackRepoLaneStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Lane>id_atBckpTime_newID to compute new index
func (*BackRepoLaneStruct) RestoreXLPhaseOne ¶
func (backRepoLane *BackRepoLaneStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Lane" sheet all LaneDB instances
type BackRepoLaneUseStruct ¶
type BackRepoLaneUseStruct struct { // stores LaneUseDB according to their gorm ID Map_LaneUseDBID_LaneUseDB map[uint]*LaneUseDB // stores LaneUseDB ID according to LaneUse address Map_LaneUsePtr_LaneUseDBID map[*models.LaneUse]uint // stores LaneUse according to their gorm ID Map_LaneUseDBID_LaneUsePtr map[uint]*models.LaneUse // contains filtered or unexported fields }
func (*BackRepoLaneUseStruct) Backup ¶
func (backRepoLaneUse *BackRepoLaneUseStruct) Backup(dirPath string)
Backup generates a json file from a slice of all LaneUseDB instances in the backrepo
func (*BackRepoLaneUseStruct) BackupXL ¶
func (backRepoLaneUse *BackRepoLaneUseStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all LaneUseDB instances in the backrepo
func (*BackRepoLaneUseStruct) CheckoutPhaseOne ¶
func (backRepoLaneUse *BackRepoLaneUseStruct) CheckoutPhaseOne() (Error error)
BackRepoLaneUse.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 (*BackRepoLaneUseStruct) CheckoutPhaseOneInstance ¶
func (backRepoLaneUse *BackRepoLaneUseStruct) CheckoutPhaseOneInstance(laneuseDB *LaneUseDB) (Error error)
CheckoutPhaseOneInstance takes a laneuseDB that has been found in the DB, updates the backRepo and stages the models version of the laneuseDB
func (*BackRepoLaneUseStruct) CheckoutPhaseTwo ¶
func (backRepoLaneUse *BackRepoLaneUseStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoLaneUse.CheckoutPhaseTwo Checkouts all staged instances of LaneUse to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLaneUseStruct) CheckoutPhaseTwoInstance ¶
func (backRepoLaneUse *BackRepoLaneUseStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, laneuseDB *LaneUseDB) (Error error)
BackRepoLaneUse.CheckoutPhaseTwoInstance Checkouts staged instances of LaneUse to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLaneUseStruct) CommitDeleteInstance ¶
func (backRepoLaneUse *BackRepoLaneUseStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoLaneUse.CommitDeleteInstance commits deletion of LaneUse to the BackRepo
func (*BackRepoLaneUseStruct) CommitPhaseOne ¶
func (backRepoLaneUse *BackRepoLaneUseStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoLaneUse.CommitPhaseOne commits all staged instances of LaneUse 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 (*BackRepoLaneUseStruct) CommitPhaseOneInstance ¶
func (backRepoLaneUse *BackRepoLaneUseStruct) CommitPhaseOneInstance(laneuse *models.LaneUse) (Error error)
BackRepoLaneUse.CommitPhaseOneInstance commits laneuse staged instances of LaneUse 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 (*BackRepoLaneUseStruct) CommitPhaseTwo ¶
func (backRepoLaneUse *BackRepoLaneUseStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoLaneUse.CommitPhaseTwo commits all staged instances of LaneUse to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLaneUseStruct) CommitPhaseTwoInstance ¶
func (backRepoLaneUse *BackRepoLaneUseStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, laneuse *models.LaneUse) (Error error)
BackRepoLaneUse.CommitPhaseTwoInstance commits {{structname }} of models.LaneUse to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLaneUseStruct) GetDB ¶
func (backRepoLaneUse *BackRepoLaneUseStruct) GetDB() db.DBInterface
func (*BackRepoLaneUseStruct) GetLaneUseDBFromLaneUsePtr ¶
func (backRepoLaneUse *BackRepoLaneUseStruct) GetLaneUseDBFromLaneUsePtr(laneuse *models.LaneUse) (laneuseDB *LaneUseDB)
GetLaneUseDBFromLaneUsePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoLaneUseStruct) GetStage ¶
func (backRepoLaneUse *BackRepoLaneUseStruct) GetStage() (stage *models.Stage)
func (*BackRepoLaneUseStruct) ResetReversePointers ¶
func (backRepoLaneUse *BackRepoLaneUseStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoLaneUse.ResetReversePointers commits all staged instances of LaneUse to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLaneUseStruct) ResetReversePointersInstance ¶
func (backRepoLaneUse *BackRepoLaneUseStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, laneuse *models.LaneUse) (Error error)
func (*BackRepoLaneUseStruct) RestorePhaseOne ¶
func (backRepoLaneUse *BackRepoLaneUseStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "LaneUseDB.json" in dirPath that stores an array of LaneUseDB and stores it in the database the map BackRepoLaneUseid_atBckpTime_newID is updated accordingly
func (*BackRepoLaneUseStruct) RestorePhaseTwo ¶
func (backRepoLaneUse *BackRepoLaneUseStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<LaneUse>id_atBckpTime_newID to compute new index
func (*BackRepoLaneUseStruct) RestoreXLPhaseOne ¶
func (backRepoLaneUse *BackRepoLaneUseStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "LaneUse" sheet all LaneUseDB instances
type BackRepoMilestoneStruct ¶
type BackRepoMilestoneStruct struct { // stores MilestoneDB according to their gorm ID Map_MilestoneDBID_MilestoneDB map[uint]*MilestoneDB // stores MilestoneDB ID according to Milestone address Map_MilestonePtr_MilestoneDBID map[*models.Milestone]uint // stores Milestone according to their gorm ID Map_MilestoneDBID_MilestonePtr map[uint]*models.Milestone // contains filtered or unexported fields }
func (*BackRepoMilestoneStruct) Backup ¶
func (backRepoMilestone *BackRepoMilestoneStruct) Backup(dirPath string)
Backup generates a json file from a slice of all MilestoneDB instances in the backrepo
func (*BackRepoMilestoneStruct) BackupXL ¶
func (backRepoMilestone *BackRepoMilestoneStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all MilestoneDB instances in the backrepo
func (*BackRepoMilestoneStruct) CheckoutPhaseOne ¶
func (backRepoMilestone *BackRepoMilestoneStruct) CheckoutPhaseOne() (Error error)
BackRepoMilestone.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 (*BackRepoMilestoneStruct) CheckoutPhaseOneInstance ¶
func (backRepoMilestone *BackRepoMilestoneStruct) CheckoutPhaseOneInstance(milestoneDB *MilestoneDB) (Error error)
CheckoutPhaseOneInstance takes a milestoneDB that has been found in the DB, updates the backRepo and stages the models version of the milestoneDB
func (*BackRepoMilestoneStruct) CheckoutPhaseTwo ¶
func (backRepoMilestone *BackRepoMilestoneStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoMilestone.CheckoutPhaseTwo Checkouts all staged instances of Milestone to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoMilestoneStruct) CheckoutPhaseTwoInstance ¶
func (backRepoMilestone *BackRepoMilestoneStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, milestoneDB *MilestoneDB) (Error error)
BackRepoMilestone.CheckoutPhaseTwoInstance Checkouts staged instances of Milestone to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoMilestoneStruct) CommitDeleteInstance ¶
func (backRepoMilestone *BackRepoMilestoneStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoMilestone.CommitDeleteInstance commits deletion of Milestone to the BackRepo
func (*BackRepoMilestoneStruct) CommitPhaseOne ¶
func (backRepoMilestone *BackRepoMilestoneStruct) CommitPhaseOne(stage *models.Stage) (Error error)
BackRepoMilestone.CommitPhaseOne commits all staged instances of Milestone 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 (*BackRepoMilestoneStruct) CommitPhaseOneInstance ¶
func (backRepoMilestone *BackRepoMilestoneStruct) CommitPhaseOneInstance(milestone *models.Milestone) (Error error)
BackRepoMilestone.CommitPhaseOneInstance commits milestone staged instances of Milestone 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 (*BackRepoMilestoneStruct) CommitPhaseTwo ¶
func (backRepoMilestone *BackRepoMilestoneStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoMilestone.CommitPhaseTwo commits all staged instances of Milestone to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoMilestoneStruct) CommitPhaseTwoInstance ¶
func (backRepoMilestone *BackRepoMilestoneStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, milestone *models.Milestone) (Error error)
BackRepoMilestone.CommitPhaseTwoInstance commits {{structname }} of models.Milestone to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoMilestoneStruct) GetDB ¶
func (backRepoMilestone *BackRepoMilestoneStruct) GetDB() db.DBInterface
func (*BackRepoMilestoneStruct) GetMilestoneDBFromMilestonePtr ¶
func (backRepoMilestone *BackRepoMilestoneStruct) GetMilestoneDBFromMilestonePtr(milestone *models.Milestone) (milestoneDB *MilestoneDB)
GetMilestoneDBFromMilestonePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoMilestoneStruct) GetStage ¶
func (backRepoMilestone *BackRepoMilestoneStruct) GetStage() (stage *models.Stage)
func (*BackRepoMilestoneStruct) ResetReversePointers ¶
func (backRepoMilestone *BackRepoMilestoneStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoMilestone.ResetReversePointers commits all staged instances of Milestone to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoMilestoneStruct) ResetReversePointersInstance ¶
func (backRepoMilestone *BackRepoMilestoneStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, milestone *models.Milestone) (Error error)
func (*BackRepoMilestoneStruct) RestorePhaseOne ¶
func (backRepoMilestone *BackRepoMilestoneStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "MilestoneDB.json" in dirPath that stores an array of MilestoneDB and stores it in the database the map BackRepoMilestoneid_atBckpTime_newID is updated accordingly
func (*BackRepoMilestoneStruct) RestorePhaseTwo ¶
func (backRepoMilestone *BackRepoMilestoneStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Milestone>id_atBckpTime_newID to compute new index
func (*BackRepoMilestoneStruct) RestoreXLPhaseOne ¶
func (backRepoMilestone *BackRepoMilestoneStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Milestone" sheet all MilestoneDB instances
type BackRepoStruct ¶
type BackRepoStruct struct { // insertion point for per struct back repo declarations BackRepoArrow BackRepoArrowStruct BackRepoBar BackRepoBarStruct BackRepoGantt BackRepoGanttStruct BackRepoGroup BackRepoGroupStruct BackRepoLane BackRepoLaneStruct BackRepoLaneUse BackRepoLaneUseStruct BackRepoMilestone BackRepoMilestoneStruct 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) CheckoutArrow ¶
func (backRepo *BackRepoStruct) CheckoutArrow(arrow *models.Arrow)
CommitArrow allows checkout of a single arrow (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutBar ¶
func (backRepo *BackRepoStruct) CheckoutBar(bar *models.Bar)
CommitBar allows checkout of a single bar (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutGantt ¶
func (backRepo *BackRepoStruct) CheckoutGantt(gantt *models.Gantt)
CommitGantt allows checkout of a single gantt (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutGroup ¶
func (backRepo *BackRepoStruct) CheckoutGroup(group *models.Group)
CommitGroup allows checkout of a single group (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutLane ¶
func (backRepo *BackRepoStruct) CheckoutLane(lane *models.Lane)
CommitLane allows checkout of a single lane (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutLaneUse ¶
func (backRepo *BackRepoStruct) CheckoutLaneUse(laneuse *models.LaneUse)
CommitLaneUse allows checkout of a single laneuse (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutMilestone ¶
func (backRepo *BackRepoStruct) CheckoutMilestone(milestone *models.Milestone)
CommitMilestone allows checkout of a single milestone (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) CommitArrow ¶
func (backRepo *BackRepoStruct) CommitArrow(arrow *models.Arrow)
CommitArrow allows commit of a single arrow (if already staged)
func (*BackRepoStruct) CommitBar ¶
func (backRepo *BackRepoStruct) CommitBar(bar *models.Bar)
CommitBar allows commit of a single bar (if already staged)
func (*BackRepoStruct) CommitGantt ¶
func (backRepo *BackRepoStruct) CommitGantt(gantt *models.Gantt)
CommitGantt allows commit of a single gantt (if already staged)
func (*BackRepoStruct) CommitGroup ¶
func (backRepo *BackRepoStruct) CommitGroup(group *models.Group)
CommitGroup allows commit of a single group (if already staged)
func (*BackRepoStruct) CommitLane ¶
func (backRepo *BackRepoStruct) CommitLane(lane *models.Lane)
CommitLane allows commit of a single lane (if already staged)
func (*BackRepoStruct) CommitLaneUse ¶
func (backRepo *BackRepoStruct) CommitLaneUse(laneuse *models.LaneUse)
CommitLaneUse allows commit of a single laneuse (if already staged)
func (*BackRepoStruct) CommitMilestone ¶
func (backRepo *BackRepoStruct) CommitMilestone(milestone *models.Milestone)
CommitMilestone allows commit of a single milestone (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 BarAPI ¶
type BarAPI struct { gorm.Model models.Bar_WOP // encoding of pointers // for API, it cannot be embedded BarPointersEncoding BarPointersEncoding }
BarAPI 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 barAPI
type BarDB ¶
type BarDB struct { gorm.Model // Declation for basic field barDB.Name Name_Data sql.NullString // Declation for basic field barDB.Start Start_Data sql.NullTime // Declation for basic field barDB.End End_Data sql.NullTime // Declation for basic field barDB.ComputedDuration ComputedDuration_Data sql.NullInt64 // Declation for basic field barDB.OptionnalColor OptionnalColor_Data sql.NullString // Declation for basic field barDB.OptionnalStroke OptionnalStroke_Data sql.NullString // Declation for basic field barDB.FillOpacity FillOpacity_Data sql.NullFloat64 // Declation for basic field barDB.StrokeWidth StrokeWidth_Data sql.NullFloat64 // Declation for basic field barDB.StrokeDashArray StrokeDashArray_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration BarPointersEncoding }
BarDB describes a bar 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 barDB
func (*BarDB) CopyBasicFieldsFromBar ¶
CopyBasicFieldsFromBar
func (*BarDB) CopyBasicFieldsFromBarWOP ¶
CopyBasicFieldsFromBarWOP
func (*BarDB) CopyBasicFieldsFromBar_WOP ¶
CopyBasicFieldsFromBar_WOP
func (*BarDB) CopyBasicFieldsToBar ¶
CopyBasicFieldsToBar
func (*BarDB) CopyBasicFieldsToBarWOP ¶
CopyBasicFieldsToBarWOP
func (*BarDB) CopyBasicFieldsToBar_WOP ¶
CopyBasicFieldsToBar_WOP
func (*BarDB) DecodePointers ¶
func (barDB *BarDB) DecodePointers(backRepo *BackRepoStruct, bar *models.Bar)
type BarDBResponse ¶
type BarDBResponse struct {
BarDB
}
BarDBResponse provides response swagger:response barDBResponse
type BarPointersEncoding ¶
type BarPointersEncoding struct { }
BarPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type BarWOP ¶
type BarWOP struct { ID int `xlsx:"0"` Name string `xlsx:"1"` Start time.Time `xlsx:"2"` End time.Time `xlsx:"3"` ComputedDuration time.Duration `xlsx:"4"` OptionnalColor string `xlsx:"5"` OptionnalStroke string `xlsx:"6"` FillOpacity float64 `xlsx:"7"` StrokeWidth float64 `xlsx:"8"` StrokeDashArray string `xlsx:"9"` }
BarWOP is a Bar 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 GanttAPI ¶
type GanttAPI struct { gorm.Model models.Gantt_WOP // encoding of pointers // for API, it cannot be embedded GanttPointersEncoding GanttPointersEncoding }
GanttAPI 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 ganttAPI
type GanttDB ¶
type GanttDB struct { gorm.Model // Declation for basic field ganttDB.Name Name_Data sql.NullString // Declation for basic field ganttDB.ComputedStart ComputedStart_Data sql.NullTime // Declation for basic field ganttDB.ComputedEnd ComputedEnd_Data sql.NullTime // Declation for basic field ganttDB.ComputedDuration ComputedDuration_Data sql.NullInt64 // Declation for basic field ganttDB.UseManualStartAndEndDates // provide the sql storage for the boolan UseManualStartAndEndDates_Data sql.NullBool // Declation for basic field ganttDB.ManualStart ManualStart_Data sql.NullTime // Declation for basic field ganttDB.ManualEnd ManualEnd_Data sql.NullTime // Declation for basic field ganttDB.LaneHeight LaneHeight_Data sql.NullFloat64 // Declation for basic field ganttDB.RatioBarToLaneHeight RatioBarToLaneHeight_Data sql.NullFloat64 // Declation for basic field ganttDB.YTopMargin YTopMargin_Data sql.NullFloat64 // Declation for basic field ganttDB.XLeftText XLeftText_Data sql.NullFloat64 // Declation for basic field ganttDB.TextHeight TextHeight_Data sql.NullFloat64 // Declation for basic field ganttDB.XLeftLanes XLeftLanes_Data sql.NullFloat64 // Declation for basic field ganttDB.XRightMargin XRightMargin_Data sql.NullFloat64 // Declation for basic field ganttDB.ArrowLengthToTheRightOfStartBar ArrowLengthToTheRightOfStartBar_Data sql.NullFloat64 // Declation for basic field ganttDB.ArrowTipLenght ArrowTipLenght_Data sql.NullFloat64 // Declation for basic field ganttDB.TimeLine_Color TimeLine_Color_Data sql.NullString // Declation for basic field ganttDB.TimeLine_FillOpacity TimeLine_FillOpacity_Data sql.NullFloat64 // Declation for basic field ganttDB.TimeLine_Stroke TimeLine_Stroke_Data sql.NullString // Declation for basic field ganttDB.TimeLine_StrokeWidth TimeLine_StrokeWidth_Data sql.NullFloat64 // Declation for basic field ganttDB.Group_Stroke Group_Stroke_Data sql.NullString // Declation for basic field ganttDB.Group_StrokeWidth Group_StrokeWidth_Data sql.NullFloat64 // Declation for basic field ganttDB.Group_StrokeDashArray Group_StrokeDashArray_Data sql.NullString // Declation for basic field ganttDB.DateYOffset DateYOffset_Data sql.NullFloat64 // Declation for basic field ganttDB.AlignOnStartEndOnYearStart // provide the sql storage for the boolan AlignOnStartEndOnYearStart_Data sql.NullBool // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration GanttPointersEncoding }
GanttDB describes a gantt 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 ganttDB
func (*GanttDB) CopyBasicFieldsFromGantt ¶
CopyBasicFieldsFromGantt
func (*GanttDB) CopyBasicFieldsFromGanttWOP ¶
CopyBasicFieldsFromGanttWOP
func (*GanttDB) CopyBasicFieldsFromGantt_WOP ¶
CopyBasicFieldsFromGantt_WOP
func (*GanttDB) CopyBasicFieldsToGantt ¶
CopyBasicFieldsToGantt
func (*GanttDB) CopyBasicFieldsToGanttWOP ¶
CopyBasicFieldsToGanttWOP
func (*GanttDB) CopyBasicFieldsToGantt_WOP ¶
CopyBasicFieldsToGantt_WOP
func (*GanttDB) DecodePointers ¶
func (ganttDB *GanttDB) DecodePointers(backRepo *BackRepoStruct, gantt *models.Gantt)
type GanttDBResponse ¶
type GanttDBResponse struct {
GanttDB
}
GanttDBResponse provides response swagger:response ganttDBResponse
type GanttPointersEncoding ¶
type GanttPointersEncoding struct { // field Lanes is a slice of pointers to another Struct (optional or 0..1) Lanes IntSlice `gorm:"type:TEXT"` // field Milestones is a slice of pointers to another Struct (optional or 0..1) Milestones IntSlice `gorm:"type:TEXT"` // field Groups is a slice of pointers to another Struct (optional or 0..1) Groups IntSlice `gorm:"type:TEXT"` // field Arrows is a slice of pointers to another Struct (optional or 0..1) Arrows IntSlice `gorm:"type:TEXT"` }
GanttPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type GanttWOP ¶
type GanttWOP struct { ID int `xlsx:"0"` Name string `xlsx:"1"` ComputedStart time.Time `xlsx:"2"` ComputedEnd time.Time `xlsx:"3"` ComputedDuration time.Duration `xlsx:"4"` UseManualStartAndEndDates bool `xlsx:"5"` ManualStart time.Time `xlsx:"6"` ManualEnd time.Time `xlsx:"7"` LaneHeight float64 `xlsx:"8"` RatioBarToLaneHeight float64 `xlsx:"9"` YTopMargin float64 `xlsx:"10"` XLeftText float64 `xlsx:"11"` TextHeight float64 `xlsx:"12"` XLeftLanes float64 `xlsx:"13"` XRightMargin float64 `xlsx:"14"` ArrowLengthToTheRightOfStartBar float64 `xlsx:"15"` ArrowTipLenght float64 `xlsx:"16"` TimeLine_Color string `xlsx:"17"` TimeLine_FillOpacity float64 `xlsx:"18"` TimeLine_Stroke string `xlsx:"19"` TimeLine_StrokeWidth float64 `xlsx:"20"` Group_Stroke string `xlsx:"21"` Group_StrokeWidth float64 `xlsx:"22"` Group_StrokeDashArray string `xlsx:"23"` DateYOffset float64 `xlsx:"24"` AlignOnStartEndOnYearStart bool `xlsx:"25"` }
GanttWOP is a Gantt 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 GroupAPI ¶
type GroupAPI struct { gorm.Model models.Group_WOP // encoding of pointers // for API, it cannot be embedded GroupPointersEncoding GroupPointersEncoding }
GroupAPI 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 groupAPI
type GroupDB ¶
type GroupDB struct { gorm.Model // Declation for basic field groupDB.Name Name_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration GroupPointersEncoding }
GroupDB describes a group 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 groupDB
func (*GroupDB) CopyBasicFieldsFromGroup ¶
CopyBasicFieldsFromGroup
func (*GroupDB) CopyBasicFieldsFromGroupWOP ¶
CopyBasicFieldsFromGroupWOP
func (*GroupDB) CopyBasicFieldsFromGroup_WOP ¶
CopyBasicFieldsFromGroup_WOP
func (*GroupDB) CopyBasicFieldsToGroup ¶
CopyBasicFieldsToGroup
func (*GroupDB) CopyBasicFieldsToGroupWOP ¶
CopyBasicFieldsToGroupWOP
func (*GroupDB) CopyBasicFieldsToGroup_WOP ¶
CopyBasicFieldsToGroup_WOP
func (*GroupDB) DecodePointers ¶
func (groupDB *GroupDB) DecodePointers(backRepo *BackRepoStruct, group *models.Group)
type GroupDBResponse ¶
type GroupDBResponse struct {
GroupDB
}
GroupDBResponse provides response swagger:response groupDBResponse
type GroupPointersEncoding ¶
type GroupPointersEncoding struct { // field GroupLanes is a slice of pointers to another Struct (optional or 0..1) GroupLanes IntSlice `gorm:"type:TEXT"` }
GroupPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type GroupWOP ¶
GroupWOP is a Group without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type IntSlice ¶
type IntSlice []int
type LaneAPI ¶
type LaneAPI struct { gorm.Model models.Lane_WOP // encoding of pointers // for API, it cannot be embedded LanePointersEncoding LanePointersEncoding }
LaneAPI 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 laneAPI
type LaneDB ¶
type LaneDB struct { gorm.Model // Declation for basic field laneDB.Name Name_Data sql.NullString // Declation for basic field laneDB.Order Order_Data sql.NullInt64 // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration LanePointersEncoding }
LaneDB describes a lane 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 laneDB
func (*LaneDB) CopyBasicFieldsFromLane ¶
CopyBasicFieldsFromLane
func (*LaneDB) CopyBasicFieldsFromLaneWOP ¶
CopyBasicFieldsFromLaneWOP
func (*LaneDB) CopyBasicFieldsFromLane_WOP ¶
CopyBasicFieldsFromLane_WOP
func (*LaneDB) CopyBasicFieldsToLane ¶
CopyBasicFieldsToLane
func (*LaneDB) CopyBasicFieldsToLaneWOP ¶
CopyBasicFieldsToLaneWOP
func (*LaneDB) CopyBasicFieldsToLane_WOP ¶
CopyBasicFieldsToLane_WOP
func (*LaneDB) DecodePointers ¶
func (laneDB *LaneDB) DecodePointers(backRepo *BackRepoStruct, lane *models.Lane)
type LaneDBResponse ¶
type LaneDBResponse struct {
LaneDB
}
LaneDBResponse provides response swagger:response laneDBResponse
type LanePointersEncoding ¶
type LanePointersEncoding struct { // field Bars is a slice of pointers to another Struct (optional or 0..1) Bars IntSlice `gorm:"type:TEXT"` }
LanePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type LaneUseAPI ¶
type LaneUseAPI struct { gorm.Model models.LaneUse_WOP // encoding of pointers // for API, it cannot be embedded LaneUsePointersEncoding LaneUsePointersEncoding }
LaneUseAPI 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 laneuseAPI
type LaneUseDB ¶
type LaneUseDB struct { gorm.Model // Declation for basic field laneuseDB.Name Name_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration LaneUsePointersEncoding }
LaneUseDB describes a laneuse 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 laneuseDB
func (*LaneUseDB) CopyBasicFieldsFromLaneUse ¶
CopyBasicFieldsFromLaneUse
func (*LaneUseDB) CopyBasicFieldsFromLaneUseWOP ¶
func (laneuseDB *LaneUseDB) CopyBasicFieldsFromLaneUseWOP(laneuse *LaneUseWOP)
CopyBasicFieldsFromLaneUseWOP
func (*LaneUseDB) CopyBasicFieldsFromLaneUse_WOP ¶
func (laneuseDB *LaneUseDB) CopyBasicFieldsFromLaneUse_WOP(laneuse *models.LaneUse_WOP)
CopyBasicFieldsFromLaneUse_WOP
func (*LaneUseDB) CopyBasicFieldsToLaneUse ¶
CopyBasicFieldsToLaneUse
func (*LaneUseDB) CopyBasicFieldsToLaneUseWOP ¶
func (laneuseDB *LaneUseDB) CopyBasicFieldsToLaneUseWOP(laneuse *LaneUseWOP)
CopyBasicFieldsToLaneUseWOP
func (*LaneUseDB) CopyBasicFieldsToLaneUse_WOP ¶
func (laneuseDB *LaneUseDB) CopyBasicFieldsToLaneUse_WOP(laneuse *models.LaneUse_WOP)
CopyBasicFieldsToLaneUse_WOP
func (*LaneUseDB) DecodePointers ¶
func (laneuseDB *LaneUseDB) DecodePointers(backRepo *BackRepoStruct, laneuse *models.LaneUse)
type LaneUseDBResponse ¶
type LaneUseDBResponse struct {
LaneUseDB
}
LaneUseDBResponse provides response swagger:response laneuseDBResponse
type LaneUseDBs ¶
type LaneUseDBs []LaneUseDB
LaneUseDBs arrays laneuseDBs swagger:response laneuseDBsResponse
type LaneUsePointersEncoding ¶
type LaneUsePointersEncoding struct { // field Lane is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association LaneID sql.NullInt64 }
LaneUsePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type LaneUseWOP ¶
LaneUseWOP is a LaneUse without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type LaneWOP ¶
LaneWOP is a Lane without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type MilestoneAPI ¶
type MilestoneAPI struct { gorm.Model models.Milestone_WOP // encoding of pointers // for API, it cannot be embedded MilestonePointersEncoding MilestonePointersEncoding }
MilestoneAPI 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 milestoneAPI
type MilestoneDB ¶
type MilestoneDB struct { gorm.Model // Declation for basic field milestoneDB.Name Name_Data sql.NullString // Declation for basic field milestoneDB.Date Date_Data sql.NullTime // Declation for basic field milestoneDB.DisplayVerticalBar // provide the sql storage for the boolan DisplayVerticalBar_Data sql.NullBool // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration MilestonePointersEncoding }
MilestoneDB describes a milestone 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 milestoneDB
func (*MilestoneDB) CopyBasicFieldsFromMilestone ¶
func (milestoneDB *MilestoneDB) CopyBasicFieldsFromMilestone(milestone *models.Milestone)
CopyBasicFieldsFromMilestone
func (*MilestoneDB) CopyBasicFieldsFromMilestoneWOP ¶
func (milestoneDB *MilestoneDB) CopyBasicFieldsFromMilestoneWOP(milestone *MilestoneWOP)
CopyBasicFieldsFromMilestoneWOP
func (*MilestoneDB) CopyBasicFieldsFromMilestone_WOP ¶
func (milestoneDB *MilestoneDB) CopyBasicFieldsFromMilestone_WOP(milestone *models.Milestone_WOP)
CopyBasicFieldsFromMilestone_WOP
func (*MilestoneDB) CopyBasicFieldsToMilestone ¶
func (milestoneDB *MilestoneDB) CopyBasicFieldsToMilestone(milestone *models.Milestone)
CopyBasicFieldsToMilestone
func (*MilestoneDB) CopyBasicFieldsToMilestoneWOP ¶
func (milestoneDB *MilestoneDB) CopyBasicFieldsToMilestoneWOP(milestone *MilestoneWOP)
CopyBasicFieldsToMilestoneWOP
func (*MilestoneDB) CopyBasicFieldsToMilestone_WOP ¶
func (milestoneDB *MilestoneDB) CopyBasicFieldsToMilestone_WOP(milestone *models.Milestone_WOP)
CopyBasicFieldsToMilestone_WOP
func (*MilestoneDB) DecodePointers ¶
func (milestoneDB *MilestoneDB) DecodePointers(backRepo *BackRepoStruct, milestone *models.Milestone)
type MilestoneDBResponse ¶
type MilestoneDBResponse struct {
MilestoneDB
}
MilestoneDBResponse provides response swagger:response milestoneDBResponse
type MilestoneDBs ¶
type MilestoneDBs []MilestoneDB
MilestoneDBs arrays milestoneDBs swagger:response milestoneDBsResponse
type MilestonePointersEncoding ¶
type MilestonePointersEncoding struct { // field LanesToDisplay is a slice of pointers to another Struct (optional or 0..1) LanesToDisplay IntSlice `gorm:"type:TEXT"` }
MilestonePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type MilestoneWOP ¶
type MilestoneWOP struct { ID int `xlsx:"0"` Name string `xlsx:"1"` Date time.Time `xlsx:"2"` DisplayVerticalBar bool `xlsx:"3"` }
MilestoneWOP is a Milestone without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint