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.StageStruct, backRepo *BackRepoStruct, instance *T) (id int)
- func GetIDPointer[T models.PointerToGongstruct](stage *models.StageStruct, backRepo *BackRepoStruct, instance T) (id int)
- func GetInstanceDBFromInstance[T models.Gongstruct, T2 GongstructDB](stage *models.StageStruct, backRepo *BackRepoStruct, instance *T) (ret *T2)
- func GetReverseFieldOwner[T models.Gongstruct](stage *models.StageStruct, backRepo *BackRepoStruct, instance *T, ...) (res any)
- func GetReverseFieldOwnerName[T models.Gongstruct](stage *models.StageStruct, backRepo *BackRepoStruct, instance *T, ...) (res string)
- type BackRepoCivilianAirportStruct
- func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) Backup(dirPath string)
- func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) BackupXL(file *xlsx.File)
- func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) CheckoutPhaseOne() (Error error)
- func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) CheckoutPhaseOneInstance(civilianairportDB *CivilianAirportDB) (Error error)
- func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, civilianairportDB *CivilianAirportDB) (Error error)
- func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) CommitPhaseOneInstance(civilianairport *models.CivilianAirport) (Error error)
- func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, civilianairport *models.CivilianAirport) (Error error)
- func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) GetCivilianAirportDBFromCivilianAirportPtr(civilianairport *models.CivilianAirport) (civilianairportDB *CivilianAirportDB)
- func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) GetDB() *gorm.DB
- func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) GetStage() (stage *models.StageStruct)
- func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, civilianairport *models.CivilianAirport) (Error error)
- func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) RestorePhaseOne(dirPath string)
- func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) RestorePhaseTwo()
- func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoData
- type BackRepoLinerStruct
- func (backRepoLiner *BackRepoLinerStruct) Backup(dirPath string)
- func (backRepoLiner *BackRepoLinerStruct) BackupXL(file *xlsx.File)
- func (backRepoLiner *BackRepoLinerStruct) CheckoutPhaseOne() (Error error)
- func (backRepoLiner *BackRepoLinerStruct) CheckoutPhaseOneInstance(linerDB *LinerDB) (Error error)
- func (backRepoLiner *BackRepoLinerStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoLiner *BackRepoLinerStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, linerDB *LinerDB) (Error error)
- func (backRepoLiner *BackRepoLinerStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoLiner *BackRepoLinerStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoLiner *BackRepoLinerStruct) CommitPhaseOneInstance(liner *models.Liner) (Error error)
- func (backRepoLiner *BackRepoLinerStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoLiner *BackRepoLinerStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, liner *models.Liner) (Error error)
- func (backRepoLiner *BackRepoLinerStruct) GetDB() *gorm.DB
- func (backRepoLiner *BackRepoLinerStruct) GetLinerDBFromLinerPtr(liner *models.Liner) (linerDB *LinerDB)
- func (backRepoLiner *BackRepoLinerStruct) GetStage() (stage *models.StageStruct)
- func (backRepoLiner *BackRepoLinerStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoLiner *BackRepoLinerStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, liner *models.Liner) (Error error)
- func (backRepoLiner *BackRepoLinerStruct) RestorePhaseOne(dirPath string)
- func (backRepoLiner *BackRepoLinerStruct) RestorePhaseTwo()
- func (backRepoLiner *BackRepoLinerStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoMessageStruct
- func (backRepoMessage *BackRepoMessageStruct) Backup(dirPath string)
- func (backRepoMessage *BackRepoMessageStruct) BackupXL(file *xlsx.File)
- func (backRepoMessage *BackRepoMessageStruct) CheckoutPhaseOne() (Error error)
- func (backRepoMessage *BackRepoMessageStruct) CheckoutPhaseOneInstance(messageDB *MessageDB) (Error error)
- func (backRepoMessage *BackRepoMessageStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoMessage *BackRepoMessageStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, messageDB *MessageDB) (Error error)
- func (backRepoMessage *BackRepoMessageStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoMessage *BackRepoMessageStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoMessage *BackRepoMessageStruct) CommitPhaseOneInstance(message *models.Message) (Error error)
- func (backRepoMessage *BackRepoMessageStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoMessage *BackRepoMessageStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, message *models.Message) (Error error)
- func (backRepoMessage *BackRepoMessageStruct) GetDB() *gorm.DB
- func (backRepoMessage *BackRepoMessageStruct) GetMessageDBFromMessagePtr(message *models.Message) (messageDB *MessageDB)
- func (backRepoMessage *BackRepoMessageStruct) GetStage() (stage *models.StageStruct)
- func (backRepoMessage *BackRepoMessageStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoMessage *BackRepoMessageStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, message *models.Message) (Error error)
- func (backRepoMessage *BackRepoMessageStruct) RestorePhaseOne(dirPath string)
- func (backRepoMessage *BackRepoMessageStruct) RestorePhaseTwo()
- func (backRepoMessage *BackRepoMessageStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoOpsLineStruct
- func (backRepoOpsLine *BackRepoOpsLineStruct) Backup(dirPath string)
- func (backRepoOpsLine *BackRepoOpsLineStruct) BackupXL(file *xlsx.File)
- func (backRepoOpsLine *BackRepoOpsLineStruct) CheckoutPhaseOne() (Error error)
- func (backRepoOpsLine *BackRepoOpsLineStruct) CheckoutPhaseOneInstance(opslineDB *OpsLineDB) (Error error)
- func (backRepoOpsLine *BackRepoOpsLineStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoOpsLine *BackRepoOpsLineStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, opslineDB *OpsLineDB) (Error error)
- func (backRepoOpsLine *BackRepoOpsLineStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoOpsLine *BackRepoOpsLineStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoOpsLine *BackRepoOpsLineStruct) CommitPhaseOneInstance(opsline *models.OpsLine) (Error error)
- func (backRepoOpsLine *BackRepoOpsLineStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoOpsLine *BackRepoOpsLineStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, opsline *models.OpsLine) (Error error)
- func (backRepoOpsLine *BackRepoOpsLineStruct) GetDB() *gorm.DB
- func (backRepoOpsLine *BackRepoOpsLineStruct) GetOpsLineDBFromOpsLinePtr(opsline *models.OpsLine) (opslineDB *OpsLineDB)
- func (backRepoOpsLine *BackRepoOpsLineStruct) GetStage() (stage *models.StageStruct)
- func (backRepoOpsLine *BackRepoOpsLineStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoOpsLine *BackRepoOpsLineStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, opsline *models.OpsLine) (Error error)
- func (backRepoOpsLine *BackRepoOpsLineStruct) RestorePhaseOne(dirPath string)
- func (backRepoOpsLine *BackRepoOpsLineStruct) RestorePhaseTwo()
- func (backRepoOpsLine *BackRepoOpsLineStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoRadarStruct
- func (backRepoRadar *BackRepoRadarStruct) Backup(dirPath string)
- func (backRepoRadar *BackRepoRadarStruct) BackupXL(file *xlsx.File)
- func (backRepoRadar *BackRepoRadarStruct) CheckoutPhaseOne() (Error error)
- func (backRepoRadar *BackRepoRadarStruct) CheckoutPhaseOneInstance(radarDB *RadarDB) (Error error)
- func (backRepoRadar *BackRepoRadarStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoRadar *BackRepoRadarStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, radarDB *RadarDB) (Error error)
- func (backRepoRadar *BackRepoRadarStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoRadar *BackRepoRadarStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoRadar *BackRepoRadarStruct) CommitPhaseOneInstance(radar *models.Radar) (Error error)
- func (backRepoRadar *BackRepoRadarStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoRadar *BackRepoRadarStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, radar *models.Radar) (Error error)
- func (backRepoRadar *BackRepoRadarStruct) GetDB() *gorm.DB
- func (backRepoRadar *BackRepoRadarStruct) GetRadarDBFromRadarPtr(radar *models.Radar) (radarDB *RadarDB)
- func (backRepoRadar *BackRepoRadarStruct) GetStage() (stage *models.StageStruct)
- func (backRepoRadar *BackRepoRadarStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoRadar *BackRepoRadarStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, radar *models.Radar) (Error error)
- func (backRepoRadar *BackRepoRadarStruct) RestorePhaseOne(dirPath string)
- func (backRepoRadar *BackRepoRadarStruct) RestorePhaseTwo()
- func (backRepoRadar *BackRepoRadarStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoSatelliteStruct
- func (backRepoSatellite *BackRepoSatelliteStruct) Backup(dirPath string)
- func (backRepoSatellite *BackRepoSatelliteStruct) BackupXL(file *xlsx.File)
- func (backRepoSatellite *BackRepoSatelliteStruct) CheckoutPhaseOne() (Error error)
- func (backRepoSatellite *BackRepoSatelliteStruct) CheckoutPhaseOneInstance(satelliteDB *SatelliteDB) (Error error)
- func (backRepoSatellite *BackRepoSatelliteStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoSatellite *BackRepoSatelliteStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, satelliteDB *SatelliteDB) (Error error)
- func (backRepoSatellite *BackRepoSatelliteStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoSatellite *BackRepoSatelliteStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoSatellite *BackRepoSatelliteStruct) CommitPhaseOneInstance(satellite *models.Satellite) (Error error)
- func (backRepoSatellite *BackRepoSatelliteStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoSatellite *BackRepoSatelliteStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, satellite *models.Satellite) (Error error)
- func (backRepoSatellite *BackRepoSatelliteStruct) GetDB() *gorm.DB
- func (backRepoSatellite *BackRepoSatelliteStruct) GetSatelliteDBFromSatellitePtr(satellite *models.Satellite) (satelliteDB *SatelliteDB)
- func (backRepoSatellite *BackRepoSatelliteStruct) GetStage() (stage *models.StageStruct)
- func (backRepoSatellite *BackRepoSatelliteStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoSatellite *BackRepoSatelliteStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, satellite *models.Satellite) (Error error)
- func (backRepoSatellite *BackRepoSatelliteStruct) RestorePhaseOne(dirPath string)
- func (backRepoSatellite *BackRepoSatelliteStruct) RestorePhaseTwo()
- func (backRepoSatellite *BackRepoSatelliteStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoScenarioStruct
- func (backRepoScenario *BackRepoScenarioStruct) Backup(dirPath string)
- func (backRepoScenario *BackRepoScenarioStruct) BackupXL(file *xlsx.File)
- func (backRepoScenario *BackRepoScenarioStruct) CheckoutPhaseOne() (Error error)
- func (backRepoScenario *BackRepoScenarioStruct) CheckoutPhaseOneInstance(scenarioDB *ScenarioDB) (Error error)
- func (backRepoScenario *BackRepoScenarioStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoScenario *BackRepoScenarioStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, scenarioDB *ScenarioDB) (Error error)
- func (backRepoScenario *BackRepoScenarioStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoScenario *BackRepoScenarioStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoScenario *BackRepoScenarioStruct) CommitPhaseOneInstance(scenario *models.Scenario) (Error error)
- func (backRepoScenario *BackRepoScenarioStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoScenario *BackRepoScenarioStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, scenario *models.Scenario) (Error error)
- func (backRepoScenario *BackRepoScenarioStruct) GetDB() *gorm.DB
- func (backRepoScenario *BackRepoScenarioStruct) GetScenarioDBFromScenarioPtr(scenario *models.Scenario) (scenarioDB *ScenarioDB)
- func (backRepoScenario *BackRepoScenarioStruct) GetStage() (stage *models.StageStruct)
- func (backRepoScenario *BackRepoScenarioStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoScenario *BackRepoScenarioStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, scenario *models.Scenario) (Error error)
- func (backRepoScenario *BackRepoScenarioStruct) RestorePhaseOne(dirPath string)
- func (backRepoScenario *BackRepoScenarioStruct) RestorePhaseTwo()
- func (backRepoScenario *BackRepoScenarioStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoStruct
- func (backRepo *BackRepoStruct) Backup(stage *models.StageStruct, dirPath string)
- func (backRepo *BackRepoStruct) BackupXL(stage *models.StageStruct, dirPath string)
- func (backRepo *BackRepoStruct) Checkout(stage *models.StageStruct)
- func (backRepo *BackRepoStruct) CheckoutCivilianAirport(civilianairport *models.CivilianAirport)
- func (backRepo *BackRepoStruct) CheckoutLiner(liner *models.Liner)
- func (backRepo *BackRepoStruct) CheckoutMessage(message *models.Message)
- func (backRepo *BackRepoStruct) CheckoutOpsLine(opsline *models.OpsLine)
- func (backRepo *BackRepoStruct) CheckoutRadar(radar *models.Radar)
- func (backRepo *BackRepoStruct) CheckoutSatellite(satellite *models.Satellite)
- func (backRepo *BackRepoStruct) CheckoutScenario(scenario *models.Scenario)
- func (backRepo *BackRepoStruct) Commit(stage *models.StageStruct)
- func (backRepo *BackRepoStruct) CommitCivilianAirport(civilianairport *models.CivilianAirport)
- func (backRepo *BackRepoStruct) CommitLiner(liner *models.Liner)
- func (backRepo *BackRepoStruct) CommitMessage(message *models.Message)
- func (backRepo *BackRepoStruct) CommitOpsLine(opsline *models.OpsLine)
- func (backRepo *BackRepoStruct) CommitRadar(radar *models.Radar)
- func (backRepo *BackRepoStruct) CommitSatellite(satellite *models.Satellite)
- func (backRepo *BackRepoStruct) CommitScenario(scenario *models.Scenario)
- func (backRepo *BackRepoStruct) GetLastCommitFromBackNb() uint
- func (backRepo *BackRepoStruct) GetLastPushFromFrontNb() uint
- func (backRepo *BackRepoStruct) GetStage() (stage *models.StageStruct)
- func (backRepo *BackRepoStruct) IncrementCommitFromBackNb() uint
- func (backRepo *BackRepoStruct) IncrementPushFromFrontNb() uint
- func (backRepo *BackRepoStruct) Restore(stage *models.StageStruct, dirPath string)
- func (backRepo *BackRepoStruct) RestoreXL(stage *models.StageStruct, dirPath string)
- func (backRepoStruct *BackRepoStruct) SubscribeToCommitNb() <-chan int
- type CivilianAirportAPI
- type CivilianAirportDB
- func (civilianairportDB *CivilianAirportDB) CopyBasicFieldsFromCivilianAirport(civilianairport *models.CivilianAirport)
- func (civilianairportDB *CivilianAirportDB) CopyBasicFieldsFromCivilianAirportWOP(civilianairport *CivilianAirportWOP)
- func (civilianairportDB *CivilianAirportDB) CopyBasicFieldsFromCivilianAirport_WOP(civilianairport *models.CivilianAirport_WOP)
- func (civilianairportDB *CivilianAirportDB) CopyBasicFieldsToCivilianAirport(civilianairport *models.CivilianAirport)
- func (civilianairportDB *CivilianAirportDB) CopyBasicFieldsToCivilianAirportWOP(civilianairport *CivilianAirportWOP)
- func (civilianairportDB *CivilianAirportDB) CopyBasicFieldsToCivilianAirport_WOP(civilianairport *models.CivilianAirport_WOP)
- func (civilianairportDB *CivilianAirportDB) DecodePointers(backRepo *BackRepoStruct, civilianairport *models.CivilianAirport)
- type CivilianAirportDBResponse
- type CivilianAirportDBs
- type CivilianAirportPointersEncoding
- type CivilianAirportWOP
- type GongstructDB
- type IntSlice
- type LinerAPI
- type LinerDB
- func (linerDB *LinerDB) CopyBasicFieldsFromLiner(liner *models.Liner)
- func (linerDB *LinerDB) CopyBasicFieldsFromLinerWOP(liner *LinerWOP)
- func (linerDB *LinerDB) CopyBasicFieldsFromLiner_WOP(liner *models.Liner_WOP)
- func (linerDB *LinerDB) CopyBasicFieldsToLiner(liner *models.Liner)
- func (linerDB *LinerDB) CopyBasicFieldsToLinerWOP(liner *LinerWOP)
- func (linerDB *LinerDB) CopyBasicFieldsToLiner_WOP(liner *models.Liner_WOP)
- func (linerDB *LinerDB) DecodePointers(backRepo *BackRepoStruct, liner *models.Liner)
- type LinerDBResponse
- type LinerDBs
- type LinerPointersEncoding
- type LinerWOP
- type MessageAPI
- type MessageDB
- func (messageDB *MessageDB) CopyBasicFieldsFromMessage(message *models.Message)
- func (messageDB *MessageDB) CopyBasicFieldsFromMessageWOP(message *MessageWOP)
- func (messageDB *MessageDB) CopyBasicFieldsFromMessage_WOP(message *models.Message_WOP)
- func (messageDB *MessageDB) CopyBasicFieldsToMessage(message *models.Message)
- func (messageDB *MessageDB) CopyBasicFieldsToMessageWOP(message *MessageWOP)
- func (messageDB *MessageDB) CopyBasicFieldsToMessage_WOP(message *models.Message_WOP)
- func (messageDB *MessageDB) DecodePointers(backRepo *BackRepoStruct, message *models.Message)
- type MessageDBResponse
- type MessageDBs
- type MessagePointersEncoding
- type MessageWOP
- type OpsLineAPI
- type OpsLineDB
- func (opslineDB *OpsLineDB) CopyBasicFieldsFromOpsLine(opsline *models.OpsLine)
- func (opslineDB *OpsLineDB) CopyBasicFieldsFromOpsLineWOP(opsline *OpsLineWOP)
- func (opslineDB *OpsLineDB) CopyBasicFieldsFromOpsLine_WOP(opsline *models.OpsLine_WOP)
- func (opslineDB *OpsLineDB) CopyBasicFieldsToOpsLine(opsline *models.OpsLine)
- func (opslineDB *OpsLineDB) CopyBasicFieldsToOpsLineWOP(opsline *OpsLineWOP)
- func (opslineDB *OpsLineDB) CopyBasicFieldsToOpsLine_WOP(opsline *models.OpsLine_WOP)
- func (opslineDB *OpsLineDB) DecodePointers(backRepo *BackRepoStruct, opsline *models.OpsLine)
- type OpsLineDBResponse
- type OpsLineDBs
- type OpsLinePointersEncoding
- type OpsLineWOP
- type RadarAPI
- type RadarDB
- func (radarDB *RadarDB) CopyBasicFieldsFromRadar(radar *models.Radar)
- func (radarDB *RadarDB) CopyBasicFieldsFromRadarWOP(radar *RadarWOP)
- func (radarDB *RadarDB) CopyBasicFieldsFromRadar_WOP(radar *models.Radar_WOP)
- func (radarDB *RadarDB) CopyBasicFieldsToRadar(radar *models.Radar)
- func (radarDB *RadarDB) CopyBasicFieldsToRadarWOP(radar *RadarWOP)
- func (radarDB *RadarDB) CopyBasicFieldsToRadar_WOP(radar *models.Radar_WOP)
- func (radarDB *RadarDB) DecodePointers(backRepo *BackRepoStruct, radar *models.Radar)
- type RadarDBResponse
- type RadarDBs
- type RadarPointersEncoding
- type RadarWOP
- type SatelliteAPI
- type SatelliteDB
- func (satelliteDB *SatelliteDB) CopyBasicFieldsFromSatellite(satellite *models.Satellite)
- func (satelliteDB *SatelliteDB) CopyBasicFieldsFromSatelliteWOP(satellite *SatelliteWOP)
- func (satelliteDB *SatelliteDB) CopyBasicFieldsFromSatellite_WOP(satellite *models.Satellite_WOP)
- func (satelliteDB *SatelliteDB) CopyBasicFieldsToSatellite(satellite *models.Satellite)
- func (satelliteDB *SatelliteDB) CopyBasicFieldsToSatelliteWOP(satellite *SatelliteWOP)
- func (satelliteDB *SatelliteDB) CopyBasicFieldsToSatellite_WOP(satellite *models.Satellite_WOP)
- func (satelliteDB *SatelliteDB) DecodePointers(backRepo *BackRepoStruct, satellite *models.Satellite)
- type SatelliteDBResponse
- type SatelliteDBs
- type SatellitePointersEncoding
- type SatelliteWOP
- type ScenarioAPI
- type ScenarioDB
- func (scenarioDB *ScenarioDB) CopyBasicFieldsFromScenario(scenario *models.Scenario)
- func (scenarioDB *ScenarioDB) CopyBasicFieldsFromScenarioWOP(scenario *ScenarioWOP)
- func (scenarioDB *ScenarioDB) CopyBasicFieldsFromScenario_WOP(scenario *models.Scenario_WOP)
- func (scenarioDB *ScenarioDB) CopyBasicFieldsToScenario(scenario *models.Scenario)
- func (scenarioDB *ScenarioDB) CopyBasicFieldsToScenarioWOP(scenario *ScenarioWOP)
- func (scenarioDB *ScenarioDB) CopyBasicFieldsToScenario_WOP(scenario *models.Scenario_WOP)
- func (scenarioDB *ScenarioDB) DecodePointers(backRepo *BackRepoStruct, scenario *models.Scenario)
- type ScenarioDBResponse
- type ScenarioDBs
- type ScenarioPointersEncoding
- type ScenarioWOP
Constants ¶
This section is empty.
Variables ¶
var BackRepoCivilianAirportid_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 BackRepoLinerid_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 BackRepoMessageid_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 BackRepoOpsLineid_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 BackRepoRadarid_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 BackRepoSatelliteid_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 BackRepoScenarioid_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 CivilianAirport_Fields = []string{
"ID",
"Lat",
"Lng",
"Name",
}
var Liner_Fields = []string{
"ID",
"Name",
"Lat",
"Lng",
"Heading",
"Level",
"Speed",
"State",
"TargetHeading",
"TargetLocationLat",
"TargetLocationLng",
"DistanceToTarget",
"MaxRotationalSpeed",
"VerticalSpeed",
"Timestampstring",
}
var Message_Fields = []string{
"ID",
"Lat",
"Lng",
"Heading",
"Level",
"Speed",
"State",
"Name",
"TargetLocationLat",
"TargetLocationLng",
"DistanceToTarget",
"Timestampstring",
"DurationSinceSimulationStart",
"Timestampstartstring",
"Source",
"Destination",
"Content",
"About_string",
"Display",
}
var OpsLine_Fields = []string{
"ID",
"IsTransmitting",
"TransmissionMessage",
"IsTransmittingBackward",
"TransmissionMessageBackward",
"State",
"Name",
}
var Radar_Fields = []string{
"ID",
"State",
"Name",
"Lat",
"Lng",
"Range",
}
var Satellite_Fields = []string{
"ID",
"Name",
"Line1",
"Line2",
"Lat",
"Lng",
"Heading",
"Level",
"Speed",
"VerticalSpeed",
"Timestampstring",
}
var Scenario_Fields = []string{
"ID",
"Name",
"Lat",
"Lng",
"ZoomLevel",
"MessageVisualSpeed",
}
Functions ¶
func CopyBackRepoToBackRepoData ¶
func CopyBackRepoToBackRepoData(backRepo *BackRepoStruct, backRepoData *BackRepoData)
func GetID ¶
func GetID[T models.Gongstruct]( stage *models.StageStruct, backRepo *BackRepoStruct, instance *T) (id int)
func GetIDPointer ¶
func GetIDPointer[T models.PointerToGongstruct]( stage *models.StageStruct, backRepo *BackRepoStruct, instance T) (id int)
func GetInstanceDBFromInstance ¶
func GetInstanceDBFromInstance[T models.Gongstruct, T2 GongstructDB]( stage *models.StageStruct, backRepo *BackRepoStruct, instance *T) (ret *T2)
func GetReverseFieldOwner ¶
func GetReverseFieldOwner[T models.Gongstruct]( stage *models.StageStruct, backRepo *BackRepoStruct, instance *T, reverseField *models.ReverseField) (res any)
func GetReverseFieldOwnerName ¶
func GetReverseFieldOwnerName[T models.Gongstruct]( stage *models.StageStruct, backRepo *BackRepoStruct, instance *T, reverseField *models.ReverseField) (res string)
Types ¶
type BackRepoCivilianAirportStruct ¶
type BackRepoCivilianAirportStruct struct { // stores CivilianAirportDB according to their gorm ID Map_CivilianAirportDBID_CivilianAirportDB map[uint]*CivilianAirportDB // stores CivilianAirportDB ID according to CivilianAirport address Map_CivilianAirportPtr_CivilianAirportDBID map[*models.CivilianAirport]uint // stores CivilianAirport according to their gorm ID Map_CivilianAirportDBID_CivilianAirportPtr map[uint]*models.CivilianAirport // contains filtered or unexported fields }
func (*BackRepoCivilianAirportStruct) Backup ¶
func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) Backup(dirPath string)
Backup generates a json file from a slice of all CivilianAirportDB instances in the backrepo
func (*BackRepoCivilianAirportStruct) BackupXL ¶
func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all CivilianAirportDB instances in the backrepo
func (*BackRepoCivilianAirportStruct) CheckoutPhaseOne ¶
func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) CheckoutPhaseOne() (Error error)
BackRepoCivilianAirport.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 (*BackRepoCivilianAirportStruct) CheckoutPhaseOneInstance ¶
func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) CheckoutPhaseOneInstance(civilianairportDB *CivilianAirportDB) (Error error)
CheckoutPhaseOneInstance takes a civilianairportDB that has been found in the DB, updates the backRepo and stages the models version of the civilianairportDB
func (*BackRepoCivilianAirportStruct) CheckoutPhaseTwo ¶
func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoCivilianAirport.CheckoutPhaseTwo Checkouts all staged instances of CivilianAirport to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoCivilianAirportStruct) CheckoutPhaseTwoInstance ¶
func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, civilianairportDB *CivilianAirportDB) (Error error)
BackRepoCivilianAirport.CheckoutPhaseTwoInstance Checkouts staged instances of CivilianAirport to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoCivilianAirportStruct) CommitDeleteInstance ¶
func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoCivilianAirport.CommitDeleteInstance commits deletion of CivilianAirport to the BackRepo
func (*BackRepoCivilianAirportStruct) CommitPhaseOne ¶
func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoCivilianAirport.CommitPhaseOne commits all staged instances of CivilianAirport 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 (*BackRepoCivilianAirportStruct) CommitPhaseOneInstance ¶
func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) CommitPhaseOneInstance(civilianairport *models.CivilianAirport) (Error error)
BackRepoCivilianAirport.CommitPhaseOneInstance commits civilianairport staged instances of CivilianAirport 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 (*BackRepoCivilianAirportStruct) CommitPhaseTwo ¶
func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoCivilianAirport.CommitPhaseTwo commits all staged instances of CivilianAirport to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoCivilianAirportStruct) CommitPhaseTwoInstance ¶
func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, civilianairport *models.CivilianAirport) (Error error)
BackRepoCivilianAirport.CommitPhaseTwoInstance commits {{structname }} of models.CivilianAirport to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoCivilianAirportStruct) GetCivilianAirportDBFromCivilianAirportPtr ¶
func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) GetCivilianAirportDBFromCivilianAirportPtr(civilianairport *models.CivilianAirport) (civilianairportDB *CivilianAirportDB)
GetCivilianAirportDBFromCivilianAirportPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoCivilianAirportStruct) GetDB ¶
func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) GetDB() *gorm.DB
func (*BackRepoCivilianAirportStruct) GetStage ¶
func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoCivilianAirportStruct) ResetReversePointers ¶
func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoCivilianAirport.ResetReversePointers commits all staged instances of CivilianAirport to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoCivilianAirportStruct) ResetReversePointersInstance ¶
func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, civilianairport *models.CivilianAirport) (Error error)
func (*BackRepoCivilianAirportStruct) RestorePhaseOne ¶
func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "CivilianAirportDB.json" in dirPath that stores an array of CivilianAirportDB and stores it in the database the map BackRepoCivilianAirportid_atBckpTime_newID is updated accordingly
func (*BackRepoCivilianAirportStruct) RestorePhaseTwo ¶
func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<CivilianAirport>id_atBckpTime_newID to compute new index
func (*BackRepoCivilianAirportStruct) RestoreXLPhaseOne ¶
func (backRepoCivilianAirport *BackRepoCivilianAirportStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "CivilianAirport" sheet all CivilianAirportDB instances
type BackRepoData ¶
type BackRepoData struct { CivilianAirportAPIs []*CivilianAirportAPI LinerAPIs []*LinerAPI MessageAPIs []*MessageAPI OpsLineAPIs []*OpsLineAPI RadarAPIs []*RadarAPI SatelliteAPIs []*SatelliteAPI ScenarioAPIs []*ScenarioAPI }
type BackRepoLinerStruct ¶
type BackRepoLinerStruct struct { // stores LinerDB according to their gorm ID Map_LinerDBID_LinerDB map[uint]*LinerDB // stores LinerDB ID according to Liner address Map_LinerPtr_LinerDBID map[*models.Liner]uint // stores Liner according to their gorm ID Map_LinerDBID_LinerPtr map[uint]*models.Liner // contains filtered or unexported fields }
func (*BackRepoLinerStruct) Backup ¶
func (backRepoLiner *BackRepoLinerStruct) Backup(dirPath string)
Backup generates a json file from a slice of all LinerDB instances in the backrepo
func (*BackRepoLinerStruct) BackupXL ¶
func (backRepoLiner *BackRepoLinerStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all LinerDB instances in the backrepo
func (*BackRepoLinerStruct) CheckoutPhaseOne ¶
func (backRepoLiner *BackRepoLinerStruct) CheckoutPhaseOne() (Error error)
BackRepoLiner.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 (*BackRepoLinerStruct) CheckoutPhaseOneInstance ¶
func (backRepoLiner *BackRepoLinerStruct) CheckoutPhaseOneInstance(linerDB *LinerDB) (Error error)
CheckoutPhaseOneInstance takes a linerDB that has been found in the DB, updates the backRepo and stages the models version of the linerDB
func (*BackRepoLinerStruct) CheckoutPhaseTwo ¶
func (backRepoLiner *BackRepoLinerStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoLiner.CheckoutPhaseTwo Checkouts all staged instances of Liner to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLinerStruct) CheckoutPhaseTwoInstance ¶
func (backRepoLiner *BackRepoLinerStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, linerDB *LinerDB) (Error error)
BackRepoLiner.CheckoutPhaseTwoInstance Checkouts staged instances of Liner to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLinerStruct) CommitDeleteInstance ¶
func (backRepoLiner *BackRepoLinerStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoLiner.CommitDeleteInstance commits deletion of Liner to the BackRepo
func (*BackRepoLinerStruct) CommitPhaseOne ¶
func (backRepoLiner *BackRepoLinerStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoLiner.CommitPhaseOne commits all staged instances of Liner 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 (*BackRepoLinerStruct) CommitPhaseOneInstance ¶
func (backRepoLiner *BackRepoLinerStruct) CommitPhaseOneInstance(liner *models.Liner) (Error error)
BackRepoLiner.CommitPhaseOneInstance commits liner staged instances of Liner 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 (*BackRepoLinerStruct) CommitPhaseTwo ¶
func (backRepoLiner *BackRepoLinerStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoLiner.CommitPhaseTwo commits all staged instances of Liner to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLinerStruct) CommitPhaseTwoInstance ¶
func (backRepoLiner *BackRepoLinerStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, liner *models.Liner) (Error error)
BackRepoLiner.CommitPhaseTwoInstance commits {{structname }} of models.Liner to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLinerStruct) GetDB ¶
func (backRepoLiner *BackRepoLinerStruct) GetDB() *gorm.DB
func (*BackRepoLinerStruct) GetLinerDBFromLinerPtr ¶
func (backRepoLiner *BackRepoLinerStruct) GetLinerDBFromLinerPtr(liner *models.Liner) (linerDB *LinerDB)
GetLinerDBFromLinerPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoLinerStruct) GetStage ¶
func (backRepoLiner *BackRepoLinerStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoLinerStruct) ResetReversePointers ¶
func (backRepoLiner *BackRepoLinerStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoLiner.ResetReversePointers commits all staged instances of Liner to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoLinerStruct) ResetReversePointersInstance ¶
func (backRepoLiner *BackRepoLinerStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, liner *models.Liner) (Error error)
func (*BackRepoLinerStruct) RestorePhaseOne ¶
func (backRepoLiner *BackRepoLinerStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "LinerDB.json" in dirPath that stores an array of LinerDB and stores it in the database the map BackRepoLinerid_atBckpTime_newID is updated accordingly
func (*BackRepoLinerStruct) RestorePhaseTwo ¶
func (backRepoLiner *BackRepoLinerStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Liner>id_atBckpTime_newID to compute new index
func (*BackRepoLinerStruct) RestoreXLPhaseOne ¶
func (backRepoLiner *BackRepoLinerStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Liner" sheet all LinerDB instances
type BackRepoMessageStruct ¶
type BackRepoMessageStruct struct { // stores MessageDB according to their gorm ID Map_MessageDBID_MessageDB map[uint]*MessageDB // stores MessageDB ID according to Message address Map_MessagePtr_MessageDBID map[*models.Message]uint // stores Message according to their gorm ID Map_MessageDBID_MessagePtr map[uint]*models.Message // contains filtered or unexported fields }
func (*BackRepoMessageStruct) Backup ¶
func (backRepoMessage *BackRepoMessageStruct) Backup(dirPath string)
Backup generates a json file from a slice of all MessageDB instances in the backrepo
func (*BackRepoMessageStruct) BackupXL ¶
func (backRepoMessage *BackRepoMessageStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all MessageDB instances in the backrepo
func (*BackRepoMessageStruct) CheckoutPhaseOne ¶
func (backRepoMessage *BackRepoMessageStruct) CheckoutPhaseOne() (Error error)
BackRepoMessage.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 (*BackRepoMessageStruct) CheckoutPhaseOneInstance ¶
func (backRepoMessage *BackRepoMessageStruct) CheckoutPhaseOneInstance(messageDB *MessageDB) (Error error)
CheckoutPhaseOneInstance takes a messageDB that has been found in the DB, updates the backRepo and stages the models version of the messageDB
func (*BackRepoMessageStruct) CheckoutPhaseTwo ¶
func (backRepoMessage *BackRepoMessageStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoMessage.CheckoutPhaseTwo Checkouts all staged instances of Message to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoMessageStruct) CheckoutPhaseTwoInstance ¶
func (backRepoMessage *BackRepoMessageStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, messageDB *MessageDB) (Error error)
BackRepoMessage.CheckoutPhaseTwoInstance Checkouts staged instances of Message to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoMessageStruct) CommitDeleteInstance ¶
func (backRepoMessage *BackRepoMessageStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoMessage.CommitDeleteInstance commits deletion of Message to the BackRepo
func (*BackRepoMessageStruct) CommitPhaseOne ¶
func (backRepoMessage *BackRepoMessageStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoMessage.CommitPhaseOne commits all staged instances of Message 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 (*BackRepoMessageStruct) CommitPhaseOneInstance ¶
func (backRepoMessage *BackRepoMessageStruct) CommitPhaseOneInstance(message *models.Message) (Error error)
BackRepoMessage.CommitPhaseOneInstance commits message staged instances of Message 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 (*BackRepoMessageStruct) CommitPhaseTwo ¶
func (backRepoMessage *BackRepoMessageStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoMessage.CommitPhaseTwo commits all staged instances of Message to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoMessageStruct) CommitPhaseTwoInstance ¶
func (backRepoMessage *BackRepoMessageStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, message *models.Message) (Error error)
BackRepoMessage.CommitPhaseTwoInstance commits {{structname }} of models.Message to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoMessageStruct) GetDB ¶
func (backRepoMessage *BackRepoMessageStruct) GetDB() *gorm.DB
func (*BackRepoMessageStruct) GetMessageDBFromMessagePtr ¶
func (backRepoMessage *BackRepoMessageStruct) GetMessageDBFromMessagePtr(message *models.Message) (messageDB *MessageDB)
GetMessageDBFromMessagePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoMessageStruct) GetStage ¶
func (backRepoMessage *BackRepoMessageStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoMessageStruct) ResetReversePointers ¶
func (backRepoMessage *BackRepoMessageStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoMessage.ResetReversePointers commits all staged instances of Message to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoMessageStruct) ResetReversePointersInstance ¶
func (backRepoMessage *BackRepoMessageStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, message *models.Message) (Error error)
func (*BackRepoMessageStruct) RestorePhaseOne ¶
func (backRepoMessage *BackRepoMessageStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "MessageDB.json" in dirPath that stores an array of MessageDB and stores it in the database the map BackRepoMessageid_atBckpTime_newID is updated accordingly
func (*BackRepoMessageStruct) RestorePhaseTwo ¶
func (backRepoMessage *BackRepoMessageStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Message>id_atBckpTime_newID to compute new index
func (*BackRepoMessageStruct) RestoreXLPhaseOne ¶
func (backRepoMessage *BackRepoMessageStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Message" sheet all MessageDB instances
type BackRepoOpsLineStruct ¶
type BackRepoOpsLineStruct struct { // stores OpsLineDB according to their gorm ID Map_OpsLineDBID_OpsLineDB map[uint]*OpsLineDB // stores OpsLineDB ID according to OpsLine address Map_OpsLinePtr_OpsLineDBID map[*models.OpsLine]uint // stores OpsLine according to their gorm ID Map_OpsLineDBID_OpsLinePtr map[uint]*models.OpsLine // contains filtered or unexported fields }
func (*BackRepoOpsLineStruct) Backup ¶
func (backRepoOpsLine *BackRepoOpsLineStruct) Backup(dirPath string)
Backup generates a json file from a slice of all OpsLineDB instances in the backrepo
func (*BackRepoOpsLineStruct) BackupXL ¶
func (backRepoOpsLine *BackRepoOpsLineStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all OpsLineDB instances in the backrepo
func (*BackRepoOpsLineStruct) CheckoutPhaseOne ¶
func (backRepoOpsLine *BackRepoOpsLineStruct) CheckoutPhaseOne() (Error error)
BackRepoOpsLine.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 (*BackRepoOpsLineStruct) CheckoutPhaseOneInstance ¶
func (backRepoOpsLine *BackRepoOpsLineStruct) CheckoutPhaseOneInstance(opslineDB *OpsLineDB) (Error error)
CheckoutPhaseOneInstance takes a opslineDB that has been found in the DB, updates the backRepo and stages the models version of the opslineDB
func (*BackRepoOpsLineStruct) CheckoutPhaseTwo ¶
func (backRepoOpsLine *BackRepoOpsLineStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoOpsLine.CheckoutPhaseTwo Checkouts all staged instances of OpsLine to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoOpsLineStruct) CheckoutPhaseTwoInstance ¶
func (backRepoOpsLine *BackRepoOpsLineStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, opslineDB *OpsLineDB) (Error error)
BackRepoOpsLine.CheckoutPhaseTwoInstance Checkouts staged instances of OpsLine to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoOpsLineStruct) CommitDeleteInstance ¶
func (backRepoOpsLine *BackRepoOpsLineStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoOpsLine.CommitDeleteInstance commits deletion of OpsLine to the BackRepo
func (*BackRepoOpsLineStruct) CommitPhaseOne ¶
func (backRepoOpsLine *BackRepoOpsLineStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoOpsLine.CommitPhaseOne commits all staged instances of OpsLine 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 (*BackRepoOpsLineStruct) CommitPhaseOneInstance ¶
func (backRepoOpsLine *BackRepoOpsLineStruct) CommitPhaseOneInstance(opsline *models.OpsLine) (Error error)
BackRepoOpsLine.CommitPhaseOneInstance commits opsline staged instances of OpsLine 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 (*BackRepoOpsLineStruct) CommitPhaseTwo ¶
func (backRepoOpsLine *BackRepoOpsLineStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoOpsLine.CommitPhaseTwo commits all staged instances of OpsLine to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoOpsLineStruct) CommitPhaseTwoInstance ¶
func (backRepoOpsLine *BackRepoOpsLineStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, opsline *models.OpsLine) (Error error)
BackRepoOpsLine.CommitPhaseTwoInstance commits {{structname }} of models.OpsLine to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoOpsLineStruct) GetDB ¶
func (backRepoOpsLine *BackRepoOpsLineStruct) GetDB() *gorm.DB
func (*BackRepoOpsLineStruct) GetOpsLineDBFromOpsLinePtr ¶
func (backRepoOpsLine *BackRepoOpsLineStruct) GetOpsLineDBFromOpsLinePtr(opsline *models.OpsLine) (opslineDB *OpsLineDB)
GetOpsLineDBFromOpsLinePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoOpsLineStruct) GetStage ¶
func (backRepoOpsLine *BackRepoOpsLineStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoOpsLineStruct) ResetReversePointers ¶
func (backRepoOpsLine *BackRepoOpsLineStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoOpsLine.ResetReversePointers commits all staged instances of OpsLine to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoOpsLineStruct) ResetReversePointersInstance ¶
func (backRepoOpsLine *BackRepoOpsLineStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, opsline *models.OpsLine) (Error error)
func (*BackRepoOpsLineStruct) RestorePhaseOne ¶
func (backRepoOpsLine *BackRepoOpsLineStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "OpsLineDB.json" in dirPath that stores an array of OpsLineDB and stores it in the database the map BackRepoOpsLineid_atBckpTime_newID is updated accordingly
func (*BackRepoOpsLineStruct) RestorePhaseTwo ¶
func (backRepoOpsLine *BackRepoOpsLineStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<OpsLine>id_atBckpTime_newID to compute new index
func (*BackRepoOpsLineStruct) RestoreXLPhaseOne ¶
func (backRepoOpsLine *BackRepoOpsLineStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "OpsLine" sheet all OpsLineDB instances
type BackRepoRadarStruct ¶
type BackRepoRadarStruct struct { // stores RadarDB according to their gorm ID Map_RadarDBID_RadarDB map[uint]*RadarDB // stores RadarDB ID according to Radar address Map_RadarPtr_RadarDBID map[*models.Radar]uint // stores Radar according to their gorm ID Map_RadarDBID_RadarPtr map[uint]*models.Radar // contains filtered or unexported fields }
func (*BackRepoRadarStruct) Backup ¶
func (backRepoRadar *BackRepoRadarStruct) Backup(dirPath string)
Backup generates a json file from a slice of all RadarDB instances in the backrepo
func (*BackRepoRadarStruct) BackupXL ¶
func (backRepoRadar *BackRepoRadarStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all RadarDB instances in the backrepo
func (*BackRepoRadarStruct) CheckoutPhaseOne ¶
func (backRepoRadar *BackRepoRadarStruct) CheckoutPhaseOne() (Error error)
BackRepoRadar.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 (*BackRepoRadarStruct) CheckoutPhaseOneInstance ¶
func (backRepoRadar *BackRepoRadarStruct) CheckoutPhaseOneInstance(radarDB *RadarDB) (Error error)
CheckoutPhaseOneInstance takes a radarDB that has been found in the DB, updates the backRepo and stages the models version of the radarDB
func (*BackRepoRadarStruct) CheckoutPhaseTwo ¶
func (backRepoRadar *BackRepoRadarStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoRadar.CheckoutPhaseTwo Checkouts all staged instances of Radar to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoRadarStruct) CheckoutPhaseTwoInstance ¶
func (backRepoRadar *BackRepoRadarStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, radarDB *RadarDB) (Error error)
BackRepoRadar.CheckoutPhaseTwoInstance Checkouts staged instances of Radar to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoRadarStruct) CommitDeleteInstance ¶
func (backRepoRadar *BackRepoRadarStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoRadar.CommitDeleteInstance commits deletion of Radar to the BackRepo
func (*BackRepoRadarStruct) CommitPhaseOne ¶
func (backRepoRadar *BackRepoRadarStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoRadar.CommitPhaseOne commits all staged instances of Radar 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 (*BackRepoRadarStruct) CommitPhaseOneInstance ¶
func (backRepoRadar *BackRepoRadarStruct) CommitPhaseOneInstance(radar *models.Radar) (Error error)
BackRepoRadar.CommitPhaseOneInstance commits radar staged instances of Radar 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 (*BackRepoRadarStruct) CommitPhaseTwo ¶
func (backRepoRadar *BackRepoRadarStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoRadar.CommitPhaseTwo commits all staged instances of Radar to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoRadarStruct) CommitPhaseTwoInstance ¶
func (backRepoRadar *BackRepoRadarStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, radar *models.Radar) (Error error)
BackRepoRadar.CommitPhaseTwoInstance commits {{structname }} of models.Radar to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoRadarStruct) GetDB ¶
func (backRepoRadar *BackRepoRadarStruct) GetDB() *gorm.DB
func (*BackRepoRadarStruct) GetRadarDBFromRadarPtr ¶
func (backRepoRadar *BackRepoRadarStruct) GetRadarDBFromRadarPtr(radar *models.Radar) (radarDB *RadarDB)
GetRadarDBFromRadarPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoRadarStruct) GetStage ¶
func (backRepoRadar *BackRepoRadarStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoRadarStruct) ResetReversePointers ¶
func (backRepoRadar *BackRepoRadarStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoRadar.ResetReversePointers commits all staged instances of Radar to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoRadarStruct) ResetReversePointersInstance ¶
func (backRepoRadar *BackRepoRadarStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, radar *models.Radar) (Error error)
func (*BackRepoRadarStruct) RestorePhaseOne ¶
func (backRepoRadar *BackRepoRadarStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "RadarDB.json" in dirPath that stores an array of RadarDB and stores it in the database the map BackRepoRadarid_atBckpTime_newID is updated accordingly
func (*BackRepoRadarStruct) RestorePhaseTwo ¶
func (backRepoRadar *BackRepoRadarStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Radar>id_atBckpTime_newID to compute new index
func (*BackRepoRadarStruct) RestoreXLPhaseOne ¶
func (backRepoRadar *BackRepoRadarStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Radar" sheet all RadarDB instances
type BackRepoSatelliteStruct ¶
type BackRepoSatelliteStruct struct { // stores SatelliteDB according to their gorm ID Map_SatelliteDBID_SatelliteDB map[uint]*SatelliteDB // stores SatelliteDB ID according to Satellite address Map_SatellitePtr_SatelliteDBID map[*models.Satellite]uint // stores Satellite according to their gorm ID Map_SatelliteDBID_SatellitePtr map[uint]*models.Satellite // contains filtered or unexported fields }
func (*BackRepoSatelliteStruct) Backup ¶
func (backRepoSatellite *BackRepoSatelliteStruct) Backup(dirPath string)
Backup generates a json file from a slice of all SatelliteDB instances in the backrepo
func (*BackRepoSatelliteStruct) BackupXL ¶
func (backRepoSatellite *BackRepoSatelliteStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all SatelliteDB instances in the backrepo
func (*BackRepoSatelliteStruct) CheckoutPhaseOne ¶
func (backRepoSatellite *BackRepoSatelliteStruct) CheckoutPhaseOne() (Error error)
BackRepoSatellite.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 (*BackRepoSatelliteStruct) CheckoutPhaseOneInstance ¶
func (backRepoSatellite *BackRepoSatelliteStruct) CheckoutPhaseOneInstance(satelliteDB *SatelliteDB) (Error error)
CheckoutPhaseOneInstance takes a satelliteDB that has been found in the DB, updates the backRepo and stages the models version of the satelliteDB
func (*BackRepoSatelliteStruct) CheckoutPhaseTwo ¶
func (backRepoSatellite *BackRepoSatelliteStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoSatellite.CheckoutPhaseTwo Checkouts all staged instances of Satellite to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSatelliteStruct) CheckoutPhaseTwoInstance ¶
func (backRepoSatellite *BackRepoSatelliteStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, satelliteDB *SatelliteDB) (Error error)
BackRepoSatellite.CheckoutPhaseTwoInstance Checkouts staged instances of Satellite to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSatelliteStruct) CommitDeleteInstance ¶
func (backRepoSatellite *BackRepoSatelliteStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoSatellite.CommitDeleteInstance commits deletion of Satellite to the BackRepo
func (*BackRepoSatelliteStruct) CommitPhaseOne ¶
func (backRepoSatellite *BackRepoSatelliteStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoSatellite.CommitPhaseOne commits all staged instances of Satellite 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 (*BackRepoSatelliteStruct) CommitPhaseOneInstance ¶
func (backRepoSatellite *BackRepoSatelliteStruct) CommitPhaseOneInstance(satellite *models.Satellite) (Error error)
BackRepoSatellite.CommitPhaseOneInstance commits satellite staged instances of Satellite 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 (*BackRepoSatelliteStruct) CommitPhaseTwo ¶
func (backRepoSatellite *BackRepoSatelliteStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoSatellite.CommitPhaseTwo commits all staged instances of Satellite to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSatelliteStruct) CommitPhaseTwoInstance ¶
func (backRepoSatellite *BackRepoSatelliteStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, satellite *models.Satellite) (Error error)
BackRepoSatellite.CommitPhaseTwoInstance commits {{structname }} of models.Satellite to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSatelliteStruct) GetDB ¶
func (backRepoSatellite *BackRepoSatelliteStruct) GetDB() *gorm.DB
func (*BackRepoSatelliteStruct) GetSatelliteDBFromSatellitePtr ¶
func (backRepoSatellite *BackRepoSatelliteStruct) GetSatelliteDBFromSatellitePtr(satellite *models.Satellite) (satelliteDB *SatelliteDB)
GetSatelliteDBFromSatellitePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoSatelliteStruct) GetStage ¶
func (backRepoSatellite *BackRepoSatelliteStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoSatelliteStruct) ResetReversePointers ¶
func (backRepoSatellite *BackRepoSatelliteStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoSatellite.ResetReversePointers commits all staged instances of Satellite to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSatelliteStruct) ResetReversePointersInstance ¶
func (backRepoSatellite *BackRepoSatelliteStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, satellite *models.Satellite) (Error error)
func (*BackRepoSatelliteStruct) RestorePhaseOne ¶
func (backRepoSatellite *BackRepoSatelliteStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "SatelliteDB.json" in dirPath that stores an array of SatelliteDB and stores it in the database the map BackRepoSatelliteid_atBckpTime_newID is updated accordingly
func (*BackRepoSatelliteStruct) RestorePhaseTwo ¶
func (backRepoSatellite *BackRepoSatelliteStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Satellite>id_atBckpTime_newID to compute new index
func (*BackRepoSatelliteStruct) RestoreXLPhaseOne ¶
func (backRepoSatellite *BackRepoSatelliteStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Satellite" sheet all SatelliteDB instances
type BackRepoScenarioStruct ¶
type BackRepoScenarioStruct struct { // stores ScenarioDB according to their gorm ID Map_ScenarioDBID_ScenarioDB map[uint]*ScenarioDB // stores ScenarioDB ID according to Scenario address Map_ScenarioPtr_ScenarioDBID map[*models.Scenario]uint // stores Scenario according to their gorm ID Map_ScenarioDBID_ScenarioPtr map[uint]*models.Scenario // contains filtered or unexported fields }
func (*BackRepoScenarioStruct) Backup ¶
func (backRepoScenario *BackRepoScenarioStruct) Backup(dirPath string)
Backup generates a json file from a slice of all ScenarioDB instances in the backrepo
func (*BackRepoScenarioStruct) BackupXL ¶
func (backRepoScenario *BackRepoScenarioStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all ScenarioDB instances in the backrepo
func (*BackRepoScenarioStruct) CheckoutPhaseOne ¶
func (backRepoScenario *BackRepoScenarioStruct) CheckoutPhaseOne() (Error error)
BackRepoScenario.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 (*BackRepoScenarioStruct) CheckoutPhaseOneInstance ¶
func (backRepoScenario *BackRepoScenarioStruct) CheckoutPhaseOneInstance(scenarioDB *ScenarioDB) (Error error)
CheckoutPhaseOneInstance takes a scenarioDB that has been found in the DB, updates the backRepo and stages the models version of the scenarioDB
func (*BackRepoScenarioStruct) CheckoutPhaseTwo ¶
func (backRepoScenario *BackRepoScenarioStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoScenario.CheckoutPhaseTwo Checkouts all staged instances of Scenario to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoScenarioStruct) CheckoutPhaseTwoInstance ¶
func (backRepoScenario *BackRepoScenarioStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, scenarioDB *ScenarioDB) (Error error)
BackRepoScenario.CheckoutPhaseTwoInstance Checkouts staged instances of Scenario to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoScenarioStruct) CommitDeleteInstance ¶
func (backRepoScenario *BackRepoScenarioStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoScenario.CommitDeleteInstance commits deletion of Scenario to the BackRepo
func (*BackRepoScenarioStruct) CommitPhaseOne ¶
func (backRepoScenario *BackRepoScenarioStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoScenario.CommitPhaseOne commits all staged instances of Scenario 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 (*BackRepoScenarioStruct) CommitPhaseOneInstance ¶
func (backRepoScenario *BackRepoScenarioStruct) CommitPhaseOneInstance(scenario *models.Scenario) (Error error)
BackRepoScenario.CommitPhaseOneInstance commits scenario staged instances of Scenario 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 (*BackRepoScenarioStruct) CommitPhaseTwo ¶
func (backRepoScenario *BackRepoScenarioStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoScenario.CommitPhaseTwo commits all staged instances of Scenario to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoScenarioStruct) CommitPhaseTwoInstance ¶
func (backRepoScenario *BackRepoScenarioStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, scenario *models.Scenario) (Error error)
BackRepoScenario.CommitPhaseTwoInstance commits {{structname }} of models.Scenario to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoScenarioStruct) GetDB ¶
func (backRepoScenario *BackRepoScenarioStruct) GetDB() *gorm.DB
func (*BackRepoScenarioStruct) GetScenarioDBFromScenarioPtr ¶
func (backRepoScenario *BackRepoScenarioStruct) GetScenarioDBFromScenarioPtr(scenario *models.Scenario) (scenarioDB *ScenarioDB)
GetScenarioDBFromScenarioPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoScenarioStruct) GetStage ¶
func (backRepoScenario *BackRepoScenarioStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoScenarioStruct) ResetReversePointers ¶
func (backRepoScenario *BackRepoScenarioStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoScenario.ResetReversePointers commits all staged instances of Scenario to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoScenarioStruct) ResetReversePointersInstance ¶
func (backRepoScenario *BackRepoScenarioStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, scenario *models.Scenario) (Error error)
func (*BackRepoScenarioStruct) RestorePhaseOne ¶
func (backRepoScenario *BackRepoScenarioStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "ScenarioDB.json" in dirPath that stores an array of ScenarioDB and stores it in the database the map BackRepoScenarioid_atBckpTime_newID is updated accordingly
func (*BackRepoScenarioStruct) RestorePhaseTwo ¶
func (backRepoScenario *BackRepoScenarioStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Scenario>id_atBckpTime_newID to compute new index
func (*BackRepoScenarioStruct) RestoreXLPhaseOne ¶
func (backRepoScenario *BackRepoScenarioStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Scenario" sheet all ScenarioDB instances
type BackRepoStruct ¶
type BackRepoStruct struct { // insertion point for per struct back repo declarations BackRepoCivilianAirport BackRepoCivilianAirportStruct BackRepoLiner BackRepoLinerStruct BackRepoMessage BackRepoMessageStruct BackRepoOpsLine BackRepoOpsLineStruct BackRepoRadar BackRepoRadarStruct BackRepoSatellite BackRepoSatelliteStruct BackRepoScenario BackRepoScenarioStruct 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.StageStruct, filename string) (backRepo *BackRepoStruct)
func (*BackRepoStruct) Backup ¶
func (backRepo *BackRepoStruct) Backup(stage *models.StageStruct, dirPath string)
Backup the BackRepoStruct
func (*BackRepoStruct) BackupXL ¶
func (backRepo *BackRepoStruct) BackupXL(stage *models.StageStruct, dirPath string)
Backup in XL the BackRepoStruct
func (*BackRepoStruct) Checkout ¶
func (backRepo *BackRepoStruct) Checkout(stage *models.StageStruct)
Checkout the database into the stage
func (*BackRepoStruct) CheckoutCivilianAirport ¶
func (backRepo *BackRepoStruct) CheckoutCivilianAirport(civilianairport *models.CivilianAirport)
CommitCivilianAirport allows checkout of a single civilianairport (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutLiner ¶
func (backRepo *BackRepoStruct) CheckoutLiner(liner *models.Liner)
CommitLiner allows checkout of a single liner (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutMessage ¶
func (backRepo *BackRepoStruct) CheckoutMessage(message *models.Message)
CommitMessage allows checkout of a single message (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutOpsLine ¶
func (backRepo *BackRepoStruct) CheckoutOpsLine(opsline *models.OpsLine)
CommitOpsLine allows checkout of a single opsline (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutRadar ¶
func (backRepo *BackRepoStruct) CheckoutRadar(radar *models.Radar)
CommitRadar allows checkout of a single radar (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutSatellite ¶
func (backRepo *BackRepoStruct) CheckoutSatellite(satellite *models.Satellite)
CommitSatellite allows checkout of a single satellite (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutScenario ¶
func (backRepo *BackRepoStruct) CheckoutScenario(scenario *models.Scenario)
CommitScenario allows checkout of a single scenario (if already staged and with a BackRepo id)
func (*BackRepoStruct) Commit ¶
func (backRepo *BackRepoStruct) Commit(stage *models.StageStruct)
Commit the BackRepoStruct inner variables and link to the database
func (*BackRepoStruct) CommitCivilianAirport ¶
func (backRepo *BackRepoStruct) CommitCivilianAirport(civilianairport *models.CivilianAirport)
CommitCivilianAirport allows commit of a single civilianairport (if already staged)
func (*BackRepoStruct) CommitLiner ¶
func (backRepo *BackRepoStruct) CommitLiner(liner *models.Liner)
CommitLiner allows commit of a single liner (if already staged)
func (*BackRepoStruct) CommitMessage ¶
func (backRepo *BackRepoStruct) CommitMessage(message *models.Message)
CommitMessage allows commit of a single message (if already staged)
func (*BackRepoStruct) CommitOpsLine ¶
func (backRepo *BackRepoStruct) CommitOpsLine(opsline *models.OpsLine)
CommitOpsLine allows commit of a single opsline (if already staged)
func (*BackRepoStruct) CommitRadar ¶
func (backRepo *BackRepoStruct) CommitRadar(radar *models.Radar)
CommitRadar allows commit of a single radar (if already staged)
func (*BackRepoStruct) CommitSatellite ¶
func (backRepo *BackRepoStruct) CommitSatellite(satellite *models.Satellite)
CommitSatellite allows commit of a single satellite (if already staged)
func (*BackRepoStruct) CommitScenario ¶
func (backRepo *BackRepoStruct) CommitScenario(scenario *models.Scenario)
CommitScenario allows commit of a single scenario (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.StageStruct)
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.StageStruct, dirPath string)
Restore the database into the back repo
func (*BackRepoStruct) RestoreXL ¶
func (backRepo *BackRepoStruct) RestoreXL(stage *models.StageStruct, dirPath string)
Restore the database into the back repo
func (*BackRepoStruct) SubscribeToCommitNb ¶
func (backRepoStruct *BackRepoStruct) SubscribeToCommitNb() <-chan int
type CivilianAirportAPI ¶
type CivilianAirportAPI struct { gorm.Model models.CivilianAirport_WOP // encoding of pointers // for API, it cannot be embedded CivilianAirportPointersEncoding CivilianAirportPointersEncoding }
CivilianAirportAPI 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 civilianairportAPI
type CivilianAirportDB ¶
type CivilianAirportDB struct { gorm.Model // Declation for basic field civilianairportDB.Lat Lat_Data sql.NullFloat64 // Declation for basic field civilianairportDB.Lng Lng_Data sql.NullFloat64 // Declation for basic field civilianairportDB.Name Name_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration CivilianAirportPointersEncoding }
CivilianAirportDB describes a civilianairport 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 civilianairportDB
func (*CivilianAirportDB) CopyBasicFieldsFromCivilianAirport ¶
func (civilianairportDB *CivilianAirportDB) CopyBasicFieldsFromCivilianAirport(civilianairport *models.CivilianAirport)
CopyBasicFieldsFromCivilianAirport
func (*CivilianAirportDB) CopyBasicFieldsFromCivilianAirportWOP ¶
func (civilianairportDB *CivilianAirportDB) CopyBasicFieldsFromCivilianAirportWOP(civilianairport *CivilianAirportWOP)
CopyBasicFieldsFromCivilianAirportWOP
func (*CivilianAirportDB) CopyBasicFieldsFromCivilianAirport_WOP ¶
func (civilianairportDB *CivilianAirportDB) CopyBasicFieldsFromCivilianAirport_WOP(civilianairport *models.CivilianAirport_WOP)
CopyBasicFieldsFromCivilianAirport_WOP
func (*CivilianAirportDB) CopyBasicFieldsToCivilianAirport ¶
func (civilianairportDB *CivilianAirportDB) CopyBasicFieldsToCivilianAirport(civilianairport *models.CivilianAirport)
CopyBasicFieldsToCivilianAirport
func (*CivilianAirportDB) CopyBasicFieldsToCivilianAirportWOP ¶
func (civilianairportDB *CivilianAirportDB) CopyBasicFieldsToCivilianAirportWOP(civilianairport *CivilianAirportWOP)
CopyBasicFieldsToCivilianAirportWOP
func (*CivilianAirportDB) CopyBasicFieldsToCivilianAirport_WOP ¶
func (civilianairportDB *CivilianAirportDB) CopyBasicFieldsToCivilianAirport_WOP(civilianairport *models.CivilianAirport_WOP)
CopyBasicFieldsToCivilianAirport_WOP
func (*CivilianAirportDB) DecodePointers ¶
func (civilianairportDB *CivilianAirportDB) DecodePointers(backRepo *BackRepoStruct, civilianairport *models.CivilianAirport)
type CivilianAirportDBResponse ¶
type CivilianAirportDBResponse struct {
CivilianAirportDB
}
CivilianAirportDBResponse provides response swagger:response civilianairportDBResponse
type CivilianAirportDBs ¶
type CivilianAirportDBs []CivilianAirportDB
CivilianAirportDBs arrays civilianairportDBs swagger:response civilianairportDBsResponse
type CivilianAirportPointersEncoding ¶
type CivilianAirportPointersEncoding struct { }
CivilianAirportPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type CivilianAirportWOP ¶
type CivilianAirportWOP struct { ID int `xlsx:"0"` Lat float64 `xlsx:"1"` Lng float64 `xlsx:"2"` Name string `xlsx:"3"` }
CivilianAirportWOP is a CivilianAirport 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 { // insertion point for generic types // "int" is present to handle the case when no struct is present int | CivilianAirportDB | LinerDB | MessageDB | OpsLineDB | RadarDB | SatelliteDB | ScenarioDB }
type IntSlice ¶
type IntSlice []int
type LinerAPI ¶
type LinerAPI struct { gorm.Model models.Liner_WOP // encoding of pointers // for API, it cannot be embedded LinerPointersEncoding LinerPointersEncoding }
LinerAPI 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 linerAPI
type LinerDB ¶
type LinerDB struct { gorm.Model // Declation for basic field linerDB.Name Name_Data sql.NullString // Declation for basic field linerDB.Lat Lat_Data sql.NullFloat64 // Declation for basic field linerDB.Lng Lng_Data sql.NullFloat64 // Declation for basic field linerDB.Heading Heading_Data sql.NullFloat64 // Declation for basic field linerDB.Level Level_Data sql.NullFloat64 // Declation for basic field linerDB.Speed Speed_Data sql.NullFloat64 // Declation for basic field linerDB.State State_Data sql.NullString // Declation for basic field linerDB.TargetHeading TargetHeading_Data sql.NullFloat64 // Declation for basic field linerDB.TargetLocationLat TargetLocationLat_Data sql.NullFloat64 // Declation for basic field linerDB.TargetLocationLng TargetLocationLng_Data sql.NullFloat64 // Declation for basic field linerDB.DistanceToTarget DistanceToTarget_Data sql.NullFloat64 // Declation for basic field linerDB.MaxRotationalSpeed MaxRotationalSpeed_Data sql.NullFloat64 // Declation for basic field linerDB.VerticalSpeed VerticalSpeed_Data sql.NullFloat64 // Declation for basic field linerDB.Timestampstring Timestampstring_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration LinerPointersEncoding }
LinerDB describes a liner 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 linerDB
func (*LinerDB) CopyBasicFieldsFromLiner ¶
CopyBasicFieldsFromLiner
func (*LinerDB) CopyBasicFieldsFromLinerWOP ¶
CopyBasicFieldsFromLinerWOP
func (*LinerDB) CopyBasicFieldsFromLiner_WOP ¶
CopyBasicFieldsFromLiner_WOP
func (*LinerDB) CopyBasicFieldsToLiner ¶
CopyBasicFieldsToLiner
func (*LinerDB) CopyBasicFieldsToLinerWOP ¶
CopyBasicFieldsToLinerWOP
func (*LinerDB) CopyBasicFieldsToLiner_WOP ¶
CopyBasicFieldsToLiner_WOP
func (*LinerDB) DecodePointers ¶
func (linerDB *LinerDB) DecodePointers(backRepo *BackRepoStruct, liner *models.Liner)
type LinerDBResponse ¶
type LinerDBResponse struct {
LinerDB
}
LinerDBResponse provides response swagger:response linerDBResponse
type LinerPointersEncoding ¶
type LinerPointersEncoding struct { // field ReporingLine is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association ReporingLineID sql.NullInt64 }
LinerPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type LinerWOP ¶
type LinerWOP struct { ID int `xlsx:"0"` Name string `xlsx:"1"` Lat float64 `xlsx:"2"` Lng float64 `xlsx:"3"` Heading float64 `xlsx:"4"` Level float64 `xlsx:"5"` Speed float64 `xlsx:"6"` State models.LinerStateEnum `xlsx:"7"` TargetHeading float64 `xlsx:"8"` TargetLocationLat float64 `xlsx:"9"` TargetLocationLng float64 `xlsx:"10"` DistanceToTarget float64 `xlsx:"11"` MaxRotationalSpeed float64 `xlsx:"12"` VerticalSpeed float64 `xlsx:"13"` Timestampstring string `xlsx:"14"` }
LinerWOP is a Liner without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type MessageAPI ¶
type MessageAPI struct { gorm.Model models.Message_WOP // encoding of pointers // for API, it cannot be embedded MessagePointersEncoding MessagePointersEncoding }
MessageAPI 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 messageAPI
type MessageDB ¶
type MessageDB struct { gorm.Model // Declation for basic field messageDB.Lat Lat_Data sql.NullFloat64 // Declation for basic field messageDB.Lng Lng_Data sql.NullFloat64 // Declation for basic field messageDB.Heading Heading_Data sql.NullFloat64 // Declation for basic field messageDB.Level Level_Data sql.NullFloat64 // Declation for basic field messageDB.Speed Speed_Data sql.NullFloat64 // Declation for basic field messageDB.State State_Data sql.NullString // Declation for basic field messageDB.Name Name_Data sql.NullString // Declation for basic field messageDB.TargetLocationLat TargetLocationLat_Data sql.NullFloat64 // Declation for basic field messageDB.TargetLocationLng TargetLocationLng_Data sql.NullFloat64 // Declation for basic field messageDB.DistanceToTarget DistanceToTarget_Data sql.NullFloat64 // Declation for basic field messageDB.Timestampstring Timestampstring_Data sql.NullString // Declation for basic field messageDB.DurationSinceSimulationStart DurationSinceSimulationStart_Data sql.NullInt64 // Declation for basic field messageDB.Timestampstartstring Timestampstartstring_Data sql.NullString // Declation for basic field messageDB.Source Source_Data sql.NullString // Declation for basic field messageDB.Destination Destination_Data sql.NullString // Declation for basic field messageDB.Content Content_Data sql.NullString // Declation for basic field messageDB.About_string About_string_Data sql.NullString // Declation for basic field messageDB.Display // provide the sql storage for the boolan Display_Data sql.NullBool // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration MessagePointersEncoding }
MessageDB describes a message 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 messageDB
func (*MessageDB) CopyBasicFieldsFromMessage ¶
CopyBasicFieldsFromMessage
func (*MessageDB) CopyBasicFieldsFromMessageWOP ¶
func (messageDB *MessageDB) CopyBasicFieldsFromMessageWOP(message *MessageWOP)
CopyBasicFieldsFromMessageWOP
func (*MessageDB) CopyBasicFieldsFromMessage_WOP ¶
func (messageDB *MessageDB) CopyBasicFieldsFromMessage_WOP(message *models.Message_WOP)
CopyBasicFieldsFromMessage_WOP
func (*MessageDB) CopyBasicFieldsToMessage ¶
CopyBasicFieldsToMessage
func (*MessageDB) CopyBasicFieldsToMessageWOP ¶
func (messageDB *MessageDB) CopyBasicFieldsToMessageWOP(message *MessageWOP)
CopyBasicFieldsToMessageWOP
func (*MessageDB) CopyBasicFieldsToMessage_WOP ¶
func (messageDB *MessageDB) CopyBasicFieldsToMessage_WOP(message *models.Message_WOP)
CopyBasicFieldsToMessage_WOP
func (*MessageDB) DecodePointers ¶
func (messageDB *MessageDB) DecodePointers(backRepo *BackRepoStruct, message *models.Message)
type MessageDBResponse ¶
type MessageDBResponse struct {
MessageDB
}
MessageDBResponse provides response swagger:response messageDBResponse
type MessageDBs ¶
type MessageDBs []MessageDB
MessageDBs arrays messageDBs swagger:response messageDBsResponse
type MessagePointersEncoding ¶
type MessagePointersEncoding struct { }
MessagePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type MessageWOP ¶
type MessageWOP struct { ID int `xlsx:"0"` Lat float64 `xlsx:"1"` Lng float64 `xlsx:"2"` Heading float64 `xlsx:"3"` Level float64 `xlsx:"4"` Speed float64 `xlsx:"5"` State models.MessageStateEnum `xlsx:"6"` Name string `xlsx:"7"` TargetLocationLat float64 `xlsx:"8"` TargetLocationLng float64 `xlsx:"9"` DistanceToTarget float64 `xlsx:"10"` Timestampstring string `xlsx:"11"` DurationSinceSimulationStart time.Duration `xlsx:"12"` Timestampstartstring string `xlsx:"13"` Source string `xlsx:"14"` Destination string `xlsx:"15"` Content string `xlsx:"16"` About_string string `xlsx:"17"` Display bool `xlsx:"18"` }
MessageWOP is a Message without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type OpsLineAPI ¶
type OpsLineAPI struct { gorm.Model models.OpsLine_WOP // encoding of pointers // for API, it cannot be embedded OpsLinePointersEncoding OpsLinePointersEncoding }
OpsLineAPI 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 opslineAPI
type OpsLineDB ¶
type OpsLineDB struct { gorm.Model // Declation for basic field opslineDB.IsTransmitting // provide the sql storage for the boolan IsTransmitting_Data sql.NullBool // Declation for basic field opslineDB.TransmissionMessage TransmissionMessage_Data sql.NullString // Declation for basic field opslineDB.IsTransmittingBackward // provide the sql storage for the boolan IsTransmittingBackward_Data sql.NullBool // Declation for basic field opslineDB.TransmissionMessageBackward TransmissionMessageBackward_Data sql.NullString // Declation for basic field opslineDB.State State_Data sql.NullString // Declation for basic field opslineDB.Name Name_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration OpsLinePointersEncoding }
OpsLineDB describes a opsline 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 opslineDB
func (*OpsLineDB) CopyBasicFieldsFromOpsLine ¶
CopyBasicFieldsFromOpsLine
func (*OpsLineDB) CopyBasicFieldsFromOpsLineWOP ¶
func (opslineDB *OpsLineDB) CopyBasicFieldsFromOpsLineWOP(opsline *OpsLineWOP)
CopyBasicFieldsFromOpsLineWOP
func (*OpsLineDB) CopyBasicFieldsFromOpsLine_WOP ¶
func (opslineDB *OpsLineDB) CopyBasicFieldsFromOpsLine_WOP(opsline *models.OpsLine_WOP)
CopyBasicFieldsFromOpsLine_WOP
func (*OpsLineDB) CopyBasicFieldsToOpsLine ¶
CopyBasicFieldsToOpsLine
func (*OpsLineDB) CopyBasicFieldsToOpsLineWOP ¶
func (opslineDB *OpsLineDB) CopyBasicFieldsToOpsLineWOP(opsline *OpsLineWOP)
CopyBasicFieldsToOpsLineWOP
func (*OpsLineDB) CopyBasicFieldsToOpsLine_WOP ¶
func (opslineDB *OpsLineDB) CopyBasicFieldsToOpsLine_WOP(opsline *models.OpsLine_WOP)
CopyBasicFieldsToOpsLine_WOP
func (*OpsLineDB) DecodePointers ¶
func (opslineDB *OpsLineDB) DecodePointers(backRepo *BackRepoStruct, opsline *models.OpsLine)
type OpsLineDBResponse ¶
type OpsLineDBResponse struct {
OpsLineDB
}
OpsLineDBResponse provides response swagger:response opslineDBResponse
type OpsLineDBs ¶
type OpsLineDBs []OpsLineDB
OpsLineDBs arrays opslineDBs swagger:response opslineDBsResponse
type OpsLinePointersEncoding ¶
type OpsLinePointersEncoding struct { // field Scenario is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association ScenarioID sql.NullInt64 }
OpsLinePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type OpsLineWOP ¶
type OpsLineWOP struct { ID int `xlsx:"0"` IsTransmitting bool `xlsx:"1"` TransmissionMessage string `xlsx:"2"` IsTransmittingBackward bool `xlsx:"3"` TransmissionMessageBackward string `xlsx:"4"` State models.OperationalLineStateEnum `xlsx:"5"` Name string `xlsx:"6"` }
OpsLineWOP is a OpsLine without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type RadarAPI ¶
type RadarAPI struct { gorm.Model models.Radar_WOP // encoding of pointers // for API, it cannot be embedded RadarPointersEncoding RadarPointersEncoding }
RadarAPI 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 radarAPI
type RadarDB ¶
type RadarDB struct { gorm.Model // Declation for basic field radarDB.State State_Data sql.NullString // Declation for basic field radarDB.Name Name_Data sql.NullString // Declation for basic field radarDB.Lat Lat_Data sql.NullFloat64 // Declation for basic field radarDB.Lng Lng_Data sql.NullFloat64 // Declation for basic field radarDB.Range Range_Data sql.NullFloat64 // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration RadarPointersEncoding }
RadarDB describes a radar 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 radarDB
func (*RadarDB) CopyBasicFieldsFromRadar ¶
CopyBasicFieldsFromRadar
func (*RadarDB) CopyBasicFieldsFromRadarWOP ¶
CopyBasicFieldsFromRadarWOP
func (*RadarDB) CopyBasicFieldsFromRadar_WOP ¶
CopyBasicFieldsFromRadar_WOP
func (*RadarDB) CopyBasicFieldsToRadar ¶
CopyBasicFieldsToRadar
func (*RadarDB) CopyBasicFieldsToRadarWOP ¶
CopyBasicFieldsToRadarWOP
func (*RadarDB) CopyBasicFieldsToRadar_WOP ¶
CopyBasicFieldsToRadar_WOP
func (*RadarDB) DecodePointers ¶
func (radarDB *RadarDB) DecodePointers(backRepo *BackRepoStruct, radar *models.Radar)
type RadarDBResponse ¶
type RadarDBResponse struct {
RadarDB
}
RadarDBResponse provides response swagger:response radarDBResponse
type RadarPointersEncoding ¶
type RadarPointersEncoding struct { }
RadarPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type RadarWOP ¶
type RadarWOP struct { ID int `xlsx:"0"` State models.RadarStateEnum `xlsx:"1"` Name string `xlsx:"2"` Lat float64 `xlsx:"3"` Lng float64 `xlsx:"4"` Range float64 `xlsx:"5"` }
RadarWOP is a Radar without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type SatelliteAPI ¶
type SatelliteAPI struct { gorm.Model models.Satellite_WOP // encoding of pointers // for API, it cannot be embedded SatellitePointersEncoding SatellitePointersEncoding }
SatelliteAPI 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 satelliteAPI
type SatelliteDB ¶
type SatelliteDB struct { gorm.Model // Declation for basic field satelliteDB.Name Name_Data sql.NullString // Declation for basic field satelliteDB.Line1 Line1_Data sql.NullString // Declation for basic field satelliteDB.Line2 Line2_Data sql.NullString // Declation for basic field satelliteDB.Lat Lat_Data sql.NullFloat64 // Declation for basic field satelliteDB.Lng Lng_Data sql.NullFloat64 // Declation for basic field satelliteDB.Heading Heading_Data sql.NullFloat64 // Declation for basic field satelliteDB.Level Level_Data sql.NullFloat64 // Declation for basic field satelliteDB.Speed Speed_Data sql.NullFloat64 // Declation for basic field satelliteDB.VerticalSpeed VerticalSpeed_Data sql.NullFloat64 // Declation for basic field satelliteDB.Timestampstring Timestampstring_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration SatellitePointersEncoding }
SatelliteDB describes a satellite 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 satelliteDB
func (*SatelliteDB) CopyBasicFieldsFromSatellite ¶
func (satelliteDB *SatelliteDB) CopyBasicFieldsFromSatellite(satellite *models.Satellite)
CopyBasicFieldsFromSatellite
func (*SatelliteDB) CopyBasicFieldsFromSatelliteWOP ¶
func (satelliteDB *SatelliteDB) CopyBasicFieldsFromSatelliteWOP(satellite *SatelliteWOP)
CopyBasicFieldsFromSatelliteWOP
func (*SatelliteDB) CopyBasicFieldsFromSatellite_WOP ¶
func (satelliteDB *SatelliteDB) CopyBasicFieldsFromSatellite_WOP(satellite *models.Satellite_WOP)
CopyBasicFieldsFromSatellite_WOP
func (*SatelliteDB) CopyBasicFieldsToSatellite ¶
func (satelliteDB *SatelliteDB) CopyBasicFieldsToSatellite(satellite *models.Satellite)
CopyBasicFieldsToSatellite
func (*SatelliteDB) CopyBasicFieldsToSatelliteWOP ¶
func (satelliteDB *SatelliteDB) CopyBasicFieldsToSatelliteWOP(satellite *SatelliteWOP)
CopyBasicFieldsToSatelliteWOP
func (*SatelliteDB) CopyBasicFieldsToSatellite_WOP ¶
func (satelliteDB *SatelliteDB) CopyBasicFieldsToSatellite_WOP(satellite *models.Satellite_WOP)
CopyBasicFieldsToSatellite_WOP
func (*SatelliteDB) DecodePointers ¶
func (satelliteDB *SatelliteDB) DecodePointers(backRepo *BackRepoStruct, satellite *models.Satellite)
type SatelliteDBResponse ¶
type SatelliteDBResponse struct {
SatelliteDB
}
SatelliteDBResponse provides response swagger:response satelliteDBResponse
type SatelliteDBs ¶
type SatelliteDBs []SatelliteDB
SatelliteDBs arrays satelliteDBs swagger:response satelliteDBsResponse
type SatellitePointersEncoding ¶
type SatellitePointersEncoding struct { }
SatellitePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type SatelliteWOP ¶
type SatelliteWOP struct { ID int `xlsx:"0"` Name string `xlsx:"1"` Line1 string `xlsx:"2"` Line2 string `xlsx:"3"` Lat float64 `xlsx:"4"` Lng float64 `xlsx:"5"` Heading float64 `xlsx:"6"` Level float64 `xlsx:"7"` Speed float64 `xlsx:"8"` VerticalSpeed float64 `xlsx:"9"` Timestampstring string `xlsx:"10"` }
SatelliteWOP is a Satellite without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type ScenarioAPI ¶
type ScenarioAPI struct { gorm.Model models.Scenario_WOP // encoding of pointers // for API, it cannot be embedded ScenarioPointersEncoding ScenarioPointersEncoding }
ScenarioAPI 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 scenarioAPI
type ScenarioDB ¶
type ScenarioDB struct { gorm.Model // Declation for basic field scenarioDB.Name Name_Data sql.NullString // Declation for basic field scenarioDB.Lat Lat_Data sql.NullFloat64 // Declation for basic field scenarioDB.Lng Lng_Data sql.NullFloat64 // Declation for basic field scenarioDB.ZoomLevel ZoomLevel_Data sql.NullFloat64 // Declation for basic field scenarioDB.MessageVisualSpeed MessageVisualSpeed_Data sql.NullFloat64 // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration ScenarioPointersEncoding }
ScenarioDB describes a scenario 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 scenarioDB
func (*ScenarioDB) CopyBasicFieldsFromScenario ¶
func (scenarioDB *ScenarioDB) CopyBasicFieldsFromScenario(scenario *models.Scenario)
CopyBasicFieldsFromScenario
func (*ScenarioDB) CopyBasicFieldsFromScenarioWOP ¶
func (scenarioDB *ScenarioDB) CopyBasicFieldsFromScenarioWOP(scenario *ScenarioWOP)
CopyBasicFieldsFromScenarioWOP
func (*ScenarioDB) CopyBasicFieldsFromScenario_WOP ¶
func (scenarioDB *ScenarioDB) CopyBasicFieldsFromScenario_WOP(scenario *models.Scenario_WOP)
CopyBasicFieldsFromScenario_WOP
func (*ScenarioDB) CopyBasicFieldsToScenario ¶
func (scenarioDB *ScenarioDB) CopyBasicFieldsToScenario(scenario *models.Scenario)
CopyBasicFieldsToScenario
func (*ScenarioDB) CopyBasicFieldsToScenarioWOP ¶
func (scenarioDB *ScenarioDB) CopyBasicFieldsToScenarioWOP(scenario *ScenarioWOP)
CopyBasicFieldsToScenarioWOP
func (*ScenarioDB) CopyBasicFieldsToScenario_WOP ¶
func (scenarioDB *ScenarioDB) CopyBasicFieldsToScenario_WOP(scenario *models.Scenario_WOP)
CopyBasicFieldsToScenario_WOP
func (*ScenarioDB) DecodePointers ¶
func (scenarioDB *ScenarioDB) DecodePointers(backRepo *BackRepoStruct, scenario *models.Scenario)
type ScenarioDBResponse ¶
type ScenarioDBResponse struct {
ScenarioDB
}
ScenarioDBResponse provides response swagger:response scenarioDBResponse
type ScenarioDBs ¶
type ScenarioDBs []ScenarioDB
ScenarioDBs arrays scenarioDBs swagger:response scenarioDBsResponse
type ScenarioPointersEncoding ¶
type ScenarioPointersEncoding struct { }
ScenarioPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type ScenarioWOP ¶
type ScenarioWOP struct { ID int `xlsx:"0"` Name string `xlsx:"1"` Lat float64 `xlsx:"2"` Lng float64 `xlsx:"3"` ZoomLevel float64 `xlsx:"4"` MessageVisualSpeed float64 `xlsx:"5"` }
ScenarioWOP is a Scenario without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint