orm

package
Version: v0.0.0-...-35f109a Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 17 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

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 genORMTranslation.go

generated from OrmFileSetupTemplate

Index

Constants

This section is empty.

Variables

View Source
var BackRepoClassdiagramid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoClassshapeid_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 BackRepoFieldid_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 BackRepoGongdocCommandid_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 BackRepoGongdocStatusid_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 BackRepoLinkid_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 BackRepoPkgeltid_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 BackRepoPositionid_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 BackRepoUmlStateid_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 BackRepoUmlscid_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 BackRepoVerticeid_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 Classdiagram_Fields = []string{

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

	"ID",
	"Name",
	"Structname",
	"Width",
	"Heigth",
	"ClassshapeTargetType",
}
View Source
var Field_Fields = []string{

	"ID",
	"Name",
	"Fieldname",
	"FieldTypeAsString",
	"Structname",
	"Fieldtypename",
}
View Source
var GongdocCommand_Fields = []string{

	"ID",
	"Name",
	"Command",
	"DiagramName",
	"Date",
	"GongdocNodeType",
	"StructName",
	"FieldName",
	"FieldTypeName",
	"PositionX",
	"PositionY",
}
View Source
var GongdocStatus_Fields = []string{

	"ID",
	"Name",
	"Status",
	"CommandCompletionDate",
}
View Source
var Link_Fields = []string{

	"ID",
	"Name",
	"Fieldname",
	"Structname",
	"Fieldtypename",
	"Multiplicity",
}
View Source
var Pkgelt_Fields = []string{

	"ID",
	"Name",
	"Path",
}
View Source
var Position_Fields = []string{

	"ID",
	"X",
	"Y",
	"Name",
}
View Source
var UmlState_Fields = []string{

	"ID",
	"Name",
	"X",
	"Y",
}
View Source
var Umlsc_Fields = []string{

	"ID",
	"Name",
	"Activestate",
}
View Source
var Vertice_Fields = []string{

	"ID",
	"X",
	"Y",
	"Name",
}

Functions

func AutoMigrate

func AutoMigrate(db *gorm.DB)

AutoMigrate migrates db with with orm Struct

func GetLastCommitNb

func GetLastCommitNb() uint

func GetLastPushFromFrontNb

func GetLastPushFromFrontNb() uint

func ResetDB

func ResetDB(db *gorm.DB)

func SetupModels

func SetupModels(logMode bool, filepath string) *gorm.DB

SetupModels connects to the sqlite database

Types

type BackRepoClassdiagramStruct

type BackRepoClassdiagramStruct struct {
	// stores ClassdiagramDB according to their gorm ID
	Map_ClassdiagramDBID_ClassdiagramDB *map[uint]*ClassdiagramDB

	// stores ClassdiagramDB ID according to Classdiagram address
	Map_ClassdiagramPtr_ClassdiagramDBID *map[*models.Classdiagram]uint

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

func (*BackRepoClassdiagramStruct) Backup

func (backRepoClassdiagram *BackRepoClassdiagramStruct) Backup(dirPath string)

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

func (*BackRepoClassdiagramStruct) BackupXL

func (backRepoClassdiagram *BackRepoClassdiagramStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoClassdiagramStruct) CheckoutPhaseOne

func (backRepoClassdiagram *BackRepoClassdiagramStruct) CheckoutPhaseOne() (Error error)

BackRepoClassdiagram.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for pahse two)

func (*BackRepoClassdiagramStruct) CheckoutPhaseOneInstance

func (backRepoClassdiagram *BackRepoClassdiagramStruct) CheckoutPhaseOneInstance(classdiagramDB *ClassdiagramDB) (Error error)

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

func (*BackRepoClassdiagramStruct) CheckoutPhaseTwo

func (backRepoClassdiagram *BackRepoClassdiagramStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoClassdiagramStruct) CheckoutPhaseTwoInstance

func (backRepoClassdiagram *BackRepoClassdiagramStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, classdiagramDB *ClassdiagramDB) (Error error)

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

func (*BackRepoClassdiagramStruct) CommitDeleteInstance

func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoClassdiagram.CommitDeleteInstance commits deletion of Classdiagram to the BackRepo

func (*BackRepoClassdiagramStruct) CommitPhaseOne

func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoClassdiagram.CommitPhaseOne commits all staged instances of Classdiagram to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoClassdiagramStruct) CommitPhaseOneInstance

func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitPhaseOneInstance(classdiagram *models.Classdiagram) (Error error)

BackRepoClassdiagram.CommitPhaseOneInstance commits classdiagram staged instances of Classdiagram to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoClassdiagramStruct) CommitPhaseTwo

func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoClassdiagramStruct) CommitPhaseTwoInstance

func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, classdiagram *models.Classdiagram) (Error error)

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

func (*BackRepoClassdiagramStruct) GetClassdiagramDBFromClassdiagramPtr

func (backRepoClassdiagram *BackRepoClassdiagramStruct) GetClassdiagramDBFromClassdiagramPtr(classdiagram *models.Classdiagram) (classdiagramDB *ClassdiagramDB)

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

func (*BackRepoClassdiagramStruct) GetDB

func (backRepoClassdiagram *BackRepoClassdiagramStruct) GetDB() *gorm.DB

func (*BackRepoClassdiagramStruct) Init

func (backRepoClassdiagram *BackRepoClassdiagramStruct) Init(db *gorm.DB) (Error error)

BackRepoClassdiagram.Init set up the BackRepo of the Classdiagram

func (*BackRepoClassdiagramStruct) RestorePhaseOne

func (backRepoClassdiagram *BackRepoClassdiagramStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoClassdiagramStruct) RestorePhaseTwo

func (backRepoClassdiagram *BackRepoClassdiagramStruct) RestorePhaseTwo()

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

type BackRepoClassshapeStruct

type BackRepoClassshapeStruct struct {
	// stores ClassshapeDB according to their gorm ID
	Map_ClassshapeDBID_ClassshapeDB *map[uint]*ClassshapeDB

	// stores ClassshapeDB ID according to Classshape address
	Map_ClassshapePtr_ClassshapeDBID *map[*models.Classshape]uint

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

func (*BackRepoClassshapeStruct) Backup

func (backRepoClassshape *BackRepoClassshapeStruct) Backup(dirPath string)

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

func (*BackRepoClassshapeStruct) BackupXL

func (backRepoClassshape *BackRepoClassshapeStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoClassshapeStruct) CheckoutPhaseOne

func (backRepoClassshape *BackRepoClassshapeStruct) CheckoutPhaseOne() (Error error)

BackRepoClassshape.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 pahse two)

func (*BackRepoClassshapeStruct) CheckoutPhaseOneInstance

func (backRepoClassshape *BackRepoClassshapeStruct) CheckoutPhaseOneInstance(classshapeDB *ClassshapeDB) (Error error)

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

func (*BackRepoClassshapeStruct) CheckoutPhaseTwo

func (backRepoClassshape *BackRepoClassshapeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoClassshapeStruct) CheckoutPhaseTwoInstance

func (backRepoClassshape *BackRepoClassshapeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, classshapeDB *ClassshapeDB) (Error error)

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

func (*BackRepoClassshapeStruct) CommitDeleteInstance

func (backRepoClassshape *BackRepoClassshapeStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoClassshape.CommitDeleteInstance commits deletion of Classshape to the BackRepo

func (*BackRepoClassshapeStruct) CommitPhaseOne

func (backRepoClassshape *BackRepoClassshapeStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoClassshape.CommitPhaseOne commits all staged instances of Classshape 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 (*BackRepoClassshapeStruct) CommitPhaseOneInstance

func (backRepoClassshape *BackRepoClassshapeStruct) CommitPhaseOneInstance(classshape *models.Classshape) (Error error)

BackRepoClassshape.CommitPhaseOneInstance commits classshape staged instances of Classshape 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 (*BackRepoClassshapeStruct) CommitPhaseTwo

func (backRepoClassshape *BackRepoClassshapeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoClassshapeStruct) CommitPhaseTwoInstance

func (backRepoClassshape *BackRepoClassshapeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, classshape *models.Classshape) (Error error)

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

func (*BackRepoClassshapeStruct) GetClassshapeDBFromClassshapePtr

func (backRepoClassshape *BackRepoClassshapeStruct) GetClassshapeDBFromClassshapePtr(classshape *models.Classshape) (classshapeDB *ClassshapeDB)

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

func (*BackRepoClassshapeStruct) GetDB

func (backRepoClassshape *BackRepoClassshapeStruct) GetDB() *gorm.DB

func (*BackRepoClassshapeStruct) Init

func (backRepoClassshape *BackRepoClassshapeStruct) Init(db *gorm.DB) (Error error)

BackRepoClassshape.Init set up the BackRepo of the Classshape

func (*BackRepoClassshapeStruct) RestorePhaseOne

func (backRepoClassshape *BackRepoClassshapeStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoClassshapeStruct) RestorePhaseTwo

func (backRepoClassshape *BackRepoClassshapeStruct) RestorePhaseTwo()

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

type BackRepoFieldStruct

type BackRepoFieldStruct struct {
	// stores FieldDB according to their gorm ID
	Map_FieldDBID_FieldDB *map[uint]*FieldDB

	// stores FieldDB ID according to Field address
	Map_FieldPtr_FieldDBID *map[*models.Field]uint

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

func (*BackRepoFieldStruct) Backup

func (backRepoField *BackRepoFieldStruct) Backup(dirPath string)

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

func (*BackRepoFieldStruct) BackupXL

func (backRepoField *BackRepoFieldStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoFieldStruct) CheckoutPhaseOne

func (backRepoField *BackRepoFieldStruct) CheckoutPhaseOne() (Error error)

BackRepoField.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 pahse two)

func (*BackRepoFieldStruct) CheckoutPhaseOneInstance

func (backRepoField *BackRepoFieldStruct) CheckoutPhaseOneInstance(fieldDB *FieldDB) (Error error)

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

func (*BackRepoFieldStruct) CheckoutPhaseTwo

func (backRepoField *BackRepoFieldStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoFieldStruct) CheckoutPhaseTwoInstance

func (backRepoField *BackRepoFieldStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, fieldDB *FieldDB) (Error error)

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

func (*BackRepoFieldStruct) CommitDeleteInstance

func (backRepoField *BackRepoFieldStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoField.CommitDeleteInstance commits deletion of Field to the BackRepo

func (*BackRepoFieldStruct) CommitPhaseOne

func (backRepoField *BackRepoFieldStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoField.CommitPhaseOne commits all staged instances of Field 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 (*BackRepoFieldStruct) CommitPhaseOneInstance

func (backRepoField *BackRepoFieldStruct) CommitPhaseOneInstance(field *models.Field) (Error error)

BackRepoField.CommitPhaseOneInstance commits field staged instances of Field 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 (*BackRepoFieldStruct) CommitPhaseTwo

func (backRepoField *BackRepoFieldStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoFieldStruct) CommitPhaseTwoInstance

func (backRepoField *BackRepoFieldStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, field *models.Field) (Error error)

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

func (*BackRepoFieldStruct) GetDB

func (backRepoField *BackRepoFieldStruct) GetDB() *gorm.DB

func (*BackRepoFieldStruct) GetFieldDBFromFieldPtr

func (backRepoField *BackRepoFieldStruct) GetFieldDBFromFieldPtr(field *models.Field) (fieldDB *FieldDB)

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

func (*BackRepoFieldStruct) Init

func (backRepoField *BackRepoFieldStruct) Init(db *gorm.DB) (Error error)

BackRepoField.Init set up the BackRepo of the Field

func (*BackRepoFieldStruct) RestorePhaseOne

func (backRepoField *BackRepoFieldStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoFieldStruct) RestorePhaseTwo

func (backRepoField *BackRepoFieldStruct) RestorePhaseTwo()

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

type BackRepoGongdocCommandStruct

type BackRepoGongdocCommandStruct struct {
	// stores GongdocCommandDB according to their gorm ID
	Map_GongdocCommandDBID_GongdocCommandDB *map[uint]*GongdocCommandDB

	// stores GongdocCommandDB ID according to GongdocCommand address
	Map_GongdocCommandPtr_GongdocCommandDBID *map[*models.GongdocCommand]uint

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

func (*BackRepoGongdocCommandStruct) Backup

func (backRepoGongdocCommand *BackRepoGongdocCommandStruct) Backup(dirPath string)

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

func (*BackRepoGongdocCommandStruct) BackupXL

func (backRepoGongdocCommand *BackRepoGongdocCommandStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoGongdocCommandStruct) CheckoutPhaseOne

func (backRepoGongdocCommand *BackRepoGongdocCommandStruct) CheckoutPhaseOne() (Error error)

BackRepoGongdocCommand.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 pahse two)

func (*BackRepoGongdocCommandStruct) CheckoutPhaseOneInstance

func (backRepoGongdocCommand *BackRepoGongdocCommandStruct) CheckoutPhaseOneInstance(gongdoccommandDB *GongdocCommandDB) (Error error)

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

func (*BackRepoGongdocCommandStruct) CheckoutPhaseTwo

func (backRepoGongdocCommand *BackRepoGongdocCommandStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoGongdocCommandStruct) CheckoutPhaseTwoInstance

func (backRepoGongdocCommand *BackRepoGongdocCommandStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongdoccommandDB *GongdocCommandDB) (Error error)

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

func (*BackRepoGongdocCommandStruct) CommitDeleteInstance

func (backRepoGongdocCommand *BackRepoGongdocCommandStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoGongdocCommand.CommitDeleteInstance commits deletion of GongdocCommand to the BackRepo

func (*BackRepoGongdocCommandStruct) CommitPhaseOne

func (backRepoGongdocCommand *BackRepoGongdocCommandStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoGongdocCommand.CommitPhaseOne commits all staged instances of GongdocCommand 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 (*BackRepoGongdocCommandStruct) CommitPhaseOneInstance

func (backRepoGongdocCommand *BackRepoGongdocCommandStruct) CommitPhaseOneInstance(gongdoccommand *models.GongdocCommand) (Error error)

BackRepoGongdocCommand.CommitPhaseOneInstance commits gongdoccommand staged instances of GongdocCommand 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 (*BackRepoGongdocCommandStruct) CommitPhaseTwo

func (backRepoGongdocCommand *BackRepoGongdocCommandStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoGongdocCommandStruct) CommitPhaseTwoInstance

func (backRepoGongdocCommand *BackRepoGongdocCommandStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gongdoccommand *models.GongdocCommand) (Error error)

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

func (*BackRepoGongdocCommandStruct) GetDB

func (backRepoGongdocCommand *BackRepoGongdocCommandStruct) GetDB() *gorm.DB

func (*BackRepoGongdocCommandStruct) GetGongdocCommandDBFromGongdocCommandPtr

func (backRepoGongdocCommand *BackRepoGongdocCommandStruct) GetGongdocCommandDBFromGongdocCommandPtr(gongdoccommand *models.GongdocCommand) (gongdoccommandDB *GongdocCommandDB)

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

func (*BackRepoGongdocCommandStruct) Init

func (backRepoGongdocCommand *BackRepoGongdocCommandStruct) Init(db *gorm.DB) (Error error)

BackRepoGongdocCommand.Init set up the BackRepo of the GongdocCommand

func (*BackRepoGongdocCommandStruct) RestorePhaseOne

func (backRepoGongdocCommand *BackRepoGongdocCommandStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoGongdocCommandStruct) RestorePhaseTwo

func (backRepoGongdocCommand *BackRepoGongdocCommandStruct) RestorePhaseTwo()

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

type BackRepoGongdocStatusStruct

type BackRepoGongdocStatusStruct struct {
	// stores GongdocStatusDB according to their gorm ID
	Map_GongdocStatusDBID_GongdocStatusDB *map[uint]*GongdocStatusDB

	// stores GongdocStatusDB ID according to GongdocStatus address
	Map_GongdocStatusPtr_GongdocStatusDBID *map[*models.GongdocStatus]uint

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

func (*BackRepoGongdocStatusStruct) Backup

func (backRepoGongdocStatus *BackRepoGongdocStatusStruct) Backup(dirPath string)

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

func (*BackRepoGongdocStatusStruct) BackupXL

func (backRepoGongdocStatus *BackRepoGongdocStatusStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoGongdocStatusStruct) CheckoutPhaseOne

func (backRepoGongdocStatus *BackRepoGongdocStatusStruct) CheckoutPhaseOne() (Error error)

BackRepoGongdocStatus.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 pahse two)

func (*BackRepoGongdocStatusStruct) CheckoutPhaseOneInstance

func (backRepoGongdocStatus *BackRepoGongdocStatusStruct) CheckoutPhaseOneInstance(gongdocstatusDB *GongdocStatusDB) (Error error)

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

func (*BackRepoGongdocStatusStruct) CheckoutPhaseTwo

func (backRepoGongdocStatus *BackRepoGongdocStatusStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoGongdocStatusStruct) CheckoutPhaseTwoInstance

func (backRepoGongdocStatus *BackRepoGongdocStatusStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongdocstatusDB *GongdocStatusDB) (Error error)

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

func (*BackRepoGongdocStatusStruct) CommitDeleteInstance

func (backRepoGongdocStatus *BackRepoGongdocStatusStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoGongdocStatus.CommitDeleteInstance commits deletion of GongdocStatus to the BackRepo

func (*BackRepoGongdocStatusStruct) CommitPhaseOne

func (backRepoGongdocStatus *BackRepoGongdocStatusStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoGongdocStatus.CommitPhaseOne commits all staged instances of GongdocStatus 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 (*BackRepoGongdocStatusStruct) CommitPhaseOneInstance

func (backRepoGongdocStatus *BackRepoGongdocStatusStruct) CommitPhaseOneInstance(gongdocstatus *models.GongdocStatus) (Error error)

BackRepoGongdocStatus.CommitPhaseOneInstance commits gongdocstatus staged instances of GongdocStatus 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 (*BackRepoGongdocStatusStruct) CommitPhaseTwo

func (backRepoGongdocStatus *BackRepoGongdocStatusStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoGongdocStatusStruct) CommitPhaseTwoInstance

func (backRepoGongdocStatus *BackRepoGongdocStatusStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gongdocstatus *models.GongdocStatus) (Error error)

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

func (*BackRepoGongdocStatusStruct) GetDB

func (backRepoGongdocStatus *BackRepoGongdocStatusStruct) GetDB() *gorm.DB

func (*BackRepoGongdocStatusStruct) GetGongdocStatusDBFromGongdocStatusPtr

func (backRepoGongdocStatus *BackRepoGongdocStatusStruct) GetGongdocStatusDBFromGongdocStatusPtr(gongdocstatus *models.GongdocStatus) (gongdocstatusDB *GongdocStatusDB)

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

func (*BackRepoGongdocStatusStruct) Init

func (backRepoGongdocStatus *BackRepoGongdocStatusStruct) Init(db *gorm.DB) (Error error)

BackRepoGongdocStatus.Init set up the BackRepo of the GongdocStatus

func (*BackRepoGongdocStatusStruct) RestorePhaseOne

func (backRepoGongdocStatus *BackRepoGongdocStatusStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoGongdocStatusStruct) RestorePhaseTwo

func (backRepoGongdocStatus *BackRepoGongdocStatusStruct) RestorePhaseTwo()

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

type BackRepoLinkStruct

type BackRepoLinkStruct struct {
	// stores LinkDB according to their gorm ID
	Map_LinkDBID_LinkDB *map[uint]*LinkDB

	// stores LinkDB ID according to Link address
	Map_LinkPtr_LinkDBID *map[*models.Link]uint

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

func (*BackRepoLinkStruct) Backup

func (backRepoLink *BackRepoLinkStruct) Backup(dirPath string)

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

func (*BackRepoLinkStruct) BackupXL

func (backRepoLink *BackRepoLinkStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoLinkStruct) CheckoutPhaseOne

func (backRepoLink *BackRepoLinkStruct) CheckoutPhaseOne() (Error error)

BackRepoLink.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 pahse two)

func (*BackRepoLinkStruct) CheckoutPhaseOneInstance

func (backRepoLink *BackRepoLinkStruct) CheckoutPhaseOneInstance(linkDB *LinkDB) (Error error)

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

func (*BackRepoLinkStruct) CheckoutPhaseTwo

func (backRepoLink *BackRepoLinkStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoLinkStruct) CheckoutPhaseTwoInstance

func (backRepoLink *BackRepoLinkStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, linkDB *LinkDB) (Error error)

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

func (*BackRepoLinkStruct) CommitDeleteInstance

func (backRepoLink *BackRepoLinkStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoLink.CommitDeleteInstance commits deletion of Link to the BackRepo

func (*BackRepoLinkStruct) CommitPhaseOne

func (backRepoLink *BackRepoLinkStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoLink.CommitPhaseOne commits all staged instances of Link 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 (*BackRepoLinkStruct) CommitPhaseOneInstance

func (backRepoLink *BackRepoLinkStruct) CommitPhaseOneInstance(link *models.Link) (Error error)

BackRepoLink.CommitPhaseOneInstance commits link staged instances of Link 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 (*BackRepoLinkStruct) CommitPhaseTwo

func (backRepoLink *BackRepoLinkStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoLinkStruct) CommitPhaseTwoInstance

func (backRepoLink *BackRepoLinkStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, link *models.Link) (Error error)

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

func (*BackRepoLinkStruct) GetDB

func (backRepoLink *BackRepoLinkStruct) GetDB() *gorm.DB

func (*BackRepoLinkStruct) GetLinkDBFromLinkPtr

func (backRepoLink *BackRepoLinkStruct) GetLinkDBFromLinkPtr(link *models.Link) (linkDB *LinkDB)

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

func (*BackRepoLinkStruct) Init

func (backRepoLink *BackRepoLinkStruct) Init(db *gorm.DB) (Error error)

BackRepoLink.Init set up the BackRepo of the Link

func (*BackRepoLinkStruct) RestorePhaseOne

func (backRepoLink *BackRepoLinkStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoLinkStruct) RestorePhaseTwo

func (backRepoLink *BackRepoLinkStruct) RestorePhaseTwo()

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

type BackRepoPkgeltStruct

type BackRepoPkgeltStruct struct {
	// stores PkgeltDB according to their gorm ID
	Map_PkgeltDBID_PkgeltDB *map[uint]*PkgeltDB

	// stores PkgeltDB ID according to Pkgelt address
	Map_PkgeltPtr_PkgeltDBID *map[*models.Pkgelt]uint

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

func (*BackRepoPkgeltStruct) Backup

func (backRepoPkgelt *BackRepoPkgeltStruct) Backup(dirPath string)

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

func (*BackRepoPkgeltStruct) BackupXL

func (backRepoPkgelt *BackRepoPkgeltStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoPkgeltStruct) CheckoutPhaseOne

func (backRepoPkgelt *BackRepoPkgeltStruct) CheckoutPhaseOne() (Error error)

BackRepoPkgelt.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 pahse two)

func (*BackRepoPkgeltStruct) CheckoutPhaseOneInstance

func (backRepoPkgelt *BackRepoPkgeltStruct) CheckoutPhaseOneInstance(pkgeltDB *PkgeltDB) (Error error)

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

func (*BackRepoPkgeltStruct) CheckoutPhaseTwo

func (backRepoPkgelt *BackRepoPkgeltStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoPkgeltStruct) CheckoutPhaseTwoInstance

func (backRepoPkgelt *BackRepoPkgeltStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, pkgeltDB *PkgeltDB) (Error error)

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

func (*BackRepoPkgeltStruct) CommitDeleteInstance

func (backRepoPkgelt *BackRepoPkgeltStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoPkgelt.CommitDeleteInstance commits deletion of Pkgelt to the BackRepo

func (*BackRepoPkgeltStruct) CommitPhaseOne

func (backRepoPkgelt *BackRepoPkgeltStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoPkgelt.CommitPhaseOne commits all staged instances of Pkgelt 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 (*BackRepoPkgeltStruct) CommitPhaseOneInstance

func (backRepoPkgelt *BackRepoPkgeltStruct) CommitPhaseOneInstance(pkgelt *models.Pkgelt) (Error error)

BackRepoPkgelt.CommitPhaseOneInstance commits pkgelt staged instances of Pkgelt 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 (*BackRepoPkgeltStruct) CommitPhaseTwo

func (backRepoPkgelt *BackRepoPkgeltStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoPkgeltStruct) CommitPhaseTwoInstance

func (backRepoPkgelt *BackRepoPkgeltStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, pkgelt *models.Pkgelt) (Error error)

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

func (*BackRepoPkgeltStruct) GetDB

func (backRepoPkgelt *BackRepoPkgeltStruct) GetDB() *gorm.DB

func (*BackRepoPkgeltStruct) GetPkgeltDBFromPkgeltPtr

func (backRepoPkgelt *BackRepoPkgeltStruct) GetPkgeltDBFromPkgeltPtr(pkgelt *models.Pkgelt) (pkgeltDB *PkgeltDB)

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

func (*BackRepoPkgeltStruct) Init

func (backRepoPkgelt *BackRepoPkgeltStruct) Init(db *gorm.DB) (Error error)

BackRepoPkgelt.Init set up the BackRepo of the Pkgelt

func (*BackRepoPkgeltStruct) RestorePhaseOne

func (backRepoPkgelt *BackRepoPkgeltStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoPkgeltStruct) RestorePhaseTwo

func (backRepoPkgelt *BackRepoPkgeltStruct) RestorePhaseTwo()

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

type BackRepoPositionStruct

type BackRepoPositionStruct struct {
	// stores PositionDB according to their gorm ID
	Map_PositionDBID_PositionDB *map[uint]*PositionDB

	// stores PositionDB ID according to Position address
	Map_PositionPtr_PositionDBID *map[*models.Position]uint

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

func (*BackRepoPositionStruct) Backup

func (backRepoPosition *BackRepoPositionStruct) Backup(dirPath string)

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

func (*BackRepoPositionStruct) BackupXL

func (backRepoPosition *BackRepoPositionStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoPositionStruct) CheckoutPhaseOne

func (backRepoPosition *BackRepoPositionStruct) CheckoutPhaseOne() (Error error)

BackRepoPosition.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 pahse two)

func (*BackRepoPositionStruct) CheckoutPhaseOneInstance

func (backRepoPosition *BackRepoPositionStruct) CheckoutPhaseOneInstance(positionDB *PositionDB) (Error error)

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

func (*BackRepoPositionStruct) CheckoutPhaseTwo

func (backRepoPosition *BackRepoPositionStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoPositionStruct) CheckoutPhaseTwoInstance

func (backRepoPosition *BackRepoPositionStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, positionDB *PositionDB) (Error error)

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

func (*BackRepoPositionStruct) CommitDeleteInstance

func (backRepoPosition *BackRepoPositionStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoPosition.CommitDeleteInstance commits deletion of Position to the BackRepo

func (*BackRepoPositionStruct) CommitPhaseOne

func (backRepoPosition *BackRepoPositionStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoPosition.CommitPhaseOne commits all staged instances of Position 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 (*BackRepoPositionStruct) CommitPhaseOneInstance

func (backRepoPosition *BackRepoPositionStruct) CommitPhaseOneInstance(position *models.Position) (Error error)

BackRepoPosition.CommitPhaseOneInstance commits position staged instances of Position 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 (*BackRepoPositionStruct) CommitPhaseTwo

func (backRepoPosition *BackRepoPositionStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoPositionStruct) CommitPhaseTwoInstance

func (backRepoPosition *BackRepoPositionStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, position *models.Position) (Error error)

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

func (*BackRepoPositionStruct) GetDB

func (backRepoPosition *BackRepoPositionStruct) GetDB() *gorm.DB

func (*BackRepoPositionStruct) GetPositionDBFromPositionPtr

func (backRepoPosition *BackRepoPositionStruct) GetPositionDBFromPositionPtr(position *models.Position) (positionDB *PositionDB)

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

func (*BackRepoPositionStruct) Init

func (backRepoPosition *BackRepoPositionStruct) Init(db *gorm.DB) (Error error)

BackRepoPosition.Init set up the BackRepo of the Position

func (*BackRepoPositionStruct) RestorePhaseOne

func (backRepoPosition *BackRepoPositionStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoPositionStruct) RestorePhaseTwo

func (backRepoPosition *BackRepoPositionStruct) RestorePhaseTwo()

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

type BackRepoStruct

type BackRepoStruct struct {
	// insertion point for per struct back repo declarations
	BackRepoClassdiagram BackRepoClassdiagramStruct

	BackRepoClassshape BackRepoClassshapeStruct

	BackRepoField BackRepoFieldStruct

	BackRepoGongdocCommand BackRepoGongdocCommandStruct

	BackRepoGongdocStatus BackRepoGongdocStatusStruct

	BackRepoLink BackRepoLinkStruct

	BackRepoPkgelt BackRepoPkgeltStruct

	BackRepoPosition BackRepoPositionStruct

	BackRepoUmlState BackRepoUmlStateStruct

	BackRepoUmlsc BackRepoUmlscStruct

	BackRepoVertice BackRepoVerticeStruct

	CommitNb uint // this ng is updated at the BackRepo level but also at the BackRepo<GongStruct> level

	PushFromFrontNb uint // records increments from push from front
}

BackRepoStruct supports callback functions

var 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) CheckoutClassdiagram

func (backRepo *BackRepoStruct) CheckoutClassdiagram(classdiagram *models.Classdiagram)

CommitClassdiagram allows checkout of a single classdiagram (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutClassshape

func (backRepo *BackRepoStruct) CheckoutClassshape(classshape *models.Classshape)

CommitClassshape allows checkout of a single classshape (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutField

func (backRepo *BackRepoStruct) CheckoutField(field *models.Field)

CommitField allows checkout of a single field (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutGongdocCommand

func (backRepo *BackRepoStruct) CheckoutGongdocCommand(gongdoccommand *models.GongdocCommand)

CommitGongdocCommand allows checkout of a single gongdoccommand (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutGongdocStatus

func (backRepo *BackRepoStruct) CheckoutGongdocStatus(gongdocstatus *models.GongdocStatus)

CommitGongdocStatus allows checkout of a single gongdocstatus (if already staged and with a BackRepo id)

func (backRepo *BackRepoStruct) CheckoutLink(link *models.Link)

CommitLink allows checkout of a single link (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutPkgelt

func (backRepo *BackRepoStruct) CheckoutPkgelt(pkgelt *models.Pkgelt)

CommitPkgelt allows checkout of a single pkgelt (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutPosition

func (backRepo *BackRepoStruct) CheckoutPosition(position *models.Position)

CommitPosition allows checkout of a single position (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutUmlState

func (backRepo *BackRepoStruct) CheckoutUmlState(umlstate *models.UmlState)

CommitUmlState allows checkout of a single umlstate (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutUmlsc

func (backRepo *BackRepoStruct) CheckoutUmlsc(umlsc *models.Umlsc)

CommitUmlsc allows checkout of a single umlsc (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutVertice

func (backRepo *BackRepoStruct) CheckoutVertice(vertice *models.Vertice)

CommitVertice allows checkout of a single vertice (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) CommitClassdiagram

func (backRepo *BackRepoStruct) CommitClassdiagram(classdiagram *models.Classdiagram)

CommitClassdiagram allows commit of a single classdiagram (if already staged)

func (*BackRepoStruct) CommitClassshape

func (backRepo *BackRepoStruct) CommitClassshape(classshape *models.Classshape)

CommitClassshape allows commit of a single classshape (if already staged)

func (*BackRepoStruct) CommitField

func (backRepo *BackRepoStruct) CommitField(field *models.Field)

CommitField allows commit of a single field (if already staged)

func (*BackRepoStruct) CommitGongdocCommand

func (backRepo *BackRepoStruct) CommitGongdocCommand(gongdoccommand *models.GongdocCommand)

CommitGongdocCommand allows commit of a single gongdoccommand (if already staged)

func (*BackRepoStruct) CommitGongdocStatus

func (backRepo *BackRepoStruct) CommitGongdocStatus(gongdocstatus *models.GongdocStatus)

CommitGongdocStatus allows commit of a single gongdocstatus (if already staged)

func (backRepo *BackRepoStruct) CommitLink(link *models.Link)

CommitLink allows commit of a single link (if already staged)

func (*BackRepoStruct) CommitPkgelt

func (backRepo *BackRepoStruct) CommitPkgelt(pkgelt *models.Pkgelt)

CommitPkgelt allows commit of a single pkgelt (if already staged)

func (*BackRepoStruct) CommitPosition

func (backRepo *BackRepoStruct) CommitPosition(position *models.Position)

CommitPosition allows commit of a single position (if already staged)

func (*BackRepoStruct) CommitUmlState

func (backRepo *BackRepoStruct) CommitUmlState(umlstate *models.UmlState)

CommitUmlState allows commit of a single umlstate (if already staged)

func (*BackRepoStruct) CommitUmlsc

func (backRepo *BackRepoStruct) CommitUmlsc(umlsc *models.Umlsc)

CommitUmlsc allows commit of a single umlsc (if already staged)

func (*BackRepoStruct) CommitVertice

func (backRepo *BackRepoStruct) CommitVertice(vertice *models.Vertice)

CommitVertice allows commit of a single vertice (if already staged)

func (*BackRepoStruct) GetLastCommitNb

func (backRepo *BackRepoStruct) GetLastCommitNb() uint

func (*BackRepoStruct) GetLastPushFromFrontNb

func (backRepo *BackRepoStruct) GetLastPushFromFrontNb() uint

func (*BackRepoStruct) IncrementCommitNb

func (backRepo *BackRepoStruct) IncrementCommitNb() 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

type BackRepoUmlStateStruct

type BackRepoUmlStateStruct struct {
	// stores UmlStateDB according to their gorm ID
	Map_UmlStateDBID_UmlStateDB *map[uint]*UmlStateDB

	// stores UmlStateDB ID according to UmlState address
	Map_UmlStatePtr_UmlStateDBID *map[*models.UmlState]uint

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

func (*BackRepoUmlStateStruct) Backup

func (backRepoUmlState *BackRepoUmlStateStruct) Backup(dirPath string)

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

func (*BackRepoUmlStateStruct) BackupXL

func (backRepoUmlState *BackRepoUmlStateStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoUmlStateStruct) CheckoutPhaseOne

func (backRepoUmlState *BackRepoUmlStateStruct) CheckoutPhaseOne() (Error error)

BackRepoUmlState.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 pahse two)

func (*BackRepoUmlStateStruct) CheckoutPhaseOneInstance

func (backRepoUmlState *BackRepoUmlStateStruct) CheckoutPhaseOneInstance(umlstateDB *UmlStateDB) (Error error)

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

func (*BackRepoUmlStateStruct) CheckoutPhaseTwo

func (backRepoUmlState *BackRepoUmlStateStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoUmlStateStruct) CheckoutPhaseTwoInstance

func (backRepoUmlState *BackRepoUmlStateStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, umlstateDB *UmlStateDB) (Error error)

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

func (*BackRepoUmlStateStruct) CommitDeleteInstance

func (backRepoUmlState *BackRepoUmlStateStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoUmlState.CommitDeleteInstance commits deletion of UmlState to the BackRepo

func (*BackRepoUmlStateStruct) CommitPhaseOne

func (backRepoUmlState *BackRepoUmlStateStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoUmlState.CommitPhaseOne commits all staged instances of UmlState 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 (*BackRepoUmlStateStruct) CommitPhaseOneInstance

func (backRepoUmlState *BackRepoUmlStateStruct) CommitPhaseOneInstance(umlstate *models.UmlState) (Error error)

BackRepoUmlState.CommitPhaseOneInstance commits umlstate staged instances of UmlState 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 (*BackRepoUmlStateStruct) CommitPhaseTwo

func (backRepoUmlState *BackRepoUmlStateStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoUmlStateStruct) CommitPhaseTwoInstance

func (backRepoUmlState *BackRepoUmlStateStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, umlstate *models.UmlState) (Error error)

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

func (*BackRepoUmlStateStruct) GetDB

func (backRepoUmlState *BackRepoUmlStateStruct) GetDB() *gorm.DB

func (*BackRepoUmlStateStruct) GetUmlStateDBFromUmlStatePtr

func (backRepoUmlState *BackRepoUmlStateStruct) GetUmlStateDBFromUmlStatePtr(umlstate *models.UmlState) (umlstateDB *UmlStateDB)

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

func (*BackRepoUmlStateStruct) Init

func (backRepoUmlState *BackRepoUmlStateStruct) Init(db *gorm.DB) (Error error)

BackRepoUmlState.Init set up the BackRepo of the UmlState

func (*BackRepoUmlStateStruct) RestorePhaseOne

func (backRepoUmlState *BackRepoUmlStateStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoUmlStateStruct) RestorePhaseTwo

func (backRepoUmlState *BackRepoUmlStateStruct) RestorePhaseTwo()

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

type BackRepoUmlscStruct

type BackRepoUmlscStruct struct {
	// stores UmlscDB according to their gorm ID
	Map_UmlscDBID_UmlscDB *map[uint]*UmlscDB

	// stores UmlscDB ID according to Umlsc address
	Map_UmlscPtr_UmlscDBID *map[*models.Umlsc]uint

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

func (*BackRepoUmlscStruct) Backup

func (backRepoUmlsc *BackRepoUmlscStruct) Backup(dirPath string)

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

func (*BackRepoUmlscStruct) BackupXL

func (backRepoUmlsc *BackRepoUmlscStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoUmlscStruct) CheckoutPhaseOne

func (backRepoUmlsc *BackRepoUmlscStruct) CheckoutPhaseOne() (Error error)

BackRepoUmlsc.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 pahse two)

func (*BackRepoUmlscStruct) CheckoutPhaseOneInstance

func (backRepoUmlsc *BackRepoUmlscStruct) CheckoutPhaseOneInstance(umlscDB *UmlscDB) (Error error)

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

func (*BackRepoUmlscStruct) CheckoutPhaseTwo

func (backRepoUmlsc *BackRepoUmlscStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoUmlscStruct) CheckoutPhaseTwoInstance

func (backRepoUmlsc *BackRepoUmlscStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, umlscDB *UmlscDB) (Error error)

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

func (*BackRepoUmlscStruct) CommitDeleteInstance

func (backRepoUmlsc *BackRepoUmlscStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoUmlsc.CommitDeleteInstance commits deletion of Umlsc to the BackRepo

func (*BackRepoUmlscStruct) CommitPhaseOne

func (backRepoUmlsc *BackRepoUmlscStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoUmlsc.CommitPhaseOne commits all staged instances of Umlsc 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 (*BackRepoUmlscStruct) CommitPhaseOneInstance

func (backRepoUmlsc *BackRepoUmlscStruct) CommitPhaseOneInstance(umlsc *models.Umlsc) (Error error)

BackRepoUmlsc.CommitPhaseOneInstance commits umlsc staged instances of Umlsc 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 (*BackRepoUmlscStruct) CommitPhaseTwo

func (backRepoUmlsc *BackRepoUmlscStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoUmlscStruct) CommitPhaseTwoInstance

func (backRepoUmlsc *BackRepoUmlscStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, umlsc *models.Umlsc) (Error error)

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

func (*BackRepoUmlscStruct) GetDB

func (backRepoUmlsc *BackRepoUmlscStruct) GetDB() *gorm.DB

func (*BackRepoUmlscStruct) GetUmlscDBFromUmlscPtr

func (backRepoUmlsc *BackRepoUmlscStruct) GetUmlscDBFromUmlscPtr(umlsc *models.Umlsc) (umlscDB *UmlscDB)

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

func (*BackRepoUmlscStruct) Init

func (backRepoUmlsc *BackRepoUmlscStruct) Init(db *gorm.DB) (Error error)

BackRepoUmlsc.Init set up the BackRepo of the Umlsc

func (*BackRepoUmlscStruct) RestorePhaseOne

func (backRepoUmlsc *BackRepoUmlscStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoUmlscStruct) RestorePhaseTwo

func (backRepoUmlsc *BackRepoUmlscStruct) RestorePhaseTwo()

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

type BackRepoVerticeStruct

type BackRepoVerticeStruct struct {
	// stores VerticeDB according to their gorm ID
	Map_VerticeDBID_VerticeDB *map[uint]*VerticeDB

	// stores VerticeDB ID according to Vertice address
	Map_VerticePtr_VerticeDBID *map[*models.Vertice]uint

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

func (*BackRepoVerticeStruct) Backup

func (backRepoVertice *BackRepoVerticeStruct) Backup(dirPath string)

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

func (*BackRepoVerticeStruct) BackupXL

func (backRepoVertice *BackRepoVerticeStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoVerticeStruct) CheckoutPhaseOne

func (backRepoVertice *BackRepoVerticeStruct) CheckoutPhaseOne() (Error error)

BackRepoVertice.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 pahse two)

func (*BackRepoVerticeStruct) CheckoutPhaseOneInstance

func (backRepoVertice *BackRepoVerticeStruct) CheckoutPhaseOneInstance(verticeDB *VerticeDB) (Error error)

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

func (*BackRepoVerticeStruct) CheckoutPhaseTwo

func (backRepoVertice *BackRepoVerticeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoVerticeStruct) CheckoutPhaseTwoInstance

func (backRepoVertice *BackRepoVerticeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, verticeDB *VerticeDB) (Error error)

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

func (*BackRepoVerticeStruct) CommitDeleteInstance

func (backRepoVertice *BackRepoVerticeStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoVertice.CommitDeleteInstance commits deletion of Vertice to the BackRepo

func (*BackRepoVerticeStruct) CommitPhaseOne

func (backRepoVertice *BackRepoVerticeStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoVertice.CommitPhaseOne commits all staged instances of Vertice 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 (*BackRepoVerticeStruct) CommitPhaseOneInstance

func (backRepoVertice *BackRepoVerticeStruct) CommitPhaseOneInstance(vertice *models.Vertice) (Error error)

BackRepoVertice.CommitPhaseOneInstance commits vertice staged instances of Vertice 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 (*BackRepoVerticeStruct) CommitPhaseTwo

func (backRepoVertice *BackRepoVerticeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoVerticeStruct) CommitPhaseTwoInstance

func (backRepoVertice *BackRepoVerticeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, vertice *models.Vertice) (Error error)

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

func (*BackRepoVerticeStruct) GetDB

func (backRepoVertice *BackRepoVerticeStruct) GetDB() *gorm.DB

func (*BackRepoVerticeStruct) GetVerticeDBFromVerticePtr

func (backRepoVertice *BackRepoVerticeStruct) GetVerticeDBFromVerticePtr(vertice *models.Vertice) (verticeDB *VerticeDB)

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

func (*BackRepoVerticeStruct) Init

func (backRepoVertice *BackRepoVerticeStruct) Init(db *gorm.DB) (Error error)

BackRepoVertice.Init set up the BackRepo of the Vertice

func (*BackRepoVerticeStruct) RestorePhaseOne

func (backRepoVertice *BackRepoVerticeStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoVerticeStruct) RestorePhaseTwo

func (backRepoVertice *BackRepoVerticeStruct) RestorePhaseTwo()

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

type ClassdiagramAPI

type ClassdiagramAPI struct {
	gorm.Model

	models.Classdiagram

	// encoding of pointers
	ClassdiagramPointersEnconding
}

ClassdiagramAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model classdiagramAPI

type ClassdiagramDB

type ClassdiagramDB struct {
	gorm.Model

	// insertion for basic fields declaration
	// Declation for basic field classdiagramDB.Name {{BasicKind}} (to be completed)
	Name_Data sql.NullString

	// encoding of pointers
	ClassdiagramPointersEnconding
}

ClassdiagramDB describes a classdiagram in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model classdiagramDB

func (*ClassdiagramDB) CopyBasicFieldsFromClassdiagram

func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsFromClassdiagram(classdiagram *models.Classdiagram)

CopyBasicFieldsFromClassdiagram

func (*ClassdiagramDB) CopyBasicFieldsFromClassdiagramWOP

func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsFromClassdiagramWOP(classdiagram *ClassdiagramWOP)

CopyBasicFieldsFromClassdiagramWOP

func (*ClassdiagramDB) CopyBasicFieldsToClassdiagram

func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsToClassdiagram(classdiagram *models.Classdiagram)

CopyBasicFieldsToClassdiagram

func (*ClassdiagramDB) CopyBasicFieldsToClassdiagramWOP

func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsToClassdiagramWOP(classdiagram *ClassdiagramWOP)

CopyBasicFieldsToClassdiagramWOP

type ClassdiagramDBResponse

type ClassdiagramDBResponse struct {
	ClassdiagramDB
}

ClassdiagramDBResponse provides response swagger:response classdiagramDBResponse

type ClassdiagramDBs

type ClassdiagramDBs []ClassdiagramDB

ClassdiagramDBs arrays classdiagramDBs swagger:response classdiagramDBsResponse

type ClassdiagramPointersEnconding

type ClassdiagramPointersEnconding struct {
	// insertion for pointer fields encoding declaration
	// Implementation of a reverse ID for field Pkgelt{}.Classdiagrams []*Classdiagram
	Pkgelt_ClassdiagramsDBID sql.NullInt64

	// implementation of the index of the withing the slice
	Pkgelt_ClassdiagramsDBID_Index sql.NullInt64
}

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

type ClassdiagramWOP

type ClassdiagramWOP struct {
	ID int

	Name string
}

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

type ClassshapeAPI

type ClassshapeAPI struct {
	gorm.Model

	models.Classshape

	// encoding of pointers
	ClassshapePointersEnconding
}

ClassshapeAPI 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 classshapeAPI

type ClassshapeDB

type ClassshapeDB struct {
	gorm.Model

	// insertion for basic fields declaration
	// Declation for basic field classshapeDB.Name {{BasicKind}} (to be completed)
	Name_Data sql.NullString

	// Declation for basic field classshapeDB.Structname {{BasicKind}} (to be completed)
	Structname_Data sql.NullString

	// Declation for basic field classshapeDB.Width {{BasicKind}} (to be completed)
	Width_Data sql.NullFloat64

	// Declation for basic field classshapeDB.Heigth {{BasicKind}} (to be completed)
	Heigth_Data sql.NullFloat64

	// Declation for basic field classshapeDB.ClassshapeTargetType {{BasicKind}} (to be completed)
	ClassshapeTargetType_Data sql.NullString

	// encoding of pointers
	ClassshapePointersEnconding
}

ClassshapeDB describes a classshape 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 classshapeDB

func (*ClassshapeDB) CopyBasicFieldsFromClassshape

func (classshapeDB *ClassshapeDB) CopyBasicFieldsFromClassshape(classshape *models.Classshape)

CopyBasicFieldsFromClassshape

func (*ClassshapeDB) CopyBasicFieldsFromClassshapeWOP

func (classshapeDB *ClassshapeDB) CopyBasicFieldsFromClassshapeWOP(classshape *ClassshapeWOP)

CopyBasicFieldsFromClassshapeWOP

func (*ClassshapeDB) CopyBasicFieldsToClassshape

func (classshapeDB *ClassshapeDB) CopyBasicFieldsToClassshape(classshape *models.Classshape)

CopyBasicFieldsToClassshape

func (*ClassshapeDB) CopyBasicFieldsToClassshapeWOP

func (classshapeDB *ClassshapeDB) CopyBasicFieldsToClassshapeWOP(classshape *ClassshapeWOP)

CopyBasicFieldsToClassshapeWOP

type ClassshapeDBResponse

type ClassshapeDBResponse struct {
	ClassshapeDB
}

ClassshapeDBResponse provides response swagger:response classshapeDBResponse

type ClassshapeDBs

type ClassshapeDBs []ClassshapeDB

ClassshapeDBs arrays classshapeDBs swagger:response classshapeDBsResponse

type ClassshapePointersEnconding

type ClassshapePointersEnconding struct {
	// insertion for pointer fields encoding declaration
	// field Position is a pointer to another Struct (optional or 0..1)
	// This field is generated into another field to enable AS ONE association
	PositionID sql.NullInt64

	// Implementation of a reverse ID for field Classdiagram{}.Classshapes []*Classshape
	Classdiagram_ClassshapesDBID sql.NullInt64

	// implementation of the index of the withing the slice
	Classdiagram_ClassshapesDBID_Index sql.NullInt64
}

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

type ClassshapeWOP

type ClassshapeWOP struct {
	ID int

	Name string

	Structname string

	Width float64

	Heigth float64

	ClassshapeTargetType models.ClassshapeTargetType
}

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

type FieldAPI

type FieldAPI struct {
	gorm.Model

	models.Field

	// encoding of pointers
	FieldPointersEnconding
}

FieldAPI 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 fieldAPI

type FieldDB

type FieldDB struct {
	gorm.Model

	// insertion for basic fields declaration
	// Declation for basic field fieldDB.Name {{BasicKind}} (to be completed)
	Name_Data sql.NullString

	// Declation for basic field fieldDB.Fieldname {{BasicKind}} (to be completed)
	Fieldname_Data sql.NullString

	// Declation for basic field fieldDB.FieldTypeAsString {{BasicKind}} (to be completed)
	FieldTypeAsString_Data sql.NullString

	// Declation for basic field fieldDB.Structname {{BasicKind}} (to be completed)
	Structname_Data sql.NullString

	// Declation for basic field fieldDB.Fieldtypename {{BasicKind}} (to be completed)
	Fieldtypename_Data sql.NullString

	// encoding of pointers
	FieldPointersEnconding
}

FieldDB describes a field 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 fieldDB

func (*FieldDB) CopyBasicFieldsFromField

func (fieldDB *FieldDB) CopyBasicFieldsFromField(field *models.Field)

CopyBasicFieldsFromField

func (*FieldDB) CopyBasicFieldsFromFieldWOP

func (fieldDB *FieldDB) CopyBasicFieldsFromFieldWOP(field *FieldWOP)

CopyBasicFieldsFromFieldWOP

func (*FieldDB) CopyBasicFieldsToField

func (fieldDB *FieldDB) CopyBasicFieldsToField(field *models.Field)

CopyBasicFieldsToField

func (*FieldDB) CopyBasicFieldsToFieldWOP

func (fieldDB *FieldDB) CopyBasicFieldsToFieldWOP(field *FieldWOP)

CopyBasicFieldsToFieldWOP

type FieldDBResponse

type FieldDBResponse struct {
	FieldDB
}

FieldDBResponse provides response swagger:response fieldDBResponse

type FieldDBs

type FieldDBs []FieldDB

FieldDBs arrays fieldDBs swagger:response fieldDBsResponse

type FieldPointersEnconding

type FieldPointersEnconding struct {
	// insertion for pointer fields encoding declaration
	// Implementation of a reverse ID for field Classshape{}.Fields []*Field
	Classshape_FieldsDBID sql.NullInt64

	// implementation of the index of the withing the slice
	Classshape_FieldsDBID_Index sql.NullInt64
}

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

type FieldWOP

type FieldWOP struct {
	ID int

	Name string

	Fieldname string

	FieldTypeAsString string

	Structname string

	Fieldtypename string
}

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

type GongdocCommandAPI

type GongdocCommandAPI struct {
	gorm.Model

	models.GongdocCommand

	// encoding of pointers
	GongdocCommandPointersEnconding
}

GongdocCommandAPI 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 gongdoccommandAPI

type GongdocCommandDB

type GongdocCommandDB struct {
	gorm.Model

	// insertion for basic fields declaration
	// Declation for basic field gongdoccommandDB.Name {{BasicKind}} (to be completed)
	Name_Data sql.NullString

	// Declation for basic field gongdoccommandDB.Command {{BasicKind}} (to be completed)
	Command_Data sql.NullString

	// Declation for basic field gongdoccommandDB.DiagramName {{BasicKind}} (to be completed)
	DiagramName_Data sql.NullString

	// Declation for basic field gongdoccommandDB.Date {{BasicKind}} (to be completed)
	Date_Data sql.NullString

	// Declation for basic field gongdoccommandDB.GongdocNodeType {{BasicKind}} (to be completed)
	GongdocNodeType_Data sql.NullString

	// Declation for basic field gongdoccommandDB.StructName {{BasicKind}} (to be completed)
	StructName_Data sql.NullString

	// Declation for basic field gongdoccommandDB.FieldName {{BasicKind}} (to be completed)
	FieldName_Data sql.NullString

	// Declation for basic field gongdoccommandDB.FieldTypeName {{BasicKind}} (to be completed)
	FieldTypeName_Data sql.NullString

	// Declation for basic field gongdoccommandDB.PositionX {{BasicKind}} (to be completed)
	PositionX_Data sql.NullInt64

	// Declation for basic field gongdoccommandDB.PositionY {{BasicKind}} (to be completed)
	PositionY_Data sql.NullInt64

	// encoding of pointers
	GongdocCommandPointersEnconding
}

GongdocCommandDB describes a gongdoccommand 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 gongdoccommandDB

func (*GongdocCommandDB) CopyBasicFieldsFromGongdocCommand

func (gongdoccommandDB *GongdocCommandDB) CopyBasicFieldsFromGongdocCommand(gongdoccommand *models.GongdocCommand)

CopyBasicFieldsFromGongdocCommand

func (*GongdocCommandDB) CopyBasicFieldsFromGongdocCommandWOP

func (gongdoccommandDB *GongdocCommandDB) CopyBasicFieldsFromGongdocCommandWOP(gongdoccommand *GongdocCommandWOP)

CopyBasicFieldsFromGongdocCommandWOP

func (*GongdocCommandDB) CopyBasicFieldsToGongdocCommand

func (gongdoccommandDB *GongdocCommandDB) CopyBasicFieldsToGongdocCommand(gongdoccommand *models.GongdocCommand)

CopyBasicFieldsToGongdocCommand

func (*GongdocCommandDB) CopyBasicFieldsToGongdocCommandWOP

func (gongdoccommandDB *GongdocCommandDB) CopyBasicFieldsToGongdocCommandWOP(gongdoccommand *GongdocCommandWOP)

CopyBasicFieldsToGongdocCommandWOP

type GongdocCommandDBResponse

type GongdocCommandDBResponse struct {
	GongdocCommandDB
}

GongdocCommandDBResponse provides response swagger:response gongdoccommandDBResponse

type GongdocCommandDBs

type GongdocCommandDBs []GongdocCommandDB

GongdocCommandDBs arrays gongdoccommandDBs swagger:response gongdoccommandDBsResponse

type GongdocCommandPointersEnconding

type GongdocCommandPointersEnconding struct {
}

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

type GongdocCommandWOP

type GongdocCommandWOP struct {
	ID int

	Name string

	Command models.GongdocCommandType

	DiagramName string

	Date string

	GongdocNodeType models.GongdocNodeType

	StructName string

	FieldName string

	FieldTypeName string

	PositionX int

	PositionY int
}

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

type GongdocStatusAPI

type GongdocStatusAPI struct {
	gorm.Model

	models.GongdocStatus

	// encoding of pointers
	GongdocStatusPointersEnconding
}

GongdocStatusAPI 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 gongdocstatusAPI

type GongdocStatusDB

type GongdocStatusDB struct {
	gorm.Model

	// insertion for basic fields declaration
	// Declation for basic field gongdocstatusDB.Name {{BasicKind}} (to be completed)
	Name_Data sql.NullString

	// Declation for basic field gongdocstatusDB.Status {{BasicKind}} (to be completed)
	Status_Data sql.NullString

	// Declation for basic field gongdocstatusDB.CommandCompletionDate {{BasicKind}} (to be completed)
	CommandCompletionDate_Data sql.NullString

	// encoding of pointers
	GongdocStatusPointersEnconding
}

GongdocStatusDB describes a gongdocstatus 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 gongdocstatusDB

func (*GongdocStatusDB) CopyBasicFieldsFromGongdocStatus

func (gongdocstatusDB *GongdocStatusDB) CopyBasicFieldsFromGongdocStatus(gongdocstatus *models.GongdocStatus)

CopyBasicFieldsFromGongdocStatus

func (*GongdocStatusDB) CopyBasicFieldsFromGongdocStatusWOP

func (gongdocstatusDB *GongdocStatusDB) CopyBasicFieldsFromGongdocStatusWOP(gongdocstatus *GongdocStatusWOP)

CopyBasicFieldsFromGongdocStatusWOP

func (*GongdocStatusDB) CopyBasicFieldsToGongdocStatus

func (gongdocstatusDB *GongdocStatusDB) CopyBasicFieldsToGongdocStatus(gongdocstatus *models.GongdocStatus)

CopyBasicFieldsToGongdocStatus

func (*GongdocStatusDB) CopyBasicFieldsToGongdocStatusWOP

func (gongdocstatusDB *GongdocStatusDB) CopyBasicFieldsToGongdocStatusWOP(gongdocstatus *GongdocStatusWOP)

CopyBasicFieldsToGongdocStatusWOP

type GongdocStatusDBResponse

type GongdocStatusDBResponse struct {
	GongdocStatusDB
}

GongdocStatusDBResponse provides response swagger:response gongdocstatusDBResponse

type GongdocStatusDBs

type GongdocStatusDBs []GongdocStatusDB

GongdocStatusDBs arrays gongdocstatusDBs swagger:response gongdocstatusDBsResponse

type GongdocStatusPointersEnconding

type GongdocStatusPointersEnconding struct {
}

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

type GongdocStatusWOP

type GongdocStatusWOP struct {
	ID int

	Name string

	Status models.GongdocCommandType

	CommandCompletionDate string
}

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

type LinkAPI

type LinkAPI struct {
	gorm.Model

	models.Link

	// encoding of pointers
	LinkPointersEnconding
}

LinkAPI 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 linkAPI

type LinkDB

type LinkDB struct {
	gorm.Model

	// insertion for basic fields declaration
	// Declation for basic field linkDB.Name {{BasicKind}} (to be completed)
	Name_Data sql.NullString

	// Declation for basic field linkDB.Fieldname {{BasicKind}} (to be completed)
	Fieldname_Data sql.NullString

	// Declation for basic field linkDB.Structname {{BasicKind}} (to be completed)
	Structname_Data sql.NullString

	// Declation for basic field linkDB.Fieldtypename {{BasicKind}} (to be completed)
	Fieldtypename_Data sql.NullString

	// Declation for basic field linkDB.Multiplicity {{BasicKind}} (to be completed)
	Multiplicity_Data sql.NullString

	// encoding of pointers
	LinkPointersEnconding
}

LinkDB describes a link 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 linkDB

func (linkDB *LinkDB) CopyBasicFieldsFromLink(link *models.Link)

CopyBasicFieldsFromLink

func (*LinkDB) CopyBasicFieldsFromLinkWOP

func (linkDB *LinkDB) CopyBasicFieldsFromLinkWOP(link *LinkWOP)

CopyBasicFieldsFromLinkWOP

func (linkDB *LinkDB) CopyBasicFieldsToLink(link *models.Link)

CopyBasicFieldsToLink

func (*LinkDB) CopyBasicFieldsToLinkWOP

func (linkDB *LinkDB) CopyBasicFieldsToLinkWOP(link *LinkWOP)

CopyBasicFieldsToLinkWOP

type LinkDBResponse

type LinkDBResponse struct {
	LinkDB
}

LinkDBResponse provides response swagger:response linkDBResponse

type LinkDBs

type LinkDBs []LinkDB

LinkDBs arrays linkDBs swagger:response linkDBsResponse

type LinkPointersEnconding

type LinkPointersEnconding struct {
	// insertion for pointer fields encoding declaration
	// field Middlevertice is a pointer to another Struct (optional or 0..1)
	// This field is generated into another field to enable AS ONE association
	MiddleverticeID sql.NullInt64

	// Implementation of a reverse ID for field Classshape{}.Links []*Link
	Classshape_LinksDBID sql.NullInt64

	// implementation of the index of the withing the slice
	Classshape_LinksDBID_Index sql.NullInt64
}

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

type LinkWOP

type LinkWOP struct {
	ID int

	Name string

	Fieldname string

	Structname string

	Fieldtypename string

	Multiplicity models.MultiplicityType
}

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

type PkgeltAPI

type PkgeltAPI struct {
	gorm.Model

	models.Pkgelt

	// encoding of pointers
	PkgeltPointersEnconding
}

PkgeltAPI 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 pkgeltAPI

type PkgeltDB

type PkgeltDB struct {
	gorm.Model

	// insertion for basic fields declaration
	// Declation for basic field pkgeltDB.Name {{BasicKind}} (to be completed)
	Name_Data sql.NullString

	// Declation for basic field pkgeltDB.Path {{BasicKind}} (to be completed)
	Path_Data sql.NullString

	// encoding of pointers
	PkgeltPointersEnconding
}

PkgeltDB describes a pkgelt 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 pkgeltDB

func (*PkgeltDB) CopyBasicFieldsFromPkgelt

func (pkgeltDB *PkgeltDB) CopyBasicFieldsFromPkgelt(pkgelt *models.Pkgelt)

CopyBasicFieldsFromPkgelt

func (*PkgeltDB) CopyBasicFieldsFromPkgeltWOP

func (pkgeltDB *PkgeltDB) CopyBasicFieldsFromPkgeltWOP(pkgelt *PkgeltWOP)

CopyBasicFieldsFromPkgeltWOP

func (*PkgeltDB) CopyBasicFieldsToPkgelt

func (pkgeltDB *PkgeltDB) CopyBasicFieldsToPkgelt(pkgelt *models.Pkgelt)

CopyBasicFieldsToPkgelt

func (*PkgeltDB) CopyBasicFieldsToPkgeltWOP

func (pkgeltDB *PkgeltDB) CopyBasicFieldsToPkgeltWOP(pkgelt *PkgeltWOP)

CopyBasicFieldsToPkgeltWOP

type PkgeltDBResponse

type PkgeltDBResponse struct {
	PkgeltDB
}

PkgeltDBResponse provides response swagger:response pkgeltDBResponse

type PkgeltDBs

type PkgeltDBs []PkgeltDB

PkgeltDBs arrays pkgeltDBs swagger:response pkgeltDBsResponse

type PkgeltPointersEnconding

type PkgeltPointersEnconding struct {
}

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

type PkgeltWOP

type PkgeltWOP struct {
	ID int

	Name string

	Path string
}

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

type PositionAPI

type PositionAPI struct {
	gorm.Model

	models.Position

	// encoding of pointers
	PositionPointersEnconding
}

PositionAPI 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 positionAPI

type PositionDB

type PositionDB struct {
	gorm.Model

	// insertion for basic fields declaration
	// Declation for basic field positionDB.X {{BasicKind}} (to be completed)
	X_Data sql.NullFloat64

	// Declation for basic field positionDB.Y {{BasicKind}} (to be completed)
	Y_Data sql.NullFloat64

	// Declation for basic field positionDB.Name {{BasicKind}} (to be completed)
	Name_Data sql.NullString

	// encoding of pointers
	PositionPointersEnconding
}

PositionDB describes a position 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 positionDB

func (*PositionDB) CopyBasicFieldsFromPosition

func (positionDB *PositionDB) CopyBasicFieldsFromPosition(position *models.Position)

CopyBasicFieldsFromPosition

func (*PositionDB) CopyBasicFieldsFromPositionWOP

func (positionDB *PositionDB) CopyBasicFieldsFromPositionWOP(position *PositionWOP)

CopyBasicFieldsFromPositionWOP

func (*PositionDB) CopyBasicFieldsToPosition

func (positionDB *PositionDB) CopyBasicFieldsToPosition(position *models.Position)

CopyBasicFieldsToPosition

func (*PositionDB) CopyBasicFieldsToPositionWOP

func (positionDB *PositionDB) CopyBasicFieldsToPositionWOP(position *PositionWOP)

CopyBasicFieldsToPositionWOP

type PositionDBResponse

type PositionDBResponse struct {
	PositionDB
}

PositionDBResponse provides response swagger:response positionDBResponse

type PositionDBs

type PositionDBs []PositionDB

PositionDBs arrays positionDBs swagger:response positionDBsResponse

type PositionPointersEnconding

type PositionPointersEnconding struct {
}

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

type PositionWOP

type PositionWOP struct {
	ID int

	X float64

	Y float64

	Name string
}

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

type UmlStateAPI

type UmlStateAPI struct {
	gorm.Model

	models.UmlState

	// encoding of pointers
	UmlStatePointersEnconding
}

UmlStateAPI 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 umlstateAPI

type UmlStateDB

type UmlStateDB struct {
	gorm.Model

	// insertion for basic fields declaration
	// Declation for basic field umlstateDB.Name {{BasicKind}} (to be completed)
	Name_Data sql.NullString

	// Declation for basic field umlstateDB.X {{BasicKind}} (to be completed)
	X_Data sql.NullFloat64

	// Declation for basic field umlstateDB.Y {{BasicKind}} (to be completed)
	Y_Data sql.NullFloat64

	// encoding of pointers
	UmlStatePointersEnconding
}

UmlStateDB describes a umlstate 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 umlstateDB

func (*UmlStateDB) CopyBasicFieldsFromUmlState

func (umlstateDB *UmlStateDB) CopyBasicFieldsFromUmlState(umlstate *models.UmlState)

CopyBasicFieldsFromUmlState

func (*UmlStateDB) CopyBasicFieldsFromUmlStateWOP

func (umlstateDB *UmlStateDB) CopyBasicFieldsFromUmlStateWOP(umlstate *UmlStateWOP)

CopyBasicFieldsFromUmlStateWOP

func (*UmlStateDB) CopyBasicFieldsToUmlState

func (umlstateDB *UmlStateDB) CopyBasicFieldsToUmlState(umlstate *models.UmlState)

CopyBasicFieldsToUmlState

func (*UmlStateDB) CopyBasicFieldsToUmlStateWOP

func (umlstateDB *UmlStateDB) CopyBasicFieldsToUmlStateWOP(umlstate *UmlStateWOP)

CopyBasicFieldsToUmlStateWOP

type UmlStateDBResponse

type UmlStateDBResponse struct {
	UmlStateDB
}

UmlStateDBResponse provides response swagger:response umlstateDBResponse

type UmlStateDBs

type UmlStateDBs []UmlStateDB

UmlStateDBs arrays umlstateDBs swagger:response umlstateDBsResponse

type UmlStatePointersEnconding

type UmlStatePointersEnconding struct {
	// insertion for pointer fields encoding declaration
	// Implementation of a reverse ID for field Umlsc{}.States []*UmlState
	Umlsc_StatesDBID sql.NullInt64

	// implementation of the index of the withing the slice
	Umlsc_StatesDBID_Index sql.NullInt64
}

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

type UmlStateWOP

type UmlStateWOP struct {
	ID int

	Name string

	X float64

	Y float64
}

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

type UmlscAPI

type UmlscAPI struct {
	gorm.Model

	models.Umlsc

	// encoding of pointers
	UmlscPointersEnconding
}

UmlscAPI 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 umlscAPI

type UmlscDB

type UmlscDB struct {
	gorm.Model

	// insertion for basic fields declaration
	// Declation for basic field umlscDB.Name {{BasicKind}} (to be completed)
	Name_Data sql.NullString

	// Declation for basic field umlscDB.Activestate {{BasicKind}} (to be completed)
	Activestate_Data sql.NullString

	// encoding of pointers
	UmlscPointersEnconding
}

UmlscDB describes a umlsc 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 umlscDB

func (*UmlscDB) CopyBasicFieldsFromUmlsc

func (umlscDB *UmlscDB) CopyBasicFieldsFromUmlsc(umlsc *models.Umlsc)

CopyBasicFieldsFromUmlsc

func (*UmlscDB) CopyBasicFieldsFromUmlscWOP

func (umlscDB *UmlscDB) CopyBasicFieldsFromUmlscWOP(umlsc *UmlscWOP)

CopyBasicFieldsFromUmlscWOP

func (*UmlscDB) CopyBasicFieldsToUmlsc

func (umlscDB *UmlscDB) CopyBasicFieldsToUmlsc(umlsc *models.Umlsc)

CopyBasicFieldsToUmlsc

func (*UmlscDB) CopyBasicFieldsToUmlscWOP

func (umlscDB *UmlscDB) CopyBasicFieldsToUmlscWOP(umlsc *UmlscWOP)

CopyBasicFieldsToUmlscWOP

type UmlscDBResponse

type UmlscDBResponse struct {
	UmlscDB
}

UmlscDBResponse provides response swagger:response umlscDBResponse

type UmlscDBs

type UmlscDBs []UmlscDB

UmlscDBs arrays umlscDBs swagger:response umlscDBsResponse

type UmlscPointersEnconding

type UmlscPointersEnconding struct {
	// insertion for pointer fields encoding declaration
	// Implementation of a reverse ID for field Pkgelt{}.Umlscs []*Umlsc
	Pkgelt_UmlscsDBID sql.NullInt64

	// implementation of the index of the withing the slice
	Pkgelt_UmlscsDBID_Index sql.NullInt64
}

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

type UmlscWOP

type UmlscWOP struct {
	ID int

	Name string

	Activestate string
}

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

type VerticeAPI

type VerticeAPI struct {
	gorm.Model

	models.Vertice

	// encoding of pointers
	VerticePointersEnconding
}

VerticeAPI 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 verticeAPI

type VerticeDB

type VerticeDB struct {
	gorm.Model

	// insertion for basic fields declaration
	// Declation for basic field verticeDB.X {{BasicKind}} (to be completed)
	X_Data sql.NullFloat64

	// Declation for basic field verticeDB.Y {{BasicKind}} (to be completed)
	Y_Data sql.NullFloat64

	// Declation for basic field verticeDB.Name {{BasicKind}} (to be completed)
	Name_Data sql.NullString

	// encoding of pointers
	VerticePointersEnconding
}

VerticeDB describes a vertice 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 verticeDB

func (*VerticeDB) CopyBasicFieldsFromVertice

func (verticeDB *VerticeDB) CopyBasicFieldsFromVertice(vertice *models.Vertice)

CopyBasicFieldsFromVertice

func (*VerticeDB) CopyBasicFieldsFromVerticeWOP

func (verticeDB *VerticeDB) CopyBasicFieldsFromVerticeWOP(vertice *VerticeWOP)

CopyBasicFieldsFromVerticeWOP

func (*VerticeDB) CopyBasicFieldsToVertice

func (verticeDB *VerticeDB) CopyBasicFieldsToVertice(vertice *models.Vertice)

CopyBasicFieldsToVertice

func (*VerticeDB) CopyBasicFieldsToVerticeWOP

func (verticeDB *VerticeDB) CopyBasicFieldsToVerticeWOP(vertice *VerticeWOP)

CopyBasicFieldsToVerticeWOP

type VerticeDBResponse

type VerticeDBResponse struct {
	VerticeDB
}

VerticeDBResponse provides response swagger:response verticeDBResponse

type VerticeDBs

type VerticeDBs []VerticeDB

VerticeDBs arrays verticeDBs swagger:response verticeDBsResponse

type VerticePointersEnconding

type VerticePointersEnconding struct {
}

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

type VerticeWOP

type VerticeWOP struct {
	ID int

	X float64

	Y float64

	Name string
}

VerticeWOP is a Vertice 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL