orm

package
v0.0.0-...-b26830e Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

do not modify, generated file

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

Index

Constants

This section is empty.

Variables

View Source
var BackRepoCircleid_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

View Source
var BackRepoDivIconid_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

View Source
var BackRepoLayerGroupUseid_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

View Source
var BackRepoLayerGroupid_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

View Source
var BackRepoMapOptionsid_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

View Source
var BackRepoMarkerid_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

View Source
var BackRepoUserClickid_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

View Source
var BackRepoVLineid_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

View Source
var BackRepoVisualTrackid_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

View Source
var Circle_Fields = []string{

	"ID",
	"Lat",
	"Lng",
	"Name",
	"Radius",
	"ColorEnum",
	"DashStyleEnum",
}
View Source
var DivIcon_Fields = []string{

	"ID",
	"Name",
	"SVG",
}
View Source
var LayerGroupUse_Fields = []string{

	"ID",
	"Name",
	"IsDisplayed",
}
View Source
var LayerGroup_Fields = []string{

	"ID",
	"Name",
	"DisplayName",
}
View Source
var MapOptions_Fields = []string{

	"ID",
	"Lat",
	"Lng",
	"Name",
	"ZoomLevel",
	"UrlTemplate",
	"Attribution",
	"MaxZoom",
	"ZoomControl",
	"AttributionControl",
	"ZoomSnap",
}
View Source
var Marker_Fields = []string{

	"ID",
	"Lat",
	"Lng",
	"Name",
	"ColorEnum",
}
View Source
var UserClick_Fields = []string{

	"ID",
	"Name",
	"Lat",
	"Lng",
	"TimeOfClick",
}
View Source
var VLine_Fields = []string{

	"ID",
	"StartLat",
	"StartLng",
	"EndLat",
	"EndLng",
	"Name",
	"ColorEnum",
	"DashStyleEnum",
	"IsTransmitting",
	"Message",
	"IsTransmittingBackward",
	"MessageBackward",
}
View Source
var VisualTrack_Fields = []string{

	"ID",
	"Lat",
	"Lng",
	"Heading",
	"Level",
	"Speed",
	"VerticalSpeed",
	"Name",
	"ColorEnum",
	"DisplayTrackHistory",
	"DisplayLevelAndSpeed",
}

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 BackRepoCircleStruct

type BackRepoCircleStruct struct {
	// stores CircleDB according to their gorm ID
	Map_CircleDBID_CircleDB map[uint]*CircleDB

	// stores CircleDB ID according to Circle address
	Map_CirclePtr_CircleDBID map[*models.Circle]uint

	// stores Circle according to their gorm ID
	Map_CircleDBID_CirclePtr map[uint]*models.Circle
	// contains filtered or unexported fields
}

func (*BackRepoCircleStruct) Backup

func (backRepoCircle *BackRepoCircleStruct) Backup(dirPath string)

Backup generates a json file from a slice of all CircleDB instances in the backrepo

func (*BackRepoCircleStruct) BackupXL

func (backRepoCircle *BackRepoCircleStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all CircleDB instances in the backrepo

func (*BackRepoCircleStruct) CheckoutPhaseOne

func (backRepoCircle *BackRepoCircleStruct) CheckoutPhaseOne() (Error error)

BackRepoCircle.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 (*BackRepoCircleStruct) CheckoutPhaseOneInstance

func (backRepoCircle *BackRepoCircleStruct) CheckoutPhaseOneInstance(circleDB *CircleDB) (Error error)

CheckoutPhaseOneInstance takes a circleDB that has been found in the DB, updates the backRepo and stages the models version of the circleDB

func (*BackRepoCircleStruct) CheckoutPhaseTwo

func (backRepoCircle *BackRepoCircleStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoCircle.CheckoutPhaseTwo Checkouts all staged instances of Circle to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoCircleStruct) CheckoutPhaseTwoInstance

func (backRepoCircle *BackRepoCircleStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, circleDB *CircleDB) (Error error)

BackRepoCircle.CheckoutPhaseTwoInstance Checkouts staged instances of Circle to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoCircleStruct) CommitDeleteInstance

func (backRepoCircle *BackRepoCircleStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoCircle.CommitDeleteInstance commits deletion of Circle to the BackRepo

func (*BackRepoCircleStruct) CommitPhaseOne

func (backRepoCircle *BackRepoCircleStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoCircle.CommitPhaseOne commits all staged instances of Circle 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 (*BackRepoCircleStruct) CommitPhaseOneInstance

func (backRepoCircle *BackRepoCircleStruct) CommitPhaseOneInstance(circle *models.Circle) (Error error)

BackRepoCircle.CommitPhaseOneInstance commits circle staged instances of Circle 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 (*BackRepoCircleStruct) CommitPhaseTwo

func (backRepoCircle *BackRepoCircleStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoCircle.CommitPhaseTwo commits all staged instances of Circle to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoCircleStruct) CommitPhaseTwoInstance

func (backRepoCircle *BackRepoCircleStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, circle *models.Circle) (Error error)

BackRepoCircle.CommitPhaseTwoInstance commits {{structname }} of models.Circle to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoCircleStruct) GetCircleDBFromCirclePtr

func (backRepoCircle *BackRepoCircleStruct) GetCircleDBFromCirclePtr(circle *models.Circle) (circleDB *CircleDB)

GetCircleDBFromCirclePtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoCircleStruct) GetDB

func (backRepoCircle *BackRepoCircleStruct) GetDB() *gorm.DB

func (*BackRepoCircleStruct) GetStage

func (backRepoCircle *BackRepoCircleStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoCircleStruct) ResetReversePointers

func (backRepoCircle *BackRepoCircleStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoCircle.ResetReversePointers commits all staged instances of Circle to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoCircleStruct) ResetReversePointersInstance

func (backRepoCircle *BackRepoCircleStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, circle *models.Circle) (Error error)

func (*BackRepoCircleStruct) RestorePhaseOne

func (backRepoCircle *BackRepoCircleStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "CircleDB.json" in dirPath that stores an array of CircleDB and stores it in the database the map BackRepoCircleid_atBckpTime_newID is updated accordingly

func (*BackRepoCircleStruct) RestorePhaseTwo

func (backRepoCircle *BackRepoCircleStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<Circle>id_atBckpTime_newID to compute new index

func (*BackRepoCircleStruct) RestoreXLPhaseOne

func (backRepoCircle *BackRepoCircleStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Circle" sheet all CircleDB instances

type BackRepoData

type BackRepoData struct {
	CircleAPIs []*CircleAPI

	DivIconAPIs []*DivIconAPI

	LayerGroupAPIs []*LayerGroupAPI

	LayerGroupUseAPIs []*LayerGroupUseAPI

	MapOptionsAPIs []*MapOptionsAPI

	MarkerAPIs []*MarkerAPI

	UserClickAPIs []*UserClickAPI

	VLineAPIs []*VLineAPI

	VisualTrackAPIs []*VisualTrackAPI
}

type BackRepoDivIconStruct

type BackRepoDivIconStruct struct {
	// stores DivIconDB according to their gorm ID
	Map_DivIconDBID_DivIconDB map[uint]*DivIconDB

	// stores DivIconDB ID according to DivIcon address
	Map_DivIconPtr_DivIconDBID map[*models.DivIcon]uint

	// stores DivIcon according to their gorm ID
	Map_DivIconDBID_DivIconPtr map[uint]*models.DivIcon
	// contains filtered or unexported fields
}

func (*BackRepoDivIconStruct) Backup

func (backRepoDivIcon *BackRepoDivIconStruct) Backup(dirPath string)

Backup generates a json file from a slice of all DivIconDB instances in the backrepo

func (*BackRepoDivIconStruct) BackupXL

func (backRepoDivIcon *BackRepoDivIconStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all DivIconDB instances in the backrepo

func (*BackRepoDivIconStruct) CheckoutPhaseOne

func (backRepoDivIcon *BackRepoDivIconStruct) CheckoutPhaseOne() (Error error)

BackRepoDivIcon.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 (*BackRepoDivIconStruct) CheckoutPhaseOneInstance

func (backRepoDivIcon *BackRepoDivIconStruct) CheckoutPhaseOneInstance(diviconDB *DivIconDB) (Error error)

CheckoutPhaseOneInstance takes a diviconDB that has been found in the DB, updates the backRepo and stages the models version of the diviconDB

func (*BackRepoDivIconStruct) CheckoutPhaseTwo

func (backRepoDivIcon *BackRepoDivIconStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoDivIcon.CheckoutPhaseTwo Checkouts all staged instances of DivIcon to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoDivIconStruct) CheckoutPhaseTwoInstance

func (backRepoDivIcon *BackRepoDivIconStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, diviconDB *DivIconDB) (Error error)

BackRepoDivIcon.CheckoutPhaseTwoInstance Checkouts staged instances of DivIcon to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoDivIconStruct) CommitDeleteInstance

func (backRepoDivIcon *BackRepoDivIconStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoDivIcon.CommitDeleteInstance commits deletion of DivIcon to the BackRepo

func (*BackRepoDivIconStruct) CommitPhaseOne

func (backRepoDivIcon *BackRepoDivIconStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoDivIcon.CommitPhaseOne commits all staged instances of DivIcon 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 (*BackRepoDivIconStruct) CommitPhaseOneInstance

func (backRepoDivIcon *BackRepoDivIconStruct) CommitPhaseOneInstance(divicon *models.DivIcon) (Error error)

BackRepoDivIcon.CommitPhaseOneInstance commits divicon staged instances of DivIcon 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 (*BackRepoDivIconStruct) CommitPhaseTwo

func (backRepoDivIcon *BackRepoDivIconStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoDivIcon.CommitPhaseTwo commits all staged instances of DivIcon to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoDivIconStruct) CommitPhaseTwoInstance

func (backRepoDivIcon *BackRepoDivIconStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, divicon *models.DivIcon) (Error error)

BackRepoDivIcon.CommitPhaseTwoInstance commits {{structname }} of models.DivIcon to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoDivIconStruct) GetDB

func (backRepoDivIcon *BackRepoDivIconStruct) GetDB() *gorm.DB

func (*BackRepoDivIconStruct) GetDivIconDBFromDivIconPtr

func (backRepoDivIcon *BackRepoDivIconStruct) GetDivIconDBFromDivIconPtr(divicon *models.DivIcon) (diviconDB *DivIconDB)

GetDivIconDBFromDivIconPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoDivIconStruct) GetStage

func (backRepoDivIcon *BackRepoDivIconStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoDivIconStruct) ResetReversePointers

func (backRepoDivIcon *BackRepoDivIconStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoDivIcon.ResetReversePointers commits all staged instances of DivIcon to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoDivIconStruct) ResetReversePointersInstance

func (backRepoDivIcon *BackRepoDivIconStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, divicon *models.DivIcon) (Error error)

func (*BackRepoDivIconStruct) RestorePhaseOne

func (backRepoDivIcon *BackRepoDivIconStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "DivIconDB.json" in dirPath that stores an array of DivIconDB and stores it in the database the map BackRepoDivIconid_atBckpTime_newID is updated accordingly

func (*BackRepoDivIconStruct) RestorePhaseTwo

func (backRepoDivIcon *BackRepoDivIconStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<DivIcon>id_atBckpTime_newID to compute new index

func (*BackRepoDivIconStruct) RestoreXLPhaseOne

func (backRepoDivIcon *BackRepoDivIconStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "DivIcon" sheet all DivIconDB instances

type BackRepoLayerGroupStruct

type BackRepoLayerGroupStruct struct {
	// stores LayerGroupDB according to their gorm ID
	Map_LayerGroupDBID_LayerGroupDB map[uint]*LayerGroupDB

	// stores LayerGroupDB ID according to LayerGroup address
	Map_LayerGroupPtr_LayerGroupDBID map[*models.LayerGroup]uint

	// stores LayerGroup according to their gorm ID
	Map_LayerGroupDBID_LayerGroupPtr map[uint]*models.LayerGroup
	// contains filtered or unexported fields
}

func (*BackRepoLayerGroupStruct) Backup

func (backRepoLayerGroup *BackRepoLayerGroupStruct) Backup(dirPath string)

Backup generates a json file from a slice of all LayerGroupDB instances in the backrepo

func (*BackRepoLayerGroupStruct) BackupXL

func (backRepoLayerGroup *BackRepoLayerGroupStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all LayerGroupDB instances in the backrepo

func (*BackRepoLayerGroupStruct) CheckoutPhaseOne

func (backRepoLayerGroup *BackRepoLayerGroupStruct) CheckoutPhaseOne() (Error error)

BackRepoLayerGroup.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 (*BackRepoLayerGroupStruct) CheckoutPhaseOneInstance

func (backRepoLayerGroup *BackRepoLayerGroupStruct) CheckoutPhaseOneInstance(layergroupDB *LayerGroupDB) (Error error)

CheckoutPhaseOneInstance takes a layergroupDB that has been found in the DB, updates the backRepo and stages the models version of the layergroupDB

func (*BackRepoLayerGroupStruct) CheckoutPhaseTwo

func (backRepoLayerGroup *BackRepoLayerGroupStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoLayerGroup.CheckoutPhaseTwo Checkouts all staged instances of LayerGroup to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoLayerGroupStruct) CheckoutPhaseTwoInstance

func (backRepoLayerGroup *BackRepoLayerGroupStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, layergroupDB *LayerGroupDB) (Error error)

BackRepoLayerGroup.CheckoutPhaseTwoInstance Checkouts staged instances of LayerGroup to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoLayerGroupStruct) CommitDeleteInstance

func (backRepoLayerGroup *BackRepoLayerGroupStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoLayerGroup.CommitDeleteInstance commits deletion of LayerGroup to the BackRepo

func (*BackRepoLayerGroupStruct) CommitPhaseOne

func (backRepoLayerGroup *BackRepoLayerGroupStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoLayerGroup.CommitPhaseOne commits all staged instances of LayerGroup 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 (*BackRepoLayerGroupStruct) CommitPhaseOneInstance

func (backRepoLayerGroup *BackRepoLayerGroupStruct) CommitPhaseOneInstance(layergroup *models.LayerGroup) (Error error)

BackRepoLayerGroup.CommitPhaseOneInstance commits layergroup staged instances of LayerGroup 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 (*BackRepoLayerGroupStruct) CommitPhaseTwo

func (backRepoLayerGroup *BackRepoLayerGroupStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoLayerGroup.CommitPhaseTwo commits all staged instances of LayerGroup to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoLayerGroupStruct) CommitPhaseTwoInstance

func (backRepoLayerGroup *BackRepoLayerGroupStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, layergroup *models.LayerGroup) (Error error)

BackRepoLayerGroup.CommitPhaseTwoInstance commits {{structname }} of models.LayerGroup to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoLayerGroupStruct) GetDB

func (backRepoLayerGroup *BackRepoLayerGroupStruct) GetDB() *gorm.DB

func (*BackRepoLayerGroupStruct) GetLayerGroupDBFromLayerGroupPtr

func (backRepoLayerGroup *BackRepoLayerGroupStruct) GetLayerGroupDBFromLayerGroupPtr(layergroup *models.LayerGroup) (layergroupDB *LayerGroupDB)

GetLayerGroupDBFromLayerGroupPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoLayerGroupStruct) GetStage

func (backRepoLayerGroup *BackRepoLayerGroupStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoLayerGroupStruct) ResetReversePointers

func (backRepoLayerGroup *BackRepoLayerGroupStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoLayerGroup.ResetReversePointers commits all staged instances of LayerGroup to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoLayerGroupStruct) ResetReversePointersInstance

func (backRepoLayerGroup *BackRepoLayerGroupStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, layergroup *models.LayerGroup) (Error error)

func (*BackRepoLayerGroupStruct) RestorePhaseOne

func (backRepoLayerGroup *BackRepoLayerGroupStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "LayerGroupDB.json" in dirPath that stores an array of LayerGroupDB and stores it in the database the map BackRepoLayerGroupid_atBckpTime_newID is updated accordingly

func (*BackRepoLayerGroupStruct) RestorePhaseTwo

func (backRepoLayerGroup *BackRepoLayerGroupStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<LayerGroup>id_atBckpTime_newID to compute new index

func (*BackRepoLayerGroupStruct) RestoreXLPhaseOne

func (backRepoLayerGroup *BackRepoLayerGroupStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "LayerGroup" sheet all LayerGroupDB instances

type BackRepoLayerGroupUseStruct

type BackRepoLayerGroupUseStruct struct {
	// stores LayerGroupUseDB according to their gorm ID
	Map_LayerGroupUseDBID_LayerGroupUseDB map[uint]*LayerGroupUseDB

	// stores LayerGroupUseDB ID according to LayerGroupUse address
	Map_LayerGroupUsePtr_LayerGroupUseDBID map[*models.LayerGroupUse]uint

	// stores LayerGroupUse according to their gorm ID
	Map_LayerGroupUseDBID_LayerGroupUsePtr map[uint]*models.LayerGroupUse
	// contains filtered or unexported fields
}

func (*BackRepoLayerGroupUseStruct) Backup

func (backRepoLayerGroupUse *BackRepoLayerGroupUseStruct) Backup(dirPath string)

Backup generates a json file from a slice of all LayerGroupUseDB instances in the backrepo

func (*BackRepoLayerGroupUseStruct) BackupXL

func (backRepoLayerGroupUse *BackRepoLayerGroupUseStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all LayerGroupUseDB instances in the backrepo

func (*BackRepoLayerGroupUseStruct) CheckoutPhaseOne

func (backRepoLayerGroupUse *BackRepoLayerGroupUseStruct) CheckoutPhaseOne() (Error error)

BackRepoLayerGroupUse.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 (*BackRepoLayerGroupUseStruct) CheckoutPhaseOneInstance

func (backRepoLayerGroupUse *BackRepoLayerGroupUseStruct) CheckoutPhaseOneInstance(layergroupuseDB *LayerGroupUseDB) (Error error)

CheckoutPhaseOneInstance takes a layergroupuseDB that has been found in the DB, updates the backRepo and stages the models version of the layergroupuseDB

func (*BackRepoLayerGroupUseStruct) CheckoutPhaseTwo

func (backRepoLayerGroupUse *BackRepoLayerGroupUseStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoLayerGroupUse.CheckoutPhaseTwo Checkouts all staged instances of LayerGroupUse to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoLayerGroupUseStruct) CheckoutPhaseTwoInstance

func (backRepoLayerGroupUse *BackRepoLayerGroupUseStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, layergroupuseDB *LayerGroupUseDB) (Error error)

BackRepoLayerGroupUse.CheckoutPhaseTwoInstance Checkouts staged instances of LayerGroupUse to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoLayerGroupUseStruct) CommitDeleteInstance

func (backRepoLayerGroupUse *BackRepoLayerGroupUseStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoLayerGroupUse.CommitDeleteInstance commits deletion of LayerGroupUse to the BackRepo

func (*BackRepoLayerGroupUseStruct) CommitPhaseOne

func (backRepoLayerGroupUse *BackRepoLayerGroupUseStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoLayerGroupUse.CommitPhaseOne commits all staged instances of LayerGroupUse 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 (*BackRepoLayerGroupUseStruct) CommitPhaseOneInstance

func (backRepoLayerGroupUse *BackRepoLayerGroupUseStruct) CommitPhaseOneInstance(layergroupuse *models.LayerGroupUse) (Error error)

BackRepoLayerGroupUse.CommitPhaseOneInstance commits layergroupuse staged instances of LayerGroupUse 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 (*BackRepoLayerGroupUseStruct) CommitPhaseTwo

func (backRepoLayerGroupUse *BackRepoLayerGroupUseStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoLayerGroupUse.CommitPhaseTwo commits all staged instances of LayerGroupUse to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoLayerGroupUseStruct) CommitPhaseTwoInstance

func (backRepoLayerGroupUse *BackRepoLayerGroupUseStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, layergroupuse *models.LayerGroupUse) (Error error)

BackRepoLayerGroupUse.CommitPhaseTwoInstance commits {{structname }} of models.LayerGroupUse to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoLayerGroupUseStruct) GetDB

func (backRepoLayerGroupUse *BackRepoLayerGroupUseStruct) GetDB() *gorm.DB

func (*BackRepoLayerGroupUseStruct) GetLayerGroupUseDBFromLayerGroupUsePtr

func (backRepoLayerGroupUse *BackRepoLayerGroupUseStruct) GetLayerGroupUseDBFromLayerGroupUsePtr(layergroupuse *models.LayerGroupUse) (layergroupuseDB *LayerGroupUseDB)

GetLayerGroupUseDBFromLayerGroupUsePtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoLayerGroupUseStruct) GetStage

func (backRepoLayerGroupUse *BackRepoLayerGroupUseStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoLayerGroupUseStruct) ResetReversePointers

func (backRepoLayerGroupUse *BackRepoLayerGroupUseStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoLayerGroupUse.ResetReversePointers commits all staged instances of LayerGroupUse to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoLayerGroupUseStruct) ResetReversePointersInstance

func (backRepoLayerGroupUse *BackRepoLayerGroupUseStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, layergroupuse *models.LayerGroupUse) (Error error)

func (*BackRepoLayerGroupUseStruct) RestorePhaseOne

func (backRepoLayerGroupUse *BackRepoLayerGroupUseStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "LayerGroupUseDB.json" in dirPath that stores an array of LayerGroupUseDB and stores it in the database the map BackRepoLayerGroupUseid_atBckpTime_newID is updated accordingly

func (*BackRepoLayerGroupUseStruct) RestorePhaseTwo

func (backRepoLayerGroupUse *BackRepoLayerGroupUseStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<LayerGroupUse>id_atBckpTime_newID to compute new index

func (*BackRepoLayerGroupUseStruct) RestoreXLPhaseOne

func (backRepoLayerGroupUse *BackRepoLayerGroupUseStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "LayerGroupUse" sheet all LayerGroupUseDB instances

type BackRepoMapOptionsStruct

type BackRepoMapOptionsStruct struct {
	// stores MapOptionsDB according to their gorm ID
	Map_MapOptionsDBID_MapOptionsDB map[uint]*MapOptionsDB

	// stores MapOptionsDB ID according to MapOptions address
	Map_MapOptionsPtr_MapOptionsDBID map[*models.MapOptions]uint

	// stores MapOptions according to their gorm ID
	Map_MapOptionsDBID_MapOptionsPtr map[uint]*models.MapOptions
	// contains filtered or unexported fields
}

func (*BackRepoMapOptionsStruct) Backup

func (backRepoMapOptions *BackRepoMapOptionsStruct) Backup(dirPath string)

Backup generates a json file from a slice of all MapOptionsDB instances in the backrepo

func (*BackRepoMapOptionsStruct) BackupXL

func (backRepoMapOptions *BackRepoMapOptionsStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all MapOptionsDB instances in the backrepo

func (*BackRepoMapOptionsStruct) CheckoutPhaseOne

func (backRepoMapOptions *BackRepoMapOptionsStruct) CheckoutPhaseOne() (Error error)

BackRepoMapOptions.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 (*BackRepoMapOptionsStruct) CheckoutPhaseOneInstance

func (backRepoMapOptions *BackRepoMapOptionsStruct) CheckoutPhaseOneInstance(mapoptionsDB *MapOptionsDB) (Error error)

CheckoutPhaseOneInstance takes a mapoptionsDB that has been found in the DB, updates the backRepo and stages the models version of the mapoptionsDB

func (*BackRepoMapOptionsStruct) CheckoutPhaseTwo

func (backRepoMapOptions *BackRepoMapOptionsStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoMapOptions.CheckoutPhaseTwo Checkouts all staged instances of MapOptions to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMapOptionsStruct) CheckoutPhaseTwoInstance

func (backRepoMapOptions *BackRepoMapOptionsStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, mapoptionsDB *MapOptionsDB) (Error error)

BackRepoMapOptions.CheckoutPhaseTwoInstance Checkouts staged instances of MapOptions to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMapOptionsStruct) CommitDeleteInstance

func (backRepoMapOptions *BackRepoMapOptionsStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoMapOptions.CommitDeleteInstance commits deletion of MapOptions to the BackRepo

func (*BackRepoMapOptionsStruct) CommitPhaseOne

func (backRepoMapOptions *BackRepoMapOptionsStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoMapOptions.CommitPhaseOne commits all staged instances of MapOptions 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 (*BackRepoMapOptionsStruct) CommitPhaseOneInstance

func (backRepoMapOptions *BackRepoMapOptionsStruct) CommitPhaseOneInstance(mapoptions *models.MapOptions) (Error error)

BackRepoMapOptions.CommitPhaseOneInstance commits mapoptions staged instances of MapOptions 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 (*BackRepoMapOptionsStruct) CommitPhaseTwo

func (backRepoMapOptions *BackRepoMapOptionsStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoMapOptions.CommitPhaseTwo commits all staged instances of MapOptions to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMapOptionsStruct) CommitPhaseTwoInstance

func (backRepoMapOptions *BackRepoMapOptionsStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, mapoptions *models.MapOptions) (Error error)

BackRepoMapOptions.CommitPhaseTwoInstance commits {{structname }} of models.MapOptions to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMapOptionsStruct) GetDB

func (backRepoMapOptions *BackRepoMapOptionsStruct) GetDB() *gorm.DB

func (*BackRepoMapOptionsStruct) GetMapOptionsDBFromMapOptionsPtr

func (backRepoMapOptions *BackRepoMapOptionsStruct) GetMapOptionsDBFromMapOptionsPtr(mapoptions *models.MapOptions) (mapoptionsDB *MapOptionsDB)

GetMapOptionsDBFromMapOptionsPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoMapOptionsStruct) GetStage

func (backRepoMapOptions *BackRepoMapOptionsStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoMapOptionsStruct) ResetReversePointers

func (backRepoMapOptions *BackRepoMapOptionsStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoMapOptions.ResetReversePointers commits all staged instances of MapOptions to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMapOptionsStruct) ResetReversePointersInstance

func (backRepoMapOptions *BackRepoMapOptionsStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, mapoptions *models.MapOptions) (Error error)

func (*BackRepoMapOptionsStruct) RestorePhaseOne

func (backRepoMapOptions *BackRepoMapOptionsStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "MapOptionsDB.json" in dirPath that stores an array of MapOptionsDB and stores it in the database the map BackRepoMapOptionsid_atBckpTime_newID is updated accordingly

func (*BackRepoMapOptionsStruct) RestorePhaseTwo

func (backRepoMapOptions *BackRepoMapOptionsStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<MapOptions>id_atBckpTime_newID to compute new index

func (*BackRepoMapOptionsStruct) RestoreXLPhaseOne

func (backRepoMapOptions *BackRepoMapOptionsStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "MapOptions" sheet all MapOptionsDB instances

type BackRepoMarkerStruct

type BackRepoMarkerStruct struct {
	// stores MarkerDB according to their gorm ID
	Map_MarkerDBID_MarkerDB map[uint]*MarkerDB

	// stores MarkerDB ID according to Marker address
	Map_MarkerPtr_MarkerDBID map[*models.Marker]uint

	// stores Marker according to their gorm ID
	Map_MarkerDBID_MarkerPtr map[uint]*models.Marker
	// contains filtered or unexported fields
}

func (*BackRepoMarkerStruct) Backup

func (backRepoMarker *BackRepoMarkerStruct) Backup(dirPath string)

Backup generates a json file from a slice of all MarkerDB instances in the backrepo

func (*BackRepoMarkerStruct) BackupXL

func (backRepoMarker *BackRepoMarkerStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all MarkerDB instances in the backrepo

func (*BackRepoMarkerStruct) CheckoutPhaseOne

func (backRepoMarker *BackRepoMarkerStruct) CheckoutPhaseOne() (Error error)

BackRepoMarker.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 (*BackRepoMarkerStruct) CheckoutPhaseOneInstance

func (backRepoMarker *BackRepoMarkerStruct) CheckoutPhaseOneInstance(markerDB *MarkerDB) (Error error)

CheckoutPhaseOneInstance takes a markerDB that has been found in the DB, updates the backRepo and stages the models version of the markerDB

func (*BackRepoMarkerStruct) CheckoutPhaseTwo

func (backRepoMarker *BackRepoMarkerStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoMarker.CheckoutPhaseTwo Checkouts all staged instances of Marker to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMarkerStruct) CheckoutPhaseTwoInstance

func (backRepoMarker *BackRepoMarkerStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, markerDB *MarkerDB) (Error error)

BackRepoMarker.CheckoutPhaseTwoInstance Checkouts staged instances of Marker to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMarkerStruct) CommitDeleteInstance

func (backRepoMarker *BackRepoMarkerStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoMarker.CommitDeleteInstance commits deletion of Marker to the BackRepo

func (*BackRepoMarkerStruct) CommitPhaseOne

func (backRepoMarker *BackRepoMarkerStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoMarker.CommitPhaseOne commits all staged instances of Marker 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 (*BackRepoMarkerStruct) CommitPhaseOneInstance

func (backRepoMarker *BackRepoMarkerStruct) CommitPhaseOneInstance(marker *models.Marker) (Error error)

BackRepoMarker.CommitPhaseOneInstance commits marker staged instances of Marker 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 (*BackRepoMarkerStruct) CommitPhaseTwo

func (backRepoMarker *BackRepoMarkerStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoMarker.CommitPhaseTwo commits all staged instances of Marker to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMarkerStruct) CommitPhaseTwoInstance

func (backRepoMarker *BackRepoMarkerStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, marker *models.Marker) (Error error)

BackRepoMarker.CommitPhaseTwoInstance commits {{structname }} of models.Marker to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMarkerStruct) GetDB

func (backRepoMarker *BackRepoMarkerStruct) GetDB() *gorm.DB

func (*BackRepoMarkerStruct) GetMarkerDBFromMarkerPtr

func (backRepoMarker *BackRepoMarkerStruct) GetMarkerDBFromMarkerPtr(marker *models.Marker) (markerDB *MarkerDB)

GetMarkerDBFromMarkerPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoMarkerStruct) GetStage

func (backRepoMarker *BackRepoMarkerStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoMarkerStruct) ResetReversePointers

func (backRepoMarker *BackRepoMarkerStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoMarker.ResetReversePointers commits all staged instances of Marker to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMarkerStruct) ResetReversePointersInstance

func (backRepoMarker *BackRepoMarkerStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, marker *models.Marker) (Error error)

func (*BackRepoMarkerStruct) RestorePhaseOne

func (backRepoMarker *BackRepoMarkerStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "MarkerDB.json" in dirPath that stores an array of MarkerDB and stores it in the database the map BackRepoMarkerid_atBckpTime_newID is updated accordingly

func (*BackRepoMarkerStruct) RestorePhaseTwo

func (backRepoMarker *BackRepoMarkerStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<Marker>id_atBckpTime_newID to compute new index

func (*BackRepoMarkerStruct) RestoreXLPhaseOne

func (backRepoMarker *BackRepoMarkerStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Marker" sheet all MarkerDB instances

type BackRepoStruct

type BackRepoStruct struct {
	// insertion point for per struct back repo declarations
	BackRepoCircle BackRepoCircleStruct

	BackRepoDivIcon BackRepoDivIconStruct

	BackRepoLayerGroup BackRepoLayerGroupStruct

	BackRepoLayerGroupUse BackRepoLayerGroupUseStruct

	BackRepoMapOptions BackRepoMapOptionsStruct

	BackRepoMarker BackRepoMarkerStruct

	BackRepoUserClick BackRepoUserClickStruct

	BackRepoVLine BackRepoVLineStruct

	BackRepoVisualTrack BackRepoVisualTrackStruct

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

func (backRepo *BackRepoStruct) CheckoutCircle(circle *models.Circle)

CommitCircle allows checkout of a single circle (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutDivIcon

func (backRepo *BackRepoStruct) CheckoutDivIcon(divicon *models.DivIcon)

CommitDivIcon allows checkout of a single divicon (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutLayerGroup

func (backRepo *BackRepoStruct) CheckoutLayerGroup(layergroup *models.LayerGroup)

CommitLayerGroup allows checkout of a single layergroup (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutLayerGroupUse

func (backRepo *BackRepoStruct) CheckoutLayerGroupUse(layergroupuse *models.LayerGroupUse)

CommitLayerGroupUse allows checkout of a single layergroupuse (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutMapOptions

func (backRepo *BackRepoStruct) CheckoutMapOptions(mapoptions *models.MapOptions)

CommitMapOptions allows checkout of a single mapoptions (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutMarker

func (backRepo *BackRepoStruct) CheckoutMarker(marker *models.Marker)

CommitMarker allows checkout of a single marker (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutUserClick

func (backRepo *BackRepoStruct) CheckoutUserClick(userclick *models.UserClick)

CommitUserClick allows checkout of a single userclick (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutVLine

func (backRepo *BackRepoStruct) CheckoutVLine(vline *models.VLine)

CommitVLine allows checkout of a single vline (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutVisualTrack

func (backRepo *BackRepoStruct) CheckoutVisualTrack(visualtrack *models.VisualTrack)

CommitVisualTrack allows checkout of a single visualtrack (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) CommitCircle

func (backRepo *BackRepoStruct) CommitCircle(circle *models.Circle)

CommitCircle allows commit of a single circle (if already staged)

func (*BackRepoStruct) CommitDivIcon

func (backRepo *BackRepoStruct) CommitDivIcon(divicon *models.DivIcon)

CommitDivIcon allows commit of a single divicon (if already staged)

func (*BackRepoStruct) CommitLayerGroup

func (backRepo *BackRepoStruct) CommitLayerGroup(layergroup *models.LayerGroup)

CommitLayerGroup allows commit of a single layergroup (if already staged)

func (*BackRepoStruct) CommitLayerGroupUse

func (backRepo *BackRepoStruct) CommitLayerGroupUse(layergroupuse *models.LayerGroupUse)

CommitLayerGroupUse allows commit of a single layergroupuse (if already staged)

func (*BackRepoStruct) CommitMapOptions

func (backRepo *BackRepoStruct) CommitMapOptions(mapoptions *models.MapOptions)

CommitMapOptions allows commit of a single mapoptions (if already staged)

func (*BackRepoStruct) CommitMarker

func (backRepo *BackRepoStruct) CommitMarker(marker *models.Marker)

CommitMarker allows commit of a single marker (if already staged)

func (*BackRepoStruct) CommitUserClick

func (backRepo *BackRepoStruct) CommitUserClick(userclick *models.UserClick)

CommitUserClick allows commit of a single userclick (if already staged)

func (*BackRepoStruct) CommitVLine

func (backRepo *BackRepoStruct) CommitVLine(vline *models.VLine)

CommitVLine allows commit of a single vline (if already staged)

func (*BackRepoStruct) CommitVisualTrack

func (backRepo *BackRepoStruct) CommitVisualTrack(visualtrack *models.VisualTrack)

CommitVisualTrack allows commit of a single visualtrack (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 BackRepoUserClickStruct

type BackRepoUserClickStruct struct {
	// stores UserClickDB according to their gorm ID
	Map_UserClickDBID_UserClickDB map[uint]*UserClickDB

	// stores UserClickDB ID according to UserClick address
	Map_UserClickPtr_UserClickDBID map[*models.UserClick]uint

	// stores UserClick according to their gorm ID
	Map_UserClickDBID_UserClickPtr map[uint]*models.UserClick
	// contains filtered or unexported fields
}

func (*BackRepoUserClickStruct) Backup

func (backRepoUserClick *BackRepoUserClickStruct) Backup(dirPath string)

Backup generates a json file from a slice of all UserClickDB instances in the backrepo

func (*BackRepoUserClickStruct) BackupXL

func (backRepoUserClick *BackRepoUserClickStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all UserClickDB instances in the backrepo

func (*BackRepoUserClickStruct) CheckoutPhaseOne

func (backRepoUserClick *BackRepoUserClickStruct) CheckoutPhaseOne() (Error error)

BackRepoUserClick.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 (*BackRepoUserClickStruct) CheckoutPhaseOneInstance

func (backRepoUserClick *BackRepoUserClickStruct) CheckoutPhaseOneInstance(userclickDB *UserClickDB) (Error error)

CheckoutPhaseOneInstance takes a userclickDB that has been found in the DB, updates the backRepo and stages the models version of the userclickDB

func (*BackRepoUserClickStruct) CheckoutPhaseTwo

func (backRepoUserClick *BackRepoUserClickStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoUserClick.CheckoutPhaseTwo Checkouts all staged instances of UserClick to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoUserClickStruct) CheckoutPhaseTwoInstance

func (backRepoUserClick *BackRepoUserClickStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, userclickDB *UserClickDB) (Error error)

BackRepoUserClick.CheckoutPhaseTwoInstance Checkouts staged instances of UserClick to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoUserClickStruct) CommitDeleteInstance

func (backRepoUserClick *BackRepoUserClickStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoUserClick.CommitDeleteInstance commits deletion of UserClick to the BackRepo

func (*BackRepoUserClickStruct) CommitPhaseOne

func (backRepoUserClick *BackRepoUserClickStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoUserClick.CommitPhaseOne commits all staged instances of UserClick 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 (*BackRepoUserClickStruct) CommitPhaseOneInstance

func (backRepoUserClick *BackRepoUserClickStruct) CommitPhaseOneInstance(userclick *models.UserClick) (Error error)

BackRepoUserClick.CommitPhaseOneInstance commits userclick staged instances of UserClick 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 (*BackRepoUserClickStruct) CommitPhaseTwo

func (backRepoUserClick *BackRepoUserClickStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoUserClick.CommitPhaseTwo commits all staged instances of UserClick to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoUserClickStruct) CommitPhaseTwoInstance

func (backRepoUserClick *BackRepoUserClickStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, userclick *models.UserClick) (Error error)

BackRepoUserClick.CommitPhaseTwoInstance commits {{structname }} of models.UserClick to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoUserClickStruct) GetDB

func (backRepoUserClick *BackRepoUserClickStruct) GetDB() *gorm.DB

func (*BackRepoUserClickStruct) GetStage

func (backRepoUserClick *BackRepoUserClickStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoUserClickStruct) GetUserClickDBFromUserClickPtr

func (backRepoUserClick *BackRepoUserClickStruct) GetUserClickDBFromUserClickPtr(userclick *models.UserClick) (userclickDB *UserClickDB)

GetUserClickDBFromUserClickPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoUserClickStruct) ResetReversePointers

func (backRepoUserClick *BackRepoUserClickStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoUserClick.ResetReversePointers commits all staged instances of UserClick to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoUserClickStruct) ResetReversePointersInstance

func (backRepoUserClick *BackRepoUserClickStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, userclick *models.UserClick) (Error error)

func (*BackRepoUserClickStruct) RestorePhaseOne

func (backRepoUserClick *BackRepoUserClickStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "UserClickDB.json" in dirPath that stores an array of UserClickDB and stores it in the database the map BackRepoUserClickid_atBckpTime_newID is updated accordingly

func (*BackRepoUserClickStruct) RestorePhaseTwo

func (backRepoUserClick *BackRepoUserClickStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<UserClick>id_atBckpTime_newID to compute new index

func (*BackRepoUserClickStruct) RestoreXLPhaseOne

func (backRepoUserClick *BackRepoUserClickStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "UserClick" sheet all UserClickDB instances

type BackRepoVLineStruct

type BackRepoVLineStruct struct {
	// stores VLineDB according to their gorm ID
	Map_VLineDBID_VLineDB map[uint]*VLineDB

	// stores VLineDB ID according to VLine address
	Map_VLinePtr_VLineDBID map[*models.VLine]uint

	// stores VLine according to their gorm ID
	Map_VLineDBID_VLinePtr map[uint]*models.VLine
	// contains filtered or unexported fields
}

func (*BackRepoVLineStruct) Backup

func (backRepoVLine *BackRepoVLineStruct) Backup(dirPath string)

Backup generates a json file from a slice of all VLineDB instances in the backrepo

func (*BackRepoVLineStruct) BackupXL

func (backRepoVLine *BackRepoVLineStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all VLineDB instances in the backrepo

func (*BackRepoVLineStruct) CheckoutPhaseOne

func (backRepoVLine *BackRepoVLineStruct) CheckoutPhaseOne() (Error error)

BackRepoVLine.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 (*BackRepoVLineStruct) CheckoutPhaseOneInstance

func (backRepoVLine *BackRepoVLineStruct) CheckoutPhaseOneInstance(vlineDB *VLineDB) (Error error)

CheckoutPhaseOneInstance takes a vlineDB that has been found in the DB, updates the backRepo and stages the models version of the vlineDB

func (*BackRepoVLineStruct) CheckoutPhaseTwo

func (backRepoVLine *BackRepoVLineStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoVLine.CheckoutPhaseTwo Checkouts all staged instances of VLine to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoVLineStruct) CheckoutPhaseTwoInstance

func (backRepoVLine *BackRepoVLineStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, vlineDB *VLineDB) (Error error)

BackRepoVLine.CheckoutPhaseTwoInstance Checkouts staged instances of VLine to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoVLineStruct) CommitDeleteInstance

func (backRepoVLine *BackRepoVLineStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoVLine.CommitDeleteInstance commits deletion of VLine to the BackRepo

func (*BackRepoVLineStruct) CommitPhaseOne

func (backRepoVLine *BackRepoVLineStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoVLine.CommitPhaseOne commits all staged instances of VLine 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 (*BackRepoVLineStruct) CommitPhaseOneInstance

func (backRepoVLine *BackRepoVLineStruct) CommitPhaseOneInstance(vline *models.VLine) (Error error)

BackRepoVLine.CommitPhaseOneInstance commits vline staged instances of VLine 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 (*BackRepoVLineStruct) CommitPhaseTwo

func (backRepoVLine *BackRepoVLineStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoVLine.CommitPhaseTwo commits all staged instances of VLine to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoVLineStruct) CommitPhaseTwoInstance

func (backRepoVLine *BackRepoVLineStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, vline *models.VLine) (Error error)

BackRepoVLine.CommitPhaseTwoInstance commits {{structname }} of models.VLine to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoVLineStruct) GetDB

func (backRepoVLine *BackRepoVLineStruct) GetDB() *gorm.DB

func (*BackRepoVLineStruct) GetStage

func (backRepoVLine *BackRepoVLineStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoVLineStruct) GetVLineDBFromVLinePtr

func (backRepoVLine *BackRepoVLineStruct) GetVLineDBFromVLinePtr(vline *models.VLine) (vlineDB *VLineDB)

GetVLineDBFromVLinePtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoVLineStruct) ResetReversePointers

func (backRepoVLine *BackRepoVLineStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoVLine.ResetReversePointers commits all staged instances of VLine to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoVLineStruct) ResetReversePointersInstance

func (backRepoVLine *BackRepoVLineStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, vline *models.VLine) (Error error)

func (*BackRepoVLineStruct) RestorePhaseOne

func (backRepoVLine *BackRepoVLineStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "VLineDB.json" in dirPath that stores an array of VLineDB and stores it in the database the map BackRepoVLineid_atBckpTime_newID is updated accordingly

func (*BackRepoVLineStruct) RestorePhaseTwo

func (backRepoVLine *BackRepoVLineStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<VLine>id_atBckpTime_newID to compute new index

func (*BackRepoVLineStruct) RestoreXLPhaseOne

func (backRepoVLine *BackRepoVLineStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "VLine" sheet all VLineDB instances

type BackRepoVisualTrackStruct

type BackRepoVisualTrackStruct struct {
	// stores VisualTrackDB according to their gorm ID
	Map_VisualTrackDBID_VisualTrackDB map[uint]*VisualTrackDB

	// stores VisualTrackDB ID according to VisualTrack address
	Map_VisualTrackPtr_VisualTrackDBID map[*models.VisualTrack]uint

	// stores VisualTrack according to their gorm ID
	Map_VisualTrackDBID_VisualTrackPtr map[uint]*models.VisualTrack
	// contains filtered or unexported fields
}

func (*BackRepoVisualTrackStruct) Backup

func (backRepoVisualTrack *BackRepoVisualTrackStruct) Backup(dirPath string)

Backup generates a json file from a slice of all VisualTrackDB instances in the backrepo

func (*BackRepoVisualTrackStruct) BackupXL

func (backRepoVisualTrack *BackRepoVisualTrackStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all VisualTrackDB instances in the backrepo

func (*BackRepoVisualTrackStruct) CheckoutPhaseOne

func (backRepoVisualTrack *BackRepoVisualTrackStruct) CheckoutPhaseOne() (Error error)

BackRepoVisualTrack.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 (*BackRepoVisualTrackStruct) CheckoutPhaseOneInstance

func (backRepoVisualTrack *BackRepoVisualTrackStruct) CheckoutPhaseOneInstance(visualtrackDB *VisualTrackDB) (Error error)

CheckoutPhaseOneInstance takes a visualtrackDB that has been found in the DB, updates the backRepo and stages the models version of the visualtrackDB

func (*BackRepoVisualTrackStruct) CheckoutPhaseTwo

func (backRepoVisualTrack *BackRepoVisualTrackStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoVisualTrack.CheckoutPhaseTwo Checkouts all staged instances of VisualTrack to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoVisualTrackStruct) CheckoutPhaseTwoInstance

func (backRepoVisualTrack *BackRepoVisualTrackStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, visualtrackDB *VisualTrackDB) (Error error)

BackRepoVisualTrack.CheckoutPhaseTwoInstance Checkouts staged instances of VisualTrack to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoVisualTrackStruct) CommitDeleteInstance

func (backRepoVisualTrack *BackRepoVisualTrackStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoVisualTrack.CommitDeleteInstance commits deletion of VisualTrack to the BackRepo

func (*BackRepoVisualTrackStruct) CommitPhaseOne

func (backRepoVisualTrack *BackRepoVisualTrackStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoVisualTrack.CommitPhaseOne commits all staged instances of VisualTrack 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 (*BackRepoVisualTrackStruct) CommitPhaseOneInstance

func (backRepoVisualTrack *BackRepoVisualTrackStruct) CommitPhaseOneInstance(visualtrack *models.VisualTrack) (Error error)

BackRepoVisualTrack.CommitPhaseOneInstance commits visualtrack staged instances of VisualTrack 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 (*BackRepoVisualTrackStruct) CommitPhaseTwo

func (backRepoVisualTrack *BackRepoVisualTrackStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoVisualTrack.CommitPhaseTwo commits all staged instances of VisualTrack to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoVisualTrackStruct) CommitPhaseTwoInstance

func (backRepoVisualTrack *BackRepoVisualTrackStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, visualtrack *models.VisualTrack) (Error error)

BackRepoVisualTrack.CommitPhaseTwoInstance commits {{structname }} of models.VisualTrack to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoVisualTrackStruct) GetDB

func (backRepoVisualTrack *BackRepoVisualTrackStruct) GetDB() *gorm.DB

func (*BackRepoVisualTrackStruct) GetStage

func (backRepoVisualTrack *BackRepoVisualTrackStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoVisualTrackStruct) GetVisualTrackDBFromVisualTrackPtr

func (backRepoVisualTrack *BackRepoVisualTrackStruct) GetVisualTrackDBFromVisualTrackPtr(visualtrack *models.VisualTrack) (visualtrackDB *VisualTrackDB)

GetVisualTrackDBFromVisualTrackPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoVisualTrackStruct) ResetReversePointers

func (backRepoVisualTrack *BackRepoVisualTrackStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoVisualTrack.ResetReversePointers commits all staged instances of VisualTrack to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoVisualTrackStruct) ResetReversePointersInstance

func (backRepoVisualTrack *BackRepoVisualTrackStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, visualtrack *models.VisualTrack) (Error error)

func (*BackRepoVisualTrackStruct) RestorePhaseOne

func (backRepoVisualTrack *BackRepoVisualTrackStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "VisualTrackDB.json" in dirPath that stores an array of VisualTrackDB and stores it in the database the map BackRepoVisualTrackid_atBckpTime_newID is updated accordingly

func (*BackRepoVisualTrackStruct) RestorePhaseTwo

func (backRepoVisualTrack *BackRepoVisualTrackStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<VisualTrack>id_atBckpTime_newID to compute new index

func (*BackRepoVisualTrackStruct) RestoreXLPhaseOne

func (backRepoVisualTrack *BackRepoVisualTrackStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "VisualTrack" sheet all VisualTrackDB instances

type CircleAPI

type CircleAPI struct {
	gorm.Model

	models.Circle_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	CirclePointersEncoding CirclePointersEncoding
}

CircleAPI 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 circleAPI

type CircleDB

type CircleDB struct {
	gorm.Model

	// Declation for basic field circleDB.Lat
	Lat_Data sql.NullFloat64

	// Declation for basic field circleDB.Lng
	Lng_Data sql.NullFloat64

	// Declation for basic field circleDB.Name
	Name_Data sql.NullString

	// Declation for basic field circleDB.Radius
	Radius_Data sql.NullFloat64

	// Declation for basic field circleDB.ColorEnum
	ColorEnum_Data sql.NullString

	// Declation for basic field circleDB.DashStyleEnum
	DashStyleEnum_Data sql.NullString

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	CirclePointersEncoding
}

CircleDB describes a circle 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 circleDB

func (*CircleDB) CopyBasicFieldsFromCircle

func (circleDB *CircleDB) CopyBasicFieldsFromCircle(circle *models.Circle)

CopyBasicFieldsFromCircle

func (*CircleDB) CopyBasicFieldsFromCircleWOP

func (circleDB *CircleDB) CopyBasicFieldsFromCircleWOP(circle *CircleWOP)

CopyBasicFieldsFromCircleWOP

func (*CircleDB) CopyBasicFieldsFromCircle_WOP

func (circleDB *CircleDB) CopyBasicFieldsFromCircle_WOP(circle *models.Circle_WOP)

CopyBasicFieldsFromCircle_WOP

func (*CircleDB) CopyBasicFieldsToCircle

func (circleDB *CircleDB) CopyBasicFieldsToCircle(circle *models.Circle)

CopyBasicFieldsToCircle

func (*CircleDB) CopyBasicFieldsToCircleWOP

func (circleDB *CircleDB) CopyBasicFieldsToCircleWOP(circle *CircleWOP)

CopyBasicFieldsToCircleWOP

func (*CircleDB) CopyBasicFieldsToCircle_WOP

func (circleDB *CircleDB) CopyBasicFieldsToCircle_WOP(circle *models.Circle_WOP)

CopyBasicFieldsToCircle_WOP

func (*CircleDB) DecodePointers

func (circleDB *CircleDB) DecodePointers(backRepo *BackRepoStruct, circle *models.Circle)

type CircleDBResponse

type CircleDBResponse struct {
	CircleDB
}

CircleDBResponse provides response swagger:response circleDBResponse

type CircleDBs

type CircleDBs []CircleDB

CircleDBs arrays circleDBs swagger:response circleDBsResponse

type CirclePointersEncoding

type CirclePointersEncoding struct {

	// field LayerGroup is a pointer to another Struct (optional or 0..1)
	// This field is generated into another field to enable AS ONE association
	LayerGroupID sql.NullInt64
}

CirclePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type CircleWOP

type CircleWOP struct {
	ID int `xlsx:"0"`

	Lat float64 `xlsx:"1"`

	Lng float64 `xlsx:"2"`

	Name string `xlsx:"3"`

	Radius float64 `xlsx:"4"`

	ColorEnum models.ColorEnum `xlsx:"5"`

	DashStyleEnum models.DashStyleEnum `xlsx:"6"`
}

CircleWOP is a Circle without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type DivIconAPI

type DivIconAPI struct {
	gorm.Model

	models.DivIcon_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	DivIconPointersEncoding DivIconPointersEncoding
}

DivIconAPI 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 diviconAPI

type DivIconDB

type DivIconDB struct {
	gorm.Model

	// Declation for basic field diviconDB.Name
	Name_Data sql.NullString

	// Declation for basic field diviconDB.SVG
	SVG_Data sql.NullString

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	DivIconPointersEncoding
}

DivIconDB describes a divicon 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 diviconDB

func (*DivIconDB) CopyBasicFieldsFromDivIcon

func (diviconDB *DivIconDB) CopyBasicFieldsFromDivIcon(divicon *models.DivIcon)

CopyBasicFieldsFromDivIcon

func (*DivIconDB) CopyBasicFieldsFromDivIconWOP

func (diviconDB *DivIconDB) CopyBasicFieldsFromDivIconWOP(divicon *DivIconWOP)

CopyBasicFieldsFromDivIconWOP

func (*DivIconDB) CopyBasicFieldsFromDivIcon_WOP

func (diviconDB *DivIconDB) CopyBasicFieldsFromDivIcon_WOP(divicon *models.DivIcon_WOP)

CopyBasicFieldsFromDivIcon_WOP

func (*DivIconDB) CopyBasicFieldsToDivIcon

func (diviconDB *DivIconDB) CopyBasicFieldsToDivIcon(divicon *models.DivIcon)

CopyBasicFieldsToDivIcon

func (*DivIconDB) CopyBasicFieldsToDivIconWOP

func (diviconDB *DivIconDB) CopyBasicFieldsToDivIconWOP(divicon *DivIconWOP)

CopyBasicFieldsToDivIconWOP

func (*DivIconDB) CopyBasicFieldsToDivIcon_WOP

func (diviconDB *DivIconDB) CopyBasicFieldsToDivIcon_WOP(divicon *models.DivIcon_WOP)

CopyBasicFieldsToDivIcon_WOP

func (*DivIconDB) DecodePointers

func (diviconDB *DivIconDB) DecodePointers(backRepo *BackRepoStruct, divicon *models.DivIcon)

type DivIconDBResponse

type DivIconDBResponse struct {
	DivIconDB
}

DivIconDBResponse provides response swagger:response diviconDBResponse

type DivIconDBs

type DivIconDBs []DivIconDB

DivIconDBs arrays diviconDBs swagger:response diviconDBsResponse

type DivIconPointersEncoding

type DivIconPointersEncoding struct {
}

DivIconPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type DivIconWOP

type DivIconWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	SVG string `xlsx:"2"`
}

DivIconWOP is a DivIcon 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 | CircleDB | DivIconDB | LayerGroupDB | LayerGroupUseDB | MapOptionsDB | MarkerDB | UserClickDB | VLineDB | VisualTrackDB
}

type IntSlice

type IntSlice []int

func (*IntSlice) Scan

func (s *IntSlice) Scan(value interface{}) error

Scan makes IntSlice implement the sql.Scanner interface.

func (IntSlice) Value

func (s IntSlice) Value() (driver.Value, error)

Value makes IntSlice implement the driver.Valuer interface.

type LayerGroupAPI

type LayerGroupAPI struct {
	gorm.Model

	models.LayerGroup_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	LayerGroupPointersEncoding LayerGroupPointersEncoding
}

LayerGroupAPI 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 layergroupAPI

type LayerGroupDB

type LayerGroupDB struct {
	gorm.Model

	// Declation for basic field layergroupDB.Name
	Name_Data sql.NullString

	// Declation for basic field layergroupDB.DisplayName
	DisplayName_Data sql.NullString

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	LayerGroupPointersEncoding
}

LayerGroupDB describes a layergroup 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 layergroupDB

func (*LayerGroupDB) CopyBasicFieldsFromLayerGroup

func (layergroupDB *LayerGroupDB) CopyBasicFieldsFromLayerGroup(layergroup *models.LayerGroup)

CopyBasicFieldsFromLayerGroup

func (*LayerGroupDB) CopyBasicFieldsFromLayerGroupWOP

func (layergroupDB *LayerGroupDB) CopyBasicFieldsFromLayerGroupWOP(layergroup *LayerGroupWOP)

CopyBasicFieldsFromLayerGroupWOP

func (*LayerGroupDB) CopyBasicFieldsFromLayerGroup_WOP

func (layergroupDB *LayerGroupDB) CopyBasicFieldsFromLayerGroup_WOP(layergroup *models.LayerGroup_WOP)

CopyBasicFieldsFromLayerGroup_WOP

func (*LayerGroupDB) CopyBasicFieldsToLayerGroup

func (layergroupDB *LayerGroupDB) CopyBasicFieldsToLayerGroup(layergroup *models.LayerGroup)

CopyBasicFieldsToLayerGroup

func (*LayerGroupDB) CopyBasicFieldsToLayerGroupWOP

func (layergroupDB *LayerGroupDB) CopyBasicFieldsToLayerGroupWOP(layergroup *LayerGroupWOP)

CopyBasicFieldsToLayerGroupWOP

func (*LayerGroupDB) CopyBasicFieldsToLayerGroup_WOP

func (layergroupDB *LayerGroupDB) CopyBasicFieldsToLayerGroup_WOP(layergroup *models.LayerGroup_WOP)

CopyBasicFieldsToLayerGroup_WOP

func (*LayerGroupDB) DecodePointers

func (layergroupDB *LayerGroupDB) DecodePointers(backRepo *BackRepoStruct, layergroup *models.LayerGroup)

type LayerGroupDBResponse

type LayerGroupDBResponse struct {
	LayerGroupDB
}

LayerGroupDBResponse provides response swagger:response layergroupDBResponse

type LayerGroupDBs

type LayerGroupDBs []LayerGroupDB

LayerGroupDBs arrays layergroupDBs swagger:response layergroupDBsResponse

type LayerGroupPointersEncoding

type LayerGroupPointersEncoding struct {
}

LayerGroupPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type LayerGroupUseAPI

type LayerGroupUseAPI struct {
	gorm.Model

	models.LayerGroupUse_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	LayerGroupUsePointersEncoding LayerGroupUsePointersEncoding
}

LayerGroupUseAPI 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 layergroupuseAPI

type LayerGroupUseDB

type LayerGroupUseDB struct {
	gorm.Model

	// Declation for basic field layergroupuseDB.Name
	Name_Data sql.NullString

	// Declation for basic field layergroupuseDB.IsDisplayed
	// provide the sql storage for the boolan
	IsDisplayed_Data sql.NullBool

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	LayerGroupUsePointersEncoding
}

LayerGroupUseDB describes a layergroupuse 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 layergroupuseDB

func (*LayerGroupUseDB) CopyBasicFieldsFromLayerGroupUse

func (layergroupuseDB *LayerGroupUseDB) CopyBasicFieldsFromLayerGroupUse(layergroupuse *models.LayerGroupUse)

CopyBasicFieldsFromLayerGroupUse

func (*LayerGroupUseDB) CopyBasicFieldsFromLayerGroupUseWOP

func (layergroupuseDB *LayerGroupUseDB) CopyBasicFieldsFromLayerGroupUseWOP(layergroupuse *LayerGroupUseWOP)

CopyBasicFieldsFromLayerGroupUseWOP

func (*LayerGroupUseDB) CopyBasicFieldsFromLayerGroupUse_WOP

func (layergroupuseDB *LayerGroupUseDB) CopyBasicFieldsFromLayerGroupUse_WOP(layergroupuse *models.LayerGroupUse_WOP)

CopyBasicFieldsFromLayerGroupUse_WOP

func (*LayerGroupUseDB) CopyBasicFieldsToLayerGroupUse

func (layergroupuseDB *LayerGroupUseDB) CopyBasicFieldsToLayerGroupUse(layergroupuse *models.LayerGroupUse)

CopyBasicFieldsToLayerGroupUse

func (*LayerGroupUseDB) CopyBasicFieldsToLayerGroupUseWOP

func (layergroupuseDB *LayerGroupUseDB) CopyBasicFieldsToLayerGroupUseWOP(layergroupuse *LayerGroupUseWOP)

CopyBasicFieldsToLayerGroupUseWOP

func (*LayerGroupUseDB) CopyBasicFieldsToLayerGroupUse_WOP

func (layergroupuseDB *LayerGroupUseDB) CopyBasicFieldsToLayerGroupUse_WOP(layergroupuse *models.LayerGroupUse_WOP)

CopyBasicFieldsToLayerGroupUse_WOP

func (*LayerGroupUseDB) DecodePointers

func (layergroupuseDB *LayerGroupUseDB) DecodePointers(backRepo *BackRepoStruct, layergroupuse *models.LayerGroupUse)

type LayerGroupUseDBResponse

type LayerGroupUseDBResponse struct {
	LayerGroupUseDB
}

LayerGroupUseDBResponse provides response swagger:response layergroupuseDBResponse

type LayerGroupUseDBs

type LayerGroupUseDBs []LayerGroupUseDB

LayerGroupUseDBs arrays layergroupuseDBs swagger:response layergroupuseDBsResponse

type LayerGroupUsePointersEncoding

type LayerGroupUsePointersEncoding struct {

	// field LayerGroup is a pointer to another Struct (optional or 0..1)
	// This field is generated into another field to enable AS ONE association
	LayerGroupID sql.NullInt64
}

LayerGroupUsePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type LayerGroupUseWOP

type LayerGroupUseWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	IsDisplayed bool `xlsx:"2"`
}

LayerGroupUseWOP is a LayerGroupUse without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type LayerGroupWOP

type LayerGroupWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	DisplayName string `xlsx:"2"`
}

LayerGroupWOP is a LayerGroup without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type MapOptionsAPI

type MapOptionsAPI struct {
	gorm.Model

	models.MapOptions_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	MapOptionsPointersEncoding MapOptionsPointersEncoding
}

MapOptionsAPI 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 mapoptionsAPI

type MapOptionsDB

type MapOptionsDB struct {
	gorm.Model

	// Declation for basic field mapoptionsDB.Lat
	Lat_Data sql.NullFloat64

	// Declation for basic field mapoptionsDB.Lng
	Lng_Data sql.NullFloat64

	// Declation for basic field mapoptionsDB.Name
	Name_Data sql.NullString

	// Declation for basic field mapoptionsDB.ZoomLevel
	ZoomLevel_Data sql.NullFloat64

	// Declation for basic field mapoptionsDB.UrlTemplate
	UrlTemplate_Data sql.NullString

	// Declation for basic field mapoptionsDB.Attribution
	Attribution_Data sql.NullString

	// Declation for basic field mapoptionsDB.MaxZoom
	MaxZoom_Data sql.NullInt64

	// Declation for basic field mapoptionsDB.ZoomControl
	// provide the sql storage for the boolan
	ZoomControl_Data sql.NullBool

	// Declation for basic field mapoptionsDB.AttributionControl
	// provide the sql storage for the boolan
	AttributionControl_Data sql.NullBool

	// Declation for basic field mapoptionsDB.ZoomSnap
	ZoomSnap_Data sql.NullInt64

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	MapOptionsPointersEncoding
}

MapOptionsDB describes a mapoptions 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 mapoptionsDB

func (*MapOptionsDB) CopyBasicFieldsFromMapOptions

func (mapoptionsDB *MapOptionsDB) CopyBasicFieldsFromMapOptions(mapoptions *models.MapOptions)

CopyBasicFieldsFromMapOptions

func (*MapOptionsDB) CopyBasicFieldsFromMapOptionsWOP

func (mapoptionsDB *MapOptionsDB) CopyBasicFieldsFromMapOptionsWOP(mapoptions *MapOptionsWOP)

CopyBasicFieldsFromMapOptionsWOP

func (*MapOptionsDB) CopyBasicFieldsFromMapOptions_WOP

func (mapoptionsDB *MapOptionsDB) CopyBasicFieldsFromMapOptions_WOP(mapoptions *models.MapOptions_WOP)

CopyBasicFieldsFromMapOptions_WOP

func (*MapOptionsDB) CopyBasicFieldsToMapOptions

func (mapoptionsDB *MapOptionsDB) CopyBasicFieldsToMapOptions(mapoptions *models.MapOptions)

CopyBasicFieldsToMapOptions

func (*MapOptionsDB) CopyBasicFieldsToMapOptionsWOP

func (mapoptionsDB *MapOptionsDB) CopyBasicFieldsToMapOptionsWOP(mapoptions *MapOptionsWOP)

CopyBasicFieldsToMapOptionsWOP

func (*MapOptionsDB) CopyBasicFieldsToMapOptions_WOP

func (mapoptionsDB *MapOptionsDB) CopyBasicFieldsToMapOptions_WOP(mapoptions *models.MapOptions_WOP)

CopyBasicFieldsToMapOptions_WOP

func (*MapOptionsDB) DecodePointers

func (mapoptionsDB *MapOptionsDB) DecodePointers(backRepo *BackRepoStruct, mapoptions *models.MapOptions)

type MapOptionsDBResponse

type MapOptionsDBResponse struct {
	MapOptionsDB
}

MapOptionsDBResponse provides response swagger:response mapoptionsDBResponse

type MapOptionsDBs

type MapOptionsDBs []MapOptionsDB

MapOptionsDBs arrays mapoptionsDBs swagger:response mapoptionsDBsResponse

type MapOptionsPointersEncoding

type MapOptionsPointersEncoding struct {

	// field LayerGroupUses is a slice of pointers to another Struct (optional or 0..1)
	LayerGroupUses IntSlice `gorm:"type:TEXT"`
}

MapOptionsPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type MapOptionsWOP

type MapOptionsWOP struct {
	ID int `xlsx:"0"`

	Lat float64 `xlsx:"1"`

	Lng float64 `xlsx:"2"`

	Name string `xlsx:"3"`

	ZoomLevel float64 `xlsx:"4"`

	UrlTemplate string `xlsx:"5"`

	Attribution string `xlsx:"6"`

	MaxZoom int `xlsx:"7"`

	ZoomControl bool `xlsx:"8"`

	AttributionControl bool `xlsx:"9"`

	ZoomSnap int `xlsx:"10"`
}

MapOptionsWOP is a MapOptions without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type MarkerAPI

type MarkerAPI struct {
	gorm.Model

	models.Marker_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	MarkerPointersEncoding MarkerPointersEncoding
}

MarkerAPI 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 markerAPI

type MarkerDB

type MarkerDB struct {
	gorm.Model

	// Declation for basic field markerDB.Lat
	Lat_Data sql.NullFloat64

	// Declation for basic field markerDB.Lng
	Lng_Data sql.NullFloat64

	// Declation for basic field markerDB.Name
	Name_Data sql.NullString

	// Declation for basic field markerDB.ColorEnum
	ColorEnum_Data sql.NullString

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	MarkerPointersEncoding
}

MarkerDB describes a marker 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 markerDB

func (*MarkerDB) CopyBasicFieldsFromMarker

func (markerDB *MarkerDB) CopyBasicFieldsFromMarker(marker *models.Marker)

CopyBasicFieldsFromMarker

func (*MarkerDB) CopyBasicFieldsFromMarkerWOP

func (markerDB *MarkerDB) CopyBasicFieldsFromMarkerWOP(marker *MarkerWOP)

CopyBasicFieldsFromMarkerWOP

func (*MarkerDB) CopyBasicFieldsFromMarker_WOP

func (markerDB *MarkerDB) CopyBasicFieldsFromMarker_WOP(marker *models.Marker_WOP)

CopyBasicFieldsFromMarker_WOP

func (*MarkerDB) CopyBasicFieldsToMarker

func (markerDB *MarkerDB) CopyBasicFieldsToMarker(marker *models.Marker)

CopyBasicFieldsToMarker

func (*MarkerDB) CopyBasicFieldsToMarkerWOP

func (markerDB *MarkerDB) CopyBasicFieldsToMarkerWOP(marker *MarkerWOP)

CopyBasicFieldsToMarkerWOP

func (*MarkerDB) CopyBasicFieldsToMarker_WOP

func (markerDB *MarkerDB) CopyBasicFieldsToMarker_WOP(marker *models.Marker_WOP)

CopyBasicFieldsToMarker_WOP

func (*MarkerDB) DecodePointers

func (markerDB *MarkerDB) DecodePointers(backRepo *BackRepoStruct, marker *models.Marker)

type MarkerDBResponse

type MarkerDBResponse struct {
	MarkerDB
}

MarkerDBResponse provides response swagger:response markerDBResponse

type MarkerDBs

type MarkerDBs []MarkerDB

MarkerDBs arrays markerDBs swagger:response markerDBsResponse

type MarkerPointersEncoding

type MarkerPointersEncoding struct {

	// field LayerGroup is a pointer to another Struct (optional or 0..1)
	// This field is generated into another field to enable AS ONE association
	LayerGroupID sql.NullInt64

	// field DivIcon is a pointer to another Struct (optional or 0..1)
	// This field is generated into another field to enable AS ONE association
	DivIconID sql.NullInt64
}

MarkerPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type MarkerWOP

type MarkerWOP struct {
	ID int `xlsx:"0"`

	Lat float64 `xlsx:"1"`

	Lng float64 `xlsx:"2"`

	Name string `xlsx:"3"`

	ColorEnum models.ColorEnum `xlsx:"4"`
}

MarkerWOP is a Marker without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type UserClickAPI

type UserClickAPI struct {
	gorm.Model

	models.UserClick_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	UserClickPointersEncoding UserClickPointersEncoding
}

UserClickAPI 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 userclickAPI

type UserClickDB

type UserClickDB struct {
	gorm.Model

	// Declation for basic field userclickDB.Name
	Name_Data sql.NullString

	// Declation for basic field userclickDB.Lat
	Lat_Data sql.NullFloat64

	// Declation for basic field userclickDB.Lng
	Lng_Data sql.NullFloat64

	// Declation for basic field userclickDB.TimeOfClick
	TimeOfClick_Data sql.NullTime

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	UserClickPointersEncoding
}

UserClickDB describes a userclick 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 userclickDB

func (*UserClickDB) CopyBasicFieldsFromUserClick

func (userclickDB *UserClickDB) CopyBasicFieldsFromUserClick(userclick *models.UserClick)

CopyBasicFieldsFromUserClick

func (*UserClickDB) CopyBasicFieldsFromUserClickWOP

func (userclickDB *UserClickDB) CopyBasicFieldsFromUserClickWOP(userclick *UserClickWOP)

CopyBasicFieldsFromUserClickWOP

func (*UserClickDB) CopyBasicFieldsFromUserClick_WOP

func (userclickDB *UserClickDB) CopyBasicFieldsFromUserClick_WOP(userclick *models.UserClick_WOP)

CopyBasicFieldsFromUserClick_WOP

func (*UserClickDB) CopyBasicFieldsToUserClick

func (userclickDB *UserClickDB) CopyBasicFieldsToUserClick(userclick *models.UserClick)

CopyBasicFieldsToUserClick

func (*UserClickDB) CopyBasicFieldsToUserClickWOP

func (userclickDB *UserClickDB) CopyBasicFieldsToUserClickWOP(userclick *UserClickWOP)

CopyBasicFieldsToUserClickWOP

func (*UserClickDB) CopyBasicFieldsToUserClick_WOP

func (userclickDB *UserClickDB) CopyBasicFieldsToUserClick_WOP(userclick *models.UserClick_WOP)

CopyBasicFieldsToUserClick_WOP

func (*UserClickDB) DecodePointers

func (userclickDB *UserClickDB) DecodePointers(backRepo *BackRepoStruct, userclick *models.UserClick)

type UserClickDBResponse

type UserClickDBResponse struct {
	UserClickDB
}

UserClickDBResponse provides response swagger:response userclickDBResponse

type UserClickDBs

type UserClickDBs []UserClickDB

UserClickDBs arrays userclickDBs swagger:response userclickDBsResponse

type UserClickPointersEncoding

type UserClickPointersEncoding struct {
}

UserClickPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type UserClickWOP

type UserClickWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	Lat float64 `xlsx:"2"`

	Lng float64 `xlsx:"3"`

	TimeOfClick time.Time `xlsx:"4"`
}

UserClickWOP is a UserClick without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type VLineAPI

type VLineAPI struct {
	gorm.Model

	models.VLine_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	VLinePointersEncoding VLinePointersEncoding
}

VLineAPI 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 vlineAPI

type VLineDB

type VLineDB struct {
	gorm.Model

	// Declation for basic field vlineDB.StartLat
	StartLat_Data sql.NullFloat64

	// Declation for basic field vlineDB.StartLng
	StartLng_Data sql.NullFloat64

	// Declation for basic field vlineDB.EndLat
	EndLat_Data sql.NullFloat64

	// Declation for basic field vlineDB.EndLng
	EndLng_Data sql.NullFloat64

	// Declation for basic field vlineDB.Name
	Name_Data sql.NullString

	// Declation for basic field vlineDB.ColorEnum
	ColorEnum_Data sql.NullString

	// Declation for basic field vlineDB.DashStyleEnum
	DashStyleEnum_Data sql.NullString

	// Declation for basic field vlineDB.IsTransmitting
	IsTransmitting_Data sql.NullString

	// Declation for basic field vlineDB.Message
	Message_Data sql.NullString

	// Declation for basic field vlineDB.IsTransmittingBackward
	IsTransmittingBackward_Data sql.NullString

	// Declation for basic field vlineDB.MessageBackward
	MessageBackward_Data sql.NullString

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	VLinePointersEncoding
}

VLineDB describes a vline 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 vlineDB

func (*VLineDB) CopyBasicFieldsFromVLine

func (vlineDB *VLineDB) CopyBasicFieldsFromVLine(vline *models.VLine)

CopyBasicFieldsFromVLine

func (*VLineDB) CopyBasicFieldsFromVLineWOP

func (vlineDB *VLineDB) CopyBasicFieldsFromVLineWOP(vline *VLineWOP)

CopyBasicFieldsFromVLineWOP

func (*VLineDB) CopyBasicFieldsFromVLine_WOP

func (vlineDB *VLineDB) CopyBasicFieldsFromVLine_WOP(vline *models.VLine_WOP)

CopyBasicFieldsFromVLine_WOP

func (*VLineDB) CopyBasicFieldsToVLine

func (vlineDB *VLineDB) CopyBasicFieldsToVLine(vline *models.VLine)

CopyBasicFieldsToVLine

func (*VLineDB) CopyBasicFieldsToVLineWOP

func (vlineDB *VLineDB) CopyBasicFieldsToVLineWOP(vline *VLineWOP)

CopyBasicFieldsToVLineWOP

func (*VLineDB) CopyBasicFieldsToVLine_WOP

func (vlineDB *VLineDB) CopyBasicFieldsToVLine_WOP(vline *models.VLine_WOP)

CopyBasicFieldsToVLine_WOP

func (*VLineDB) DecodePointers

func (vlineDB *VLineDB) DecodePointers(backRepo *BackRepoStruct, vline *models.VLine)

type VLineDBResponse

type VLineDBResponse struct {
	VLineDB
}

VLineDBResponse provides response swagger:response vlineDBResponse

type VLineDBs

type VLineDBs []VLineDB

VLineDBs arrays vlineDBs swagger:response vlineDBsResponse

type VLinePointersEncoding

type VLinePointersEncoding struct {

	// field LayerGroup is a pointer to another Struct (optional or 0..1)
	// This field is generated into another field to enable AS ONE association
	LayerGroupID sql.NullInt64
}

VLinePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type VLineWOP

type VLineWOP struct {
	ID int `xlsx:"0"`

	StartLat float64 `xlsx:"1"`

	StartLng float64 `xlsx:"2"`

	EndLat float64 `xlsx:"3"`

	EndLng float64 `xlsx:"4"`

	Name string `xlsx:"5"`

	ColorEnum models.ColorEnum `xlsx:"6"`

	DashStyleEnum models.DashStyleEnum `xlsx:"7"`

	IsTransmitting models.TransmittingEnum `xlsx:"8"`

	Message string `xlsx:"9"`

	IsTransmittingBackward models.TransmittingEnum `xlsx:"10"`

	MessageBackward string `xlsx:"11"`
}

VLineWOP is a VLine without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type VisualTrackAPI

type VisualTrackAPI struct {
	gorm.Model

	models.VisualTrack_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	VisualTrackPointersEncoding VisualTrackPointersEncoding
}

VisualTrackAPI 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 visualtrackAPI

type VisualTrackDB

type VisualTrackDB struct {
	gorm.Model

	// Declation for basic field visualtrackDB.Lat
	Lat_Data sql.NullFloat64

	// Declation for basic field visualtrackDB.Lng
	Lng_Data sql.NullFloat64

	// Declation for basic field visualtrackDB.Heading
	Heading_Data sql.NullFloat64

	// Declation for basic field visualtrackDB.Level
	Level_Data sql.NullFloat64

	// Declation for basic field visualtrackDB.Speed
	Speed_Data sql.NullFloat64

	// Declation for basic field visualtrackDB.VerticalSpeed
	VerticalSpeed_Data sql.NullFloat64

	// Declation for basic field visualtrackDB.Name
	Name_Data sql.NullString

	// Declation for basic field visualtrackDB.ColorEnum
	ColorEnum_Data sql.NullString

	// Declation for basic field visualtrackDB.DisplayTrackHistory
	// provide the sql storage for the boolan
	DisplayTrackHistory_Data sql.NullBool

	// Declation for basic field visualtrackDB.DisplayLevelAndSpeed
	// provide the sql storage for the boolan
	DisplayLevelAndSpeed_Data sql.NullBool

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	VisualTrackPointersEncoding
}

VisualTrackDB describes a visualtrack 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 visualtrackDB

func (*VisualTrackDB) CopyBasicFieldsFromVisualTrack

func (visualtrackDB *VisualTrackDB) CopyBasicFieldsFromVisualTrack(visualtrack *models.VisualTrack)

CopyBasicFieldsFromVisualTrack

func (*VisualTrackDB) CopyBasicFieldsFromVisualTrackWOP

func (visualtrackDB *VisualTrackDB) CopyBasicFieldsFromVisualTrackWOP(visualtrack *VisualTrackWOP)

CopyBasicFieldsFromVisualTrackWOP

func (*VisualTrackDB) CopyBasicFieldsFromVisualTrack_WOP

func (visualtrackDB *VisualTrackDB) CopyBasicFieldsFromVisualTrack_WOP(visualtrack *models.VisualTrack_WOP)

CopyBasicFieldsFromVisualTrack_WOP

func (*VisualTrackDB) CopyBasicFieldsToVisualTrack

func (visualtrackDB *VisualTrackDB) CopyBasicFieldsToVisualTrack(visualtrack *models.VisualTrack)

CopyBasicFieldsToVisualTrack

func (*VisualTrackDB) CopyBasicFieldsToVisualTrackWOP

func (visualtrackDB *VisualTrackDB) CopyBasicFieldsToVisualTrackWOP(visualtrack *VisualTrackWOP)

CopyBasicFieldsToVisualTrackWOP

func (*VisualTrackDB) CopyBasicFieldsToVisualTrack_WOP

func (visualtrackDB *VisualTrackDB) CopyBasicFieldsToVisualTrack_WOP(visualtrack *models.VisualTrack_WOP)

CopyBasicFieldsToVisualTrack_WOP

func (*VisualTrackDB) DecodePointers

func (visualtrackDB *VisualTrackDB) DecodePointers(backRepo *BackRepoStruct, visualtrack *models.VisualTrack)

type VisualTrackDBResponse

type VisualTrackDBResponse struct {
	VisualTrackDB
}

VisualTrackDBResponse provides response swagger:response visualtrackDBResponse

type VisualTrackDBs

type VisualTrackDBs []VisualTrackDB

VisualTrackDBs arrays visualtrackDBs swagger:response visualtrackDBsResponse

type VisualTrackPointersEncoding

type VisualTrackPointersEncoding struct {

	// field LayerGroup is a pointer to another Struct (optional or 0..1)
	// This field is generated into another field to enable AS ONE association
	LayerGroupID sql.NullInt64

	// field DivIcon is a pointer to another Struct (optional or 0..1)
	// This field is generated into another field to enable AS ONE association
	DivIconID sql.NullInt64
}

VisualTrackPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type VisualTrackWOP

type VisualTrackWOP 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"`

	VerticalSpeed float64 `xlsx:"6"`

	Name string `xlsx:"7"`

	ColorEnum models.ColorEnum `xlsx:"8"`

	DisplayTrackHistory bool `xlsx:"9"`

	DisplayLevelAndSpeed bool `xlsx:"10"`
}

VisualTrackWOP is a VisualTrack without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL