orm

package
v0.0.0-...-2829e0f Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 19 Imported by: 1

Documentation

Overview

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

do not modify, generated file

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

Index

Constants

This section is empty.

Variables

View Source
var Animate_Fields = []string{

	"ID",
	"Name",
	"AttributeName",
	"Values",
	"Dur",
	"RepeatCount",
}
View Source
var BackRepoAnimateid_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 BackRepoCircleid_atBckpTime_newID map[uint]uint

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

View Source
var BackRepoEllipseid_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 BackRepoLayerid_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 BackRepoLineid_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 BackRepoLinkAnchoredTextid_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 BackRepoPathid_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 BackRepoPointid_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 BackRepoPolygoneid_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 BackRepoPolylineid_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 BackRepoRectAnchoredPathid_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 BackRepoRectAnchoredRectid_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 BackRepoRectAnchoredTextid_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 BackRepoRectLinkLinkid_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 BackRepoRectid_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 BackRepoSVGid_atBckpTime_newID map[uint]uint

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

View Source
var BackRepoTextid_atBckpTime_newID map[uint]uint

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

View Source
var Circle_Fields = []string{

	"ID",
	"Name",
	"CX",
	"CY",
	"Radius",
	"Color",
	"FillOpacity",
	"Stroke",
	"StrokeWidth",
	"StrokeDashArray",
	"StrokeDashArrayWhenSelected",
	"Transform",
}
View Source
var Ellipse_Fields = []string{

	"ID",
	"Name",
	"CX",
	"CY",
	"RX",
	"RY",
	"Color",
	"FillOpacity",
	"Stroke",
	"StrokeWidth",
	"StrokeDashArray",
	"StrokeDashArrayWhenSelected",
	"Transform",
}
View Source
var Layer_Fields = []string{

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

	"ID",
	"Name",
	"X1",
	"Y1",
	"X2",
	"Y2",
	"Color",
	"FillOpacity",
	"Stroke",
	"StrokeWidth",
	"StrokeDashArray",
	"StrokeDashArrayWhenSelected",
	"Transform",
	"MouseClickX",
	"MouseClickY",
}
View Source
var LinkAnchoredText_Fields = []string{

	"ID",
	"Name",
	"Content",
	"AutomaticLayout",
	"LinkAnchorType",
	"X_Offset",
	"Y_Offset",
	"FontWeight",
	"Color",
	"FillOpacity",
	"Stroke",
	"StrokeWidth",
	"StrokeDashArray",
	"StrokeDashArrayWhenSelected",
	"Transform",
}
View Source
var Link_Fields = []string{

	"ID",
	"Name",
	"Type",
	"IsBezierCurve",
	"StartAnchorType",
	"EndAnchorType",
	"StartOrientation",
	"StartRatio",
	"EndOrientation",
	"EndRatio",
	"CornerOffsetRatio",
	"CornerRadius",
	"HasEndArrow",
	"EndArrowSize",
	"HasStartArrow",
	"StartArrowSize",
	"Color",
	"FillOpacity",
	"Stroke",
	"StrokeWidth",
	"StrokeDashArray",
	"StrokeDashArrayWhenSelected",
	"Transform",
}
View Source
var Path_Fields = []string{

	"ID",
	"Name",
	"Definition",
	"Color",
	"FillOpacity",
	"Stroke",
	"StrokeWidth",
	"StrokeDashArray",
	"StrokeDashArrayWhenSelected",
	"Transform",
}
View Source
var Point_Fields = []string{

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

	"ID",
	"Name",
	"Points",
	"Color",
	"FillOpacity",
	"Stroke",
	"StrokeWidth",
	"StrokeDashArray",
	"StrokeDashArrayWhenSelected",
	"Transform",
}
View Source
var Polyline_Fields = []string{

	"ID",
	"Name",
	"Points",
	"Color",
	"FillOpacity",
	"Stroke",
	"StrokeWidth",
	"StrokeDashArray",
	"StrokeDashArrayWhenSelected",
	"Transform",
}
View Source
var RectAnchoredPath_Fields = []string{

	"ID",
	"Name",
	"Definition",
	"X_Offset",
	"Y_Offset",
	"RectAnchorType",
	"ScalePropotionnally",
	"AppliedScaling",
	"Color",
	"FillOpacity",
	"Stroke",
	"StrokeWidth",
	"StrokeDashArray",
	"StrokeDashArrayWhenSelected",
	"Transform",
}
View Source
var RectAnchoredRect_Fields = []string{

	"ID",
	"Name",
	"X",
	"Y",
	"Width",
	"Height",
	"RX",
	"X_Offset",
	"Y_Offset",
	"RectAnchorType",
	"WidthFollowRect",
	"HeightFollowRect",
	"Color",
	"FillOpacity",
	"Stroke",
	"StrokeWidth",
	"StrokeDashArray",
	"StrokeDashArrayWhenSelected",
	"Transform",
}
View Source
var RectAnchoredText_Fields = []string{

	"ID",
	"Name",
	"Content",
	"FontWeight",
	"FontSize",
	"X_Offset",
	"Y_Offset",
	"RectAnchorType",
	"TextAnchorType",
	"Color",
	"FillOpacity",
	"Stroke",
	"StrokeWidth",
	"StrokeDashArray",
	"StrokeDashArrayWhenSelected",
	"Transform",
}
View Source
var RectLinkLink_Fields = []string{

	"ID",
	"Name",
	"TargetAnchorPosition",
	"Color",
	"FillOpacity",
	"Stroke",
	"StrokeWidth",
	"StrokeDashArray",
	"StrokeDashArrayWhenSelected",
	"Transform",
}
View Source
var Rect_Fields = []string{

	"ID",
	"Name",
	"X",
	"Y",
	"Width",
	"Height",
	"RX",
	"Color",
	"FillOpacity",
	"Stroke",
	"StrokeWidth",
	"StrokeDashArray",
	"StrokeDashArrayWhenSelected",
	"Transform",
	"IsSelectable",
	"IsSelected",
	"CanHaveLeftHandle",
	"HasLeftHandle",
	"CanHaveRightHandle",
	"HasRightHandle",
	"CanHaveTopHandle",
	"HasTopHandle",
	"IsScalingProportionally",
	"CanHaveBottomHandle",
	"HasBottomHandle",
	"CanMoveHorizontaly",
	"CanMoveVerticaly",
}
View Source
var SVG_Fields = []string{

	"ID",
	"Name",
	"DrawingState",
	"IsEditable",
}
View Source
var Text_Fields = []string{

	"ID",
	"Name",
	"X",
	"Y",
	"Content",
	"Color",
	"FillOpacity",
	"Stroke",
	"StrokeWidth",
	"StrokeDashArray",
	"StrokeDashArrayWhenSelected",
	"Transform",
}

Functions

func CopyBackRepoToBackRepoData

func CopyBackRepoToBackRepoData(backRepo *BackRepoStruct, backRepoData *BackRepoData)

func GetID

func GetID[T models.Gongstruct](
	stage *models.StageStruct,
	backRepo *BackRepoStruct,
	instance *T) (id int)

func GetIDPointer

func GetIDPointer[T models.PointerToGongstruct](
	stage *models.StageStruct,
	backRepo *BackRepoStruct,
	instance T) (id int)

func GetInstanceDBFromInstance

func GetInstanceDBFromInstance[T models.Gongstruct, T2 GongstructDB](
	stage *models.StageStruct,
	backRepo *BackRepoStruct,
	instance *T) (ret *T2)

func GetReverseFieldOwner

func GetReverseFieldOwner[T models.Gongstruct](
	stage *models.StageStruct,
	backRepo *BackRepoStruct,
	instance *T,
	reverseField *models.ReverseField) (res any)

func GetReverseFieldOwnerName

func GetReverseFieldOwnerName[T models.Gongstruct](
	stage *models.StageStruct,
	backRepo *BackRepoStruct,
	instance *T,
	reverseField *models.ReverseField) (res string)

Types

type AnimateAPI

type AnimateAPI struct {
	gorm.Model

	models.Animate_WOP

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

AnimateAPI 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 animateAPI

type AnimateDB

type AnimateDB struct {
	gorm.Model

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

	// Declation for basic field animateDB.AttributeName
	AttributeName_Data sql.NullString

	// Declation for basic field animateDB.Values
	Values_Data sql.NullString

	// Declation for basic field animateDB.Dur
	Dur_Data sql.NullString

	// Declation for basic field animateDB.RepeatCount
	RepeatCount_Data sql.NullString

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

AnimateDB describes a animate 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 animateDB

func (*AnimateDB) CopyBasicFieldsFromAnimate

func (animateDB *AnimateDB) CopyBasicFieldsFromAnimate(animate *models.Animate)

CopyBasicFieldsFromAnimate

func (*AnimateDB) CopyBasicFieldsFromAnimateWOP

func (animateDB *AnimateDB) CopyBasicFieldsFromAnimateWOP(animate *AnimateWOP)

CopyBasicFieldsFromAnimateWOP

func (*AnimateDB) CopyBasicFieldsFromAnimate_WOP

func (animateDB *AnimateDB) CopyBasicFieldsFromAnimate_WOP(animate *models.Animate_WOP)

CopyBasicFieldsFromAnimate_WOP

func (*AnimateDB) CopyBasicFieldsToAnimate

func (animateDB *AnimateDB) CopyBasicFieldsToAnimate(animate *models.Animate)

CopyBasicFieldsToAnimate

func (*AnimateDB) CopyBasicFieldsToAnimateWOP

func (animateDB *AnimateDB) CopyBasicFieldsToAnimateWOP(animate *AnimateWOP)

CopyBasicFieldsToAnimateWOP

func (*AnimateDB) CopyBasicFieldsToAnimate_WOP

func (animateDB *AnimateDB) CopyBasicFieldsToAnimate_WOP(animate *models.Animate_WOP)

CopyBasicFieldsToAnimate_WOP

func (*AnimateDB) DecodePointers

func (animateDB *AnimateDB) DecodePointers(backRepo *BackRepoStruct, animate *models.Animate)

type AnimateDBResponse

type AnimateDBResponse struct {
	AnimateDB
}

AnimateDBResponse provides response swagger:response animateDBResponse

type AnimateDBs

type AnimateDBs []AnimateDB

AnimateDBs arrays animateDBs swagger:response animateDBsResponse

type AnimatePointersEncoding

type AnimatePointersEncoding struct {
}

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

type AnimateWOP

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

	Name string `xlsx:"1"`

	AttributeName string `xlsx:"2"`

	Values string `xlsx:"3"`

	Dur string `xlsx:"4"`

	RepeatCount string `xlsx:"5"`
}

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

type BackRepoAnimateStruct

type BackRepoAnimateStruct struct {
	// stores AnimateDB according to their gorm ID
	Map_AnimateDBID_AnimateDB map[uint]*AnimateDB

	// stores AnimateDB ID according to Animate address
	Map_AnimatePtr_AnimateDBID map[*models.Animate]uint

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

func (*BackRepoAnimateStruct) Backup

func (backRepoAnimate *BackRepoAnimateStruct) Backup(dirPath string)

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

func (*BackRepoAnimateStruct) BackupXL

func (backRepoAnimate *BackRepoAnimateStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoAnimateStruct) CheckoutPhaseOne

func (backRepoAnimate *BackRepoAnimateStruct) CheckoutPhaseOne() (Error error)

BackRepoAnimate.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

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

func (*BackRepoAnimateStruct) CheckoutPhaseOneInstance

func (backRepoAnimate *BackRepoAnimateStruct) CheckoutPhaseOneInstance(animateDB *AnimateDB) (Error error)

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

func (*BackRepoAnimateStruct) CheckoutPhaseTwo

func (backRepoAnimate *BackRepoAnimateStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoAnimateStruct) CheckoutPhaseTwoInstance

func (backRepoAnimate *BackRepoAnimateStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, animateDB *AnimateDB) (Error error)

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

func (*BackRepoAnimateStruct) CommitDeleteInstance

func (backRepoAnimate *BackRepoAnimateStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoAnimate.CommitDeleteInstance commits deletion of Animate to the BackRepo

func (*BackRepoAnimateStruct) CommitPhaseOne

func (backRepoAnimate *BackRepoAnimateStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoAnimate.CommitPhaseOne commits all staged instances of Animate 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 (*BackRepoAnimateStruct) CommitPhaseOneInstance

func (backRepoAnimate *BackRepoAnimateStruct) CommitPhaseOneInstance(animate *models.Animate) (Error error)

BackRepoAnimate.CommitPhaseOneInstance commits animate staged instances of Animate 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 (*BackRepoAnimateStruct) CommitPhaseTwo

func (backRepoAnimate *BackRepoAnimateStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoAnimateStruct) CommitPhaseTwoInstance

func (backRepoAnimate *BackRepoAnimateStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, animate *models.Animate) (Error error)

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

func (*BackRepoAnimateStruct) GetAnimateDBFromAnimatePtr

func (backRepoAnimate *BackRepoAnimateStruct) GetAnimateDBFromAnimatePtr(animate *models.Animate) (animateDB *AnimateDB)

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

func (*BackRepoAnimateStruct) GetDB

func (backRepoAnimate *BackRepoAnimateStruct) GetDB() *gorm.DB

func (*BackRepoAnimateStruct) GetStage

func (backRepoAnimate *BackRepoAnimateStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoAnimateStruct) ResetReversePointers

func (backRepoAnimate *BackRepoAnimateStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoAnimateStruct) ResetReversePointersInstance

func (backRepoAnimate *BackRepoAnimateStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, animate *models.Animate) (Error error)

func (*BackRepoAnimateStruct) RestorePhaseOne

func (backRepoAnimate *BackRepoAnimateStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoAnimateStruct) RestorePhaseTwo

func (backRepoAnimate *BackRepoAnimateStruct) RestorePhaseTwo()

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

func (*BackRepoAnimateStruct) RestoreXLPhaseOne

func (backRepoAnimate *BackRepoAnimateStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Animate" sheet all AnimateDB instances

type BackRepoCircleStruct

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

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

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

func (*BackRepoCircleStruct) Backup

func (backRepoCircle *BackRepoCircleStruct) Backup(dirPath string)

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

func (*BackRepoCircleStruct) BackupXL

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

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

func (*BackRepoCircleStruct) CheckoutPhaseOne

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

BackRepoCircle.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

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

func (*BackRepoCircleStruct) CheckoutPhaseOneInstance

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

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

func (*BackRepoCircleStruct) CheckoutPhaseTwo

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

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

func (*BackRepoCircleStruct) CheckoutPhaseTwoInstance

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

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

func (*BackRepoCircleStruct) CommitDeleteInstance

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

BackRepoCircle.CommitDeleteInstance commits deletion of Circle to the BackRepo

func (*BackRepoCircleStruct) CommitPhaseOne

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

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

func (*BackRepoCircleStruct) CommitPhaseOneInstance

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

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

func (*BackRepoCircleStruct) CommitPhaseTwo

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

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

func (*BackRepoCircleStruct) CommitPhaseTwoInstance

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

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

func (*BackRepoCircleStruct) GetCircleDBFromCirclePtr

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

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

func (*BackRepoCircleStruct) GetDB

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

func (*BackRepoCircleStruct) GetStage

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

func (*BackRepoCircleStruct) ResetReversePointers

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

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

func (*BackRepoCircleStruct) ResetReversePointersInstance

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

func (*BackRepoCircleStruct) RestorePhaseOne

func (backRepoCircle *BackRepoCircleStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoCircleStruct) RestorePhaseTwo

func (backRepoCircle *BackRepoCircleStruct) RestorePhaseTwo()

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

func (*BackRepoCircleStruct) RestoreXLPhaseOne

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

RestoreXL from the "Circle" sheet all CircleDB instances

type BackRepoData

type BackRepoData struct {
	AnimateAPIs []*AnimateAPI

	CircleAPIs []*CircleAPI

	EllipseAPIs []*EllipseAPI

	LayerAPIs []*LayerAPI

	LineAPIs []*LineAPI

	LinkAPIs []*LinkAPI

	LinkAnchoredTextAPIs []*LinkAnchoredTextAPI

	PathAPIs []*PathAPI

	PointAPIs []*PointAPI

	PolygoneAPIs []*PolygoneAPI

	PolylineAPIs []*PolylineAPI

	RectAPIs []*RectAPI

	RectAnchoredPathAPIs []*RectAnchoredPathAPI

	RectAnchoredRectAPIs []*RectAnchoredRectAPI

	RectAnchoredTextAPIs []*RectAnchoredTextAPI

	RectLinkLinkAPIs []*RectLinkLinkAPI

	SVGAPIs []*SVGAPI

	TextAPIs []*TextAPI
}

type BackRepoEllipseStruct

type BackRepoEllipseStruct struct {
	// stores EllipseDB according to their gorm ID
	Map_EllipseDBID_EllipseDB map[uint]*EllipseDB

	// stores EllipseDB ID according to Ellipse address
	Map_EllipsePtr_EllipseDBID map[*models.Ellipse]uint

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

func (*BackRepoEllipseStruct) Backup

func (backRepoEllipse *BackRepoEllipseStruct) Backup(dirPath string)

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

func (*BackRepoEllipseStruct) BackupXL

func (backRepoEllipse *BackRepoEllipseStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoEllipseStruct) CheckoutPhaseOne

func (backRepoEllipse *BackRepoEllipseStruct) CheckoutPhaseOne() (Error error)

BackRepoEllipse.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

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

func (*BackRepoEllipseStruct) CheckoutPhaseOneInstance

func (backRepoEllipse *BackRepoEllipseStruct) CheckoutPhaseOneInstance(ellipseDB *EllipseDB) (Error error)

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

func (*BackRepoEllipseStruct) CheckoutPhaseTwo

func (backRepoEllipse *BackRepoEllipseStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoEllipseStruct) CheckoutPhaseTwoInstance

func (backRepoEllipse *BackRepoEllipseStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, ellipseDB *EllipseDB) (Error error)

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

func (*BackRepoEllipseStruct) CommitDeleteInstance

func (backRepoEllipse *BackRepoEllipseStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoEllipse.CommitDeleteInstance commits deletion of Ellipse to the BackRepo

func (*BackRepoEllipseStruct) CommitPhaseOne

func (backRepoEllipse *BackRepoEllipseStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoEllipse.CommitPhaseOne commits all staged instances of Ellipse 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 (*BackRepoEllipseStruct) CommitPhaseOneInstance

func (backRepoEllipse *BackRepoEllipseStruct) CommitPhaseOneInstance(ellipse *models.Ellipse) (Error error)

BackRepoEllipse.CommitPhaseOneInstance commits ellipse staged instances of Ellipse 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 (*BackRepoEllipseStruct) CommitPhaseTwo

func (backRepoEllipse *BackRepoEllipseStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoEllipseStruct) CommitPhaseTwoInstance

func (backRepoEllipse *BackRepoEllipseStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, ellipse *models.Ellipse) (Error error)

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

func (*BackRepoEllipseStruct) GetDB

func (backRepoEllipse *BackRepoEllipseStruct) GetDB() *gorm.DB

func (*BackRepoEllipseStruct) GetEllipseDBFromEllipsePtr

func (backRepoEllipse *BackRepoEllipseStruct) GetEllipseDBFromEllipsePtr(ellipse *models.Ellipse) (ellipseDB *EllipseDB)

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

func (*BackRepoEllipseStruct) GetStage

func (backRepoEllipse *BackRepoEllipseStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoEllipseStruct) ResetReversePointers

func (backRepoEllipse *BackRepoEllipseStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoEllipseStruct) ResetReversePointersInstance

func (backRepoEllipse *BackRepoEllipseStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, ellipse *models.Ellipse) (Error error)

func (*BackRepoEllipseStruct) RestorePhaseOne

func (backRepoEllipse *BackRepoEllipseStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoEllipseStruct) RestorePhaseTwo

func (backRepoEllipse *BackRepoEllipseStruct) RestorePhaseTwo()

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

func (*BackRepoEllipseStruct) RestoreXLPhaseOne

func (backRepoEllipse *BackRepoEllipseStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Ellipse" sheet all EllipseDB instances

type BackRepoLayerStruct

type BackRepoLayerStruct struct {
	// stores LayerDB according to their gorm ID
	Map_LayerDBID_LayerDB map[uint]*LayerDB

	// stores LayerDB ID according to Layer address
	Map_LayerPtr_LayerDBID map[*models.Layer]uint

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

func (*BackRepoLayerStruct) Backup

func (backRepoLayer *BackRepoLayerStruct) Backup(dirPath string)

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

func (*BackRepoLayerStruct) BackupXL

func (backRepoLayer *BackRepoLayerStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoLayerStruct) CheckoutPhaseOne

func (backRepoLayer *BackRepoLayerStruct) CheckoutPhaseOne() (Error error)

BackRepoLayer.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

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

func (*BackRepoLayerStruct) CheckoutPhaseOneInstance

func (backRepoLayer *BackRepoLayerStruct) CheckoutPhaseOneInstance(layerDB *LayerDB) (Error error)

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

func (*BackRepoLayerStruct) CheckoutPhaseTwo

func (backRepoLayer *BackRepoLayerStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoLayerStruct) CheckoutPhaseTwoInstance

func (backRepoLayer *BackRepoLayerStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, layerDB *LayerDB) (Error error)

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

func (*BackRepoLayerStruct) CommitDeleteInstance

func (backRepoLayer *BackRepoLayerStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoLayer.CommitDeleteInstance commits deletion of Layer to the BackRepo

func (*BackRepoLayerStruct) CommitPhaseOne

func (backRepoLayer *BackRepoLayerStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoLayer.CommitPhaseOne commits all staged instances of Layer 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 (*BackRepoLayerStruct) CommitPhaseOneInstance

func (backRepoLayer *BackRepoLayerStruct) CommitPhaseOneInstance(layer *models.Layer) (Error error)

BackRepoLayer.CommitPhaseOneInstance commits layer staged instances of Layer 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 (*BackRepoLayerStruct) CommitPhaseTwo

func (backRepoLayer *BackRepoLayerStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoLayerStruct) CommitPhaseTwoInstance

func (backRepoLayer *BackRepoLayerStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, layer *models.Layer) (Error error)

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

func (*BackRepoLayerStruct) GetDB

func (backRepoLayer *BackRepoLayerStruct) GetDB() *gorm.DB

func (*BackRepoLayerStruct) GetLayerDBFromLayerPtr

func (backRepoLayer *BackRepoLayerStruct) GetLayerDBFromLayerPtr(layer *models.Layer) (layerDB *LayerDB)

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

func (*BackRepoLayerStruct) GetStage

func (backRepoLayer *BackRepoLayerStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoLayerStruct) ResetReversePointers

func (backRepoLayer *BackRepoLayerStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoLayerStruct) ResetReversePointersInstance

func (backRepoLayer *BackRepoLayerStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, layer *models.Layer) (Error error)

func (*BackRepoLayerStruct) RestorePhaseOne

func (backRepoLayer *BackRepoLayerStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoLayerStruct) RestorePhaseTwo

func (backRepoLayer *BackRepoLayerStruct) RestorePhaseTwo()

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

func (*BackRepoLayerStruct) RestoreXLPhaseOne

func (backRepoLayer *BackRepoLayerStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Layer" sheet all LayerDB instances

type BackRepoLineStruct

type BackRepoLineStruct struct {
	// stores LineDB according to their gorm ID
	Map_LineDBID_LineDB map[uint]*LineDB

	// stores LineDB ID according to Line address
	Map_LinePtr_LineDBID map[*models.Line]uint

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

func (*BackRepoLineStruct) Backup

func (backRepoLine *BackRepoLineStruct) Backup(dirPath string)

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

func (*BackRepoLineStruct) BackupXL

func (backRepoLine *BackRepoLineStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoLineStruct) CheckoutPhaseOne

func (backRepoLine *BackRepoLineStruct) CheckoutPhaseOne() (Error error)

BackRepoLine.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

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

func (*BackRepoLineStruct) CheckoutPhaseOneInstance

func (backRepoLine *BackRepoLineStruct) CheckoutPhaseOneInstance(lineDB *LineDB) (Error error)

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

func (*BackRepoLineStruct) CheckoutPhaseTwo

func (backRepoLine *BackRepoLineStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoLineStruct) CheckoutPhaseTwoInstance

func (backRepoLine *BackRepoLineStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, lineDB *LineDB) (Error error)

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

func (*BackRepoLineStruct) CommitDeleteInstance

func (backRepoLine *BackRepoLineStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoLine.CommitDeleteInstance commits deletion of Line to the BackRepo

func (*BackRepoLineStruct) CommitPhaseOne

func (backRepoLine *BackRepoLineStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoLine.CommitPhaseOne commits all staged instances of Line 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 (*BackRepoLineStruct) CommitPhaseOneInstance

func (backRepoLine *BackRepoLineStruct) CommitPhaseOneInstance(line *models.Line) (Error error)

BackRepoLine.CommitPhaseOneInstance commits line staged instances of Line 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 (*BackRepoLineStruct) CommitPhaseTwo

func (backRepoLine *BackRepoLineStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoLineStruct) CommitPhaseTwoInstance

func (backRepoLine *BackRepoLineStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, line *models.Line) (Error error)

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

func (*BackRepoLineStruct) GetDB

func (backRepoLine *BackRepoLineStruct) GetDB() *gorm.DB

func (*BackRepoLineStruct) GetLineDBFromLinePtr

func (backRepoLine *BackRepoLineStruct) GetLineDBFromLinePtr(line *models.Line) (lineDB *LineDB)

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

func (*BackRepoLineStruct) GetStage

func (backRepoLine *BackRepoLineStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoLineStruct) ResetReversePointers

func (backRepoLine *BackRepoLineStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoLineStruct) ResetReversePointersInstance

func (backRepoLine *BackRepoLineStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, line *models.Line) (Error error)

func (*BackRepoLineStruct) RestorePhaseOne

func (backRepoLine *BackRepoLineStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoLineStruct) RestorePhaseTwo

func (backRepoLine *BackRepoLineStruct) RestorePhaseTwo()

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

func (*BackRepoLineStruct) RestoreXLPhaseOne

func (backRepoLine *BackRepoLineStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Line" sheet all LineDB instances

type BackRepoLinkAnchoredTextStruct

type BackRepoLinkAnchoredTextStruct struct {
	// stores LinkAnchoredTextDB according to their gorm ID
	Map_LinkAnchoredTextDBID_LinkAnchoredTextDB map[uint]*LinkAnchoredTextDB

	// stores LinkAnchoredTextDB ID according to LinkAnchoredText address
	Map_LinkAnchoredTextPtr_LinkAnchoredTextDBID map[*models.LinkAnchoredText]uint

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

func (*BackRepoLinkAnchoredTextStruct) Backup

func (backRepoLinkAnchoredText *BackRepoLinkAnchoredTextStruct) Backup(dirPath string)

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

func (*BackRepoLinkAnchoredTextStruct) BackupXL

func (backRepoLinkAnchoredText *BackRepoLinkAnchoredTextStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoLinkAnchoredTextStruct) CheckoutPhaseOne

func (backRepoLinkAnchoredText *BackRepoLinkAnchoredTextStruct) CheckoutPhaseOne() (Error error)

BackRepoLinkAnchoredText.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

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

func (*BackRepoLinkAnchoredTextStruct) CheckoutPhaseOneInstance

func (backRepoLinkAnchoredText *BackRepoLinkAnchoredTextStruct) CheckoutPhaseOneInstance(linkanchoredtextDB *LinkAnchoredTextDB) (Error error)

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

func (*BackRepoLinkAnchoredTextStruct) CheckoutPhaseTwo

func (backRepoLinkAnchoredText *BackRepoLinkAnchoredTextStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoLinkAnchoredTextStruct) CheckoutPhaseTwoInstance

func (backRepoLinkAnchoredText *BackRepoLinkAnchoredTextStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, linkanchoredtextDB *LinkAnchoredTextDB) (Error error)

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

func (*BackRepoLinkAnchoredTextStruct) CommitDeleteInstance

func (backRepoLinkAnchoredText *BackRepoLinkAnchoredTextStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoLinkAnchoredText.CommitDeleteInstance commits deletion of LinkAnchoredText to the BackRepo

func (*BackRepoLinkAnchoredTextStruct) CommitPhaseOne

func (backRepoLinkAnchoredText *BackRepoLinkAnchoredTextStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoLinkAnchoredText.CommitPhaseOne commits all staged instances of LinkAnchoredText 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 (*BackRepoLinkAnchoredTextStruct) CommitPhaseOneInstance

func (backRepoLinkAnchoredText *BackRepoLinkAnchoredTextStruct) CommitPhaseOneInstance(linkanchoredtext *models.LinkAnchoredText) (Error error)

BackRepoLinkAnchoredText.CommitPhaseOneInstance commits linkanchoredtext staged instances of LinkAnchoredText 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 (*BackRepoLinkAnchoredTextStruct) CommitPhaseTwo

func (backRepoLinkAnchoredText *BackRepoLinkAnchoredTextStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoLinkAnchoredTextStruct) CommitPhaseTwoInstance

func (backRepoLinkAnchoredText *BackRepoLinkAnchoredTextStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, linkanchoredtext *models.LinkAnchoredText) (Error error)

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

func (*BackRepoLinkAnchoredTextStruct) GetDB

func (backRepoLinkAnchoredText *BackRepoLinkAnchoredTextStruct) GetDB() *gorm.DB

func (*BackRepoLinkAnchoredTextStruct) GetLinkAnchoredTextDBFromLinkAnchoredTextPtr

func (backRepoLinkAnchoredText *BackRepoLinkAnchoredTextStruct) GetLinkAnchoredTextDBFromLinkAnchoredTextPtr(linkanchoredtext *models.LinkAnchoredText) (linkanchoredtextDB *LinkAnchoredTextDB)

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

func (*BackRepoLinkAnchoredTextStruct) GetStage

func (backRepoLinkAnchoredText *BackRepoLinkAnchoredTextStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoLinkAnchoredTextStruct) ResetReversePointers

func (backRepoLinkAnchoredText *BackRepoLinkAnchoredTextStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoLinkAnchoredTextStruct) ResetReversePointersInstance

func (backRepoLinkAnchoredText *BackRepoLinkAnchoredTextStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, linkanchoredtext *models.LinkAnchoredText) (Error error)

func (*BackRepoLinkAnchoredTextStruct) RestorePhaseOne

func (backRepoLinkAnchoredText *BackRepoLinkAnchoredTextStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoLinkAnchoredTextStruct) RestorePhaseTwo

func (backRepoLinkAnchoredText *BackRepoLinkAnchoredTextStruct) RestorePhaseTwo()

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

func (*BackRepoLinkAnchoredTextStruct) RestoreXLPhaseOne

func (backRepoLinkAnchoredText *BackRepoLinkAnchoredTextStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "LinkAnchoredText" sheet all LinkAnchoredTextDB instances

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 phase 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) GetStage

func (backRepoLink *BackRepoLinkStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoLinkStruct) ResetReversePointers

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

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

func (*BackRepoLinkStruct) ResetReversePointersInstance

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

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

func (*BackRepoLinkStruct) RestoreXLPhaseOne

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

RestoreXL from the "Link" sheet all LinkDB instances

type BackRepoPathStruct

type BackRepoPathStruct struct {
	// stores PathDB according to their gorm ID
	Map_PathDBID_PathDB map[uint]*PathDB

	// stores PathDB ID according to Path address
	Map_PathPtr_PathDBID map[*models.Path]uint

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

func (*BackRepoPathStruct) Backup

func (backRepoPath *BackRepoPathStruct) Backup(dirPath string)

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

func (*BackRepoPathStruct) BackupXL

func (backRepoPath *BackRepoPathStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoPathStruct) CheckoutPhaseOne

func (backRepoPath *BackRepoPathStruct) CheckoutPhaseOne() (Error error)

BackRepoPath.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

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

func (*BackRepoPathStruct) CheckoutPhaseOneInstance

func (backRepoPath *BackRepoPathStruct) CheckoutPhaseOneInstance(pathDB *PathDB) (Error error)

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

func (*BackRepoPathStruct) CheckoutPhaseTwo

func (backRepoPath *BackRepoPathStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoPathStruct) CheckoutPhaseTwoInstance

func (backRepoPath *BackRepoPathStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, pathDB *PathDB) (Error error)

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

func (*BackRepoPathStruct) CommitDeleteInstance

func (backRepoPath *BackRepoPathStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoPath.CommitDeleteInstance commits deletion of Path to the BackRepo

func (*BackRepoPathStruct) CommitPhaseOne

func (backRepoPath *BackRepoPathStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoPath.CommitPhaseOne commits all staged instances of Path 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 (*BackRepoPathStruct) CommitPhaseOneInstance

func (backRepoPath *BackRepoPathStruct) CommitPhaseOneInstance(path *models.Path) (Error error)

BackRepoPath.CommitPhaseOneInstance commits path staged instances of Path 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 (*BackRepoPathStruct) CommitPhaseTwo

func (backRepoPath *BackRepoPathStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoPathStruct) CommitPhaseTwoInstance

func (backRepoPath *BackRepoPathStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, path *models.Path) (Error error)

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

func (*BackRepoPathStruct) GetDB

func (backRepoPath *BackRepoPathStruct) GetDB() *gorm.DB

func (*BackRepoPathStruct) GetPathDBFromPathPtr

func (backRepoPath *BackRepoPathStruct) GetPathDBFromPathPtr(path *models.Path) (pathDB *PathDB)

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

func (*BackRepoPathStruct) GetStage

func (backRepoPath *BackRepoPathStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoPathStruct) ResetReversePointers

func (backRepoPath *BackRepoPathStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoPathStruct) ResetReversePointersInstance

func (backRepoPath *BackRepoPathStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, path *models.Path) (Error error)

func (*BackRepoPathStruct) RestorePhaseOne

func (backRepoPath *BackRepoPathStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoPathStruct) RestorePhaseTwo

func (backRepoPath *BackRepoPathStruct) RestorePhaseTwo()

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

func (*BackRepoPathStruct) RestoreXLPhaseOne

func (backRepoPath *BackRepoPathStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Path" sheet all PathDB instances

type BackRepoPointStruct

type BackRepoPointStruct struct {
	// stores PointDB according to their gorm ID
	Map_PointDBID_PointDB map[uint]*PointDB

	// stores PointDB ID according to Point address
	Map_PointPtr_PointDBID map[*models.Point]uint

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

func (*BackRepoPointStruct) Backup

func (backRepoPoint *BackRepoPointStruct) Backup(dirPath string)

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

func (*BackRepoPointStruct) BackupXL

func (backRepoPoint *BackRepoPointStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoPointStruct) CheckoutPhaseOne

func (backRepoPoint *BackRepoPointStruct) CheckoutPhaseOne() (Error error)

BackRepoPoint.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

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

func (*BackRepoPointStruct) CheckoutPhaseOneInstance

func (backRepoPoint *BackRepoPointStruct) CheckoutPhaseOneInstance(pointDB *PointDB) (Error error)

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

func (*BackRepoPointStruct) CheckoutPhaseTwo

func (backRepoPoint *BackRepoPointStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoPointStruct) CheckoutPhaseTwoInstance

func (backRepoPoint *BackRepoPointStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, pointDB *PointDB) (Error error)

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

func (*BackRepoPointStruct) CommitDeleteInstance

func (backRepoPoint *BackRepoPointStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoPoint.CommitDeleteInstance commits deletion of Point to the BackRepo

func (*BackRepoPointStruct) CommitPhaseOne

func (backRepoPoint *BackRepoPointStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoPoint.CommitPhaseOne commits all staged instances of Point 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 (*BackRepoPointStruct) CommitPhaseOneInstance

func (backRepoPoint *BackRepoPointStruct) CommitPhaseOneInstance(point *models.Point) (Error error)

BackRepoPoint.CommitPhaseOneInstance commits point staged instances of Point 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 (*BackRepoPointStruct) CommitPhaseTwo

func (backRepoPoint *BackRepoPointStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoPointStruct) CommitPhaseTwoInstance

func (backRepoPoint *BackRepoPointStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, point *models.Point) (Error error)

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

func (*BackRepoPointStruct) GetDB

func (backRepoPoint *BackRepoPointStruct) GetDB() *gorm.DB

func (*BackRepoPointStruct) GetPointDBFromPointPtr

func (backRepoPoint *BackRepoPointStruct) GetPointDBFromPointPtr(point *models.Point) (pointDB *PointDB)

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

func (*BackRepoPointStruct) GetStage

func (backRepoPoint *BackRepoPointStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoPointStruct) ResetReversePointers

func (backRepoPoint *BackRepoPointStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoPointStruct) ResetReversePointersInstance

func (backRepoPoint *BackRepoPointStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, point *models.Point) (Error error)

func (*BackRepoPointStruct) RestorePhaseOne

func (backRepoPoint *BackRepoPointStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoPointStruct) RestorePhaseTwo

func (backRepoPoint *BackRepoPointStruct) RestorePhaseTwo()

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

func (*BackRepoPointStruct) RestoreXLPhaseOne

func (backRepoPoint *BackRepoPointStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Point" sheet all PointDB instances

type BackRepoPolygoneStruct

type BackRepoPolygoneStruct struct {
	// stores PolygoneDB according to their gorm ID
	Map_PolygoneDBID_PolygoneDB map[uint]*PolygoneDB

	// stores PolygoneDB ID according to Polygone address
	Map_PolygonePtr_PolygoneDBID map[*models.Polygone]uint

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

func (*BackRepoPolygoneStruct) Backup

func (backRepoPolygone *BackRepoPolygoneStruct) Backup(dirPath string)

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

func (*BackRepoPolygoneStruct) BackupXL

func (backRepoPolygone *BackRepoPolygoneStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoPolygoneStruct) CheckoutPhaseOne

func (backRepoPolygone *BackRepoPolygoneStruct) CheckoutPhaseOne() (Error error)

BackRepoPolygone.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

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

func (*BackRepoPolygoneStruct) CheckoutPhaseOneInstance

func (backRepoPolygone *BackRepoPolygoneStruct) CheckoutPhaseOneInstance(polygoneDB *PolygoneDB) (Error error)

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

func (*BackRepoPolygoneStruct) CheckoutPhaseTwo

func (backRepoPolygone *BackRepoPolygoneStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoPolygoneStruct) CheckoutPhaseTwoInstance

func (backRepoPolygone *BackRepoPolygoneStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, polygoneDB *PolygoneDB) (Error error)

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

func (*BackRepoPolygoneStruct) CommitDeleteInstance

func (backRepoPolygone *BackRepoPolygoneStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoPolygone.CommitDeleteInstance commits deletion of Polygone to the BackRepo

func (*BackRepoPolygoneStruct) CommitPhaseOne

func (backRepoPolygone *BackRepoPolygoneStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoPolygone.CommitPhaseOne commits all staged instances of Polygone 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 (*BackRepoPolygoneStruct) CommitPhaseOneInstance

func (backRepoPolygone *BackRepoPolygoneStruct) CommitPhaseOneInstance(polygone *models.Polygone) (Error error)

BackRepoPolygone.CommitPhaseOneInstance commits polygone staged instances of Polygone 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 (*BackRepoPolygoneStruct) CommitPhaseTwo

func (backRepoPolygone *BackRepoPolygoneStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoPolygoneStruct) CommitPhaseTwoInstance

func (backRepoPolygone *BackRepoPolygoneStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, polygone *models.Polygone) (Error error)

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

func (*BackRepoPolygoneStruct) GetDB

func (backRepoPolygone *BackRepoPolygoneStruct) GetDB() *gorm.DB

func (*BackRepoPolygoneStruct) GetPolygoneDBFromPolygonePtr

func (backRepoPolygone *BackRepoPolygoneStruct) GetPolygoneDBFromPolygonePtr(polygone *models.Polygone) (polygoneDB *PolygoneDB)

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

func (*BackRepoPolygoneStruct) GetStage

func (backRepoPolygone *BackRepoPolygoneStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoPolygoneStruct) ResetReversePointers

func (backRepoPolygone *BackRepoPolygoneStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoPolygoneStruct) ResetReversePointersInstance

func (backRepoPolygone *BackRepoPolygoneStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, polygone *models.Polygone) (Error error)

func (*BackRepoPolygoneStruct) RestorePhaseOne

func (backRepoPolygone *BackRepoPolygoneStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoPolygoneStruct) RestorePhaseTwo

func (backRepoPolygone *BackRepoPolygoneStruct) RestorePhaseTwo()

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

func (*BackRepoPolygoneStruct) RestoreXLPhaseOne

func (backRepoPolygone *BackRepoPolygoneStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Polygone" sheet all PolygoneDB instances

type BackRepoPolylineStruct

type BackRepoPolylineStruct struct {
	// stores PolylineDB according to their gorm ID
	Map_PolylineDBID_PolylineDB map[uint]*PolylineDB

	// stores PolylineDB ID according to Polyline address
	Map_PolylinePtr_PolylineDBID map[*models.Polyline]uint

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

func (*BackRepoPolylineStruct) Backup

func (backRepoPolyline *BackRepoPolylineStruct) Backup(dirPath string)

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

func (*BackRepoPolylineStruct) BackupXL

func (backRepoPolyline *BackRepoPolylineStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoPolylineStruct) CheckoutPhaseOne

func (backRepoPolyline *BackRepoPolylineStruct) CheckoutPhaseOne() (Error error)

BackRepoPolyline.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

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

func (*BackRepoPolylineStruct) CheckoutPhaseOneInstance

func (backRepoPolyline *BackRepoPolylineStruct) CheckoutPhaseOneInstance(polylineDB *PolylineDB) (Error error)

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

func (*BackRepoPolylineStruct) CheckoutPhaseTwo

func (backRepoPolyline *BackRepoPolylineStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoPolylineStruct) CheckoutPhaseTwoInstance

func (backRepoPolyline *BackRepoPolylineStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, polylineDB *PolylineDB) (Error error)

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

func (*BackRepoPolylineStruct) CommitDeleteInstance

func (backRepoPolyline *BackRepoPolylineStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoPolyline.CommitDeleteInstance commits deletion of Polyline to the BackRepo

func (*BackRepoPolylineStruct) CommitPhaseOne

func (backRepoPolyline *BackRepoPolylineStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoPolyline.CommitPhaseOne commits all staged instances of Polyline 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 (*BackRepoPolylineStruct) CommitPhaseOneInstance

func (backRepoPolyline *BackRepoPolylineStruct) CommitPhaseOneInstance(polyline *models.Polyline) (Error error)

BackRepoPolyline.CommitPhaseOneInstance commits polyline staged instances of Polyline 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 (*BackRepoPolylineStruct) CommitPhaseTwo

func (backRepoPolyline *BackRepoPolylineStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoPolylineStruct) CommitPhaseTwoInstance

func (backRepoPolyline *BackRepoPolylineStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, polyline *models.Polyline) (Error error)

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

func (*BackRepoPolylineStruct) GetDB

func (backRepoPolyline *BackRepoPolylineStruct) GetDB() *gorm.DB

func (*BackRepoPolylineStruct) GetPolylineDBFromPolylinePtr

func (backRepoPolyline *BackRepoPolylineStruct) GetPolylineDBFromPolylinePtr(polyline *models.Polyline) (polylineDB *PolylineDB)

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

func (*BackRepoPolylineStruct) GetStage

func (backRepoPolyline *BackRepoPolylineStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoPolylineStruct) ResetReversePointers

func (backRepoPolyline *BackRepoPolylineStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoPolylineStruct) ResetReversePointersInstance

func (backRepoPolyline *BackRepoPolylineStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, polyline *models.Polyline) (Error error)

func (*BackRepoPolylineStruct) RestorePhaseOne

func (backRepoPolyline *BackRepoPolylineStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoPolylineStruct) RestorePhaseTwo

func (backRepoPolyline *BackRepoPolylineStruct) RestorePhaseTwo()

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

func (*BackRepoPolylineStruct) RestoreXLPhaseOne

func (backRepoPolyline *BackRepoPolylineStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Polyline" sheet all PolylineDB instances

type BackRepoRectAnchoredPathStruct

type BackRepoRectAnchoredPathStruct struct {
	// stores RectAnchoredPathDB according to their gorm ID
	Map_RectAnchoredPathDBID_RectAnchoredPathDB map[uint]*RectAnchoredPathDB

	// stores RectAnchoredPathDB ID according to RectAnchoredPath address
	Map_RectAnchoredPathPtr_RectAnchoredPathDBID map[*models.RectAnchoredPath]uint

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

func (*BackRepoRectAnchoredPathStruct) Backup

func (backRepoRectAnchoredPath *BackRepoRectAnchoredPathStruct) Backup(dirPath string)

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

func (*BackRepoRectAnchoredPathStruct) BackupXL

func (backRepoRectAnchoredPath *BackRepoRectAnchoredPathStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoRectAnchoredPathStruct) CheckoutPhaseOne

func (backRepoRectAnchoredPath *BackRepoRectAnchoredPathStruct) CheckoutPhaseOne() (Error error)

BackRepoRectAnchoredPath.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

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

func (*BackRepoRectAnchoredPathStruct) CheckoutPhaseOneInstance

func (backRepoRectAnchoredPath *BackRepoRectAnchoredPathStruct) CheckoutPhaseOneInstance(rectanchoredpathDB *RectAnchoredPathDB) (Error error)

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

func (*BackRepoRectAnchoredPathStruct) CheckoutPhaseTwo

func (backRepoRectAnchoredPath *BackRepoRectAnchoredPathStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoRectAnchoredPathStruct) CheckoutPhaseTwoInstance

func (backRepoRectAnchoredPath *BackRepoRectAnchoredPathStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, rectanchoredpathDB *RectAnchoredPathDB) (Error error)

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

func (*BackRepoRectAnchoredPathStruct) CommitDeleteInstance

func (backRepoRectAnchoredPath *BackRepoRectAnchoredPathStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoRectAnchoredPath.CommitDeleteInstance commits deletion of RectAnchoredPath to the BackRepo

func (*BackRepoRectAnchoredPathStruct) CommitPhaseOne

func (backRepoRectAnchoredPath *BackRepoRectAnchoredPathStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoRectAnchoredPath.CommitPhaseOne commits all staged instances of RectAnchoredPath 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 (*BackRepoRectAnchoredPathStruct) CommitPhaseOneInstance

func (backRepoRectAnchoredPath *BackRepoRectAnchoredPathStruct) CommitPhaseOneInstance(rectanchoredpath *models.RectAnchoredPath) (Error error)

BackRepoRectAnchoredPath.CommitPhaseOneInstance commits rectanchoredpath staged instances of RectAnchoredPath 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 (*BackRepoRectAnchoredPathStruct) CommitPhaseTwo

func (backRepoRectAnchoredPath *BackRepoRectAnchoredPathStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoRectAnchoredPathStruct) CommitPhaseTwoInstance

func (backRepoRectAnchoredPath *BackRepoRectAnchoredPathStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, rectanchoredpath *models.RectAnchoredPath) (Error error)

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

func (*BackRepoRectAnchoredPathStruct) GetDB

func (backRepoRectAnchoredPath *BackRepoRectAnchoredPathStruct) GetDB() *gorm.DB

func (*BackRepoRectAnchoredPathStruct) GetRectAnchoredPathDBFromRectAnchoredPathPtr

func (backRepoRectAnchoredPath *BackRepoRectAnchoredPathStruct) GetRectAnchoredPathDBFromRectAnchoredPathPtr(rectanchoredpath *models.RectAnchoredPath) (rectanchoredpathDB *RectAnchoredPathDB)

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

func (*BackRepoRectAnchoredPathStruct) GetStage

func (backRepoRectAnchoredPath *BackRepoRectAnchoredPathStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoRectAnchoredPathStruct) ResetReversePointers

func (backRepoRectAnchoredPath *BackRepoRectAnchoredPathStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoRectAnchoredPathStruct) ResetReversePointersInstance

func (backRepoRectAnchoredPath *BackRepoRectAnchoredPathStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, rectanchoredpath *models.RectAnchoredPath) (Error error)

func (*BackRepoRectAnchoredPathStruct) RestorePhaseOne

func (backRepoRectAnchoredPath *BackRepoRectAnchoredPathStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoRectAnchoredPathStruct) RestorePhaseTwo

func (backRepoRectAnchoredPath *BackRepoRectAnchoredPathStruct) RestorePhaseTwo()

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

func (*BackRepoRectAnchoredPathStruct) RestoreXLPhaseOne

func (backRepoRectAnchoredPath *BackRepoRectAnchoredPathStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "RectAnchoredPath" sheet all RectAnchoredPathDB instances

type BackRepoRectAnchoredRectStruct

type BackRepoRectAnchoredRectStruct struct {
	// stores RectAnchoredRectDB according to their gorm ID
	Map_RectAnchoredRectDBID_RectAnchoredRectDB map[uint]*RectAnchoredRectDB

	// stores RectAnchoredRectDB ID according to RectAnchoredRect address
	Map_RectAnchoredRectPtr_RectAnchoredRectDBID map[*models.RectAnchoredRect]uint

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

func (*BackRepoRectAnchoredRectStruct) Backup

func (backRepoRectAnchoredRect *BackRepoRectAnchoredRectStruct) Backup(dirPath string)

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

func (*BackRepoRectAnchoredRectStruct) BackupXL

func (backRepoRectAnchoredRect *BackRepoRectAnchoredRectStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoRectAnchoredRectStruct) CheckoutPhaseOne

func (backRepoRectAnchoredRect *BackRepoRectAnchoredRectStruct) CheckoutPhaseOne() (Error error)

BackRepoRectAnchoredRect.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

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

func (*BackRepoRectAnchoredRectStruct) CheckoutPhaseOneInstance

func (backRepoRectAnchoredRect *BackRepoRectAnchoredRectStruct) CheckoutPhaseOneInstance(rectanchoredrectDB *RectAnchoredRectDB) (Error error)

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

func (*BackRepoRectAnchoredRectStruct) CheckoutPhaseTwo

func (backRepoRectAnchoredRect *BackRepoRectAnchoredRectStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoRectAnchoredRectStruct) CheckoutPhaseTwoInstance

func (backRepoRectAnchoredRect *BackRepoRectAnchoredRectStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, rectanchoredrectDB *RectAnchoredRectDB) (Error error)

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

func (*BackRepoRectAnchoredRectStruct) CommitDeleteInstance

func (backRepoRectAnchoredRect *BackRepoRectAnchoredRectStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoRectAnchoredRect.CommitDeleteInstance commits deletion of RectAnchoredRect to the BackRepo

func (*BackRepoRectAnchoredRectStruct) CommitPhaseOne

func (backRepoRectAnchoredRect *BackRepoRectAnchoredRectStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoRectAnchoredRect.CommitPhaseOne commits all staged instances of RectAnchoredRect 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 (*BackRepoRectAnchoredRectStruct) CommitPhaseOneInstance

func (backRepoRectAnchoredRect *BackRepoRectAnchoredRectStruct) CommitPhaseOneInstance(rectanchoredrect *models.RectAnchoredRect) (Error error)

BackRepoRectAnchoredRect.CommitPhaseOneInstance commits rectanchoredrect staged instances of RectAnchoredRect 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 (*BackRepoRectAnchoredRectStruct) CommitPhaseTwo

func (backRepoRectAnchoredRect *BackRepoRectAnchoredRectStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoRectAnchoredRectStruct) CommitPhaseTwoInstance

func (backRepoRectAnchoredRect *BackRepoRectAnchoredRectStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, rectanchoredrect *models.RectAnchoredRect) (Error error)

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

func (*BackRepoRectAnchoredRectStruct) GetDB

func (backRepoRectAnchoredRect *BackRepoRectAnchoredRectStruct) GetDB() *gorm.DB

func (*BackRepoRectAnchoredRectStruct) GetRectAnchoredRectDBFromRectAnchoredRectPtr

func (backRepoRectAnchoredRect *BackRepoRectAnchoredRectStruct) GetRectAnchoredRectDBFromRectAnchoredRectPtr(rectanchoredrect *models.RectAnchoredRect) (rectanchoredrectDB *RectAnchoredRectDB)

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

func (*BackRepoRectAnchoredRectStruct) GetStage

func (backRepoRectAnchoredRect *BackRepoRectAnchoredRectStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoRectAnchoredRectStruct) ResetReversePointers

func (backRepoRectAnchoredRect *BackRepoRectAnchoredRectStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoRectAnchoredRectStruct) ResetReversePointersInstance

func (backRepoRectAnchoredRect *BackRepoRectAnchoredRectStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, rectanchoredrect *models.RectAnchoredRect) (Error error)

func (*BackRepoRectAnchoredRectStruct) RestorePhaseOne

func (backRepoRectAnchoredRect *BackRepoRectAnchoredRectStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoRectAnchoredRectStruct) RestorePhaseTwo

func (backRepoRectAnchoredRect *BackRepoRectAnchoredRectStruct) RestorePhaseTwo()

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

func (*BackRepoRectAnchoredRectStruct) RestoreXLPhaseOne

func (backRepoRectAnchoredRect *BackRepoRectAnchoredRectStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "RectAnchoredRect" sheet all RectAnchoredRectDB instances

type BackRepoRectAnchoredTextStruct

type BackRepoRectAnchoredTextStruct struct {
	// stores RectAnchoredTextDB according to their gorm ID
	Map_RectAnchoredTextDBID_RectAnchoredTextDB map[uint]*RectAnchoredTextDB

	// stores RectAnchoredTextDB ID according to RectAnchoredText address
	Map_RectAnchoredTextPtr_RectAnchoredTextDBID map[*models.RectAnchoredText]uint

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

func (*BackRepoRectAnchoredTextStruct) Backup

func (backRepoRectAnchoredText *BackRepoRectAnchoredTextStruct) Backup(dirPath string)

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

func (*BackRepoRectAnchoredTextStruct) BackupXL

func (backRepoRectAnchoredText *BackRepoRectAnchoredTextStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoRectAnchoredTextStruct) CheckoutPhaseOne

func (backRepoRectAnchoredText *BackRepoRectAnchoredTextStruct) CheckoutPhaseOne() (Error error)

BackRepoRectAnchoredText.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

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

func (*BackRepoRectAnchoredTextStruct) CheckoutPhaseOneInstance

func (backRepoRectAnchoredText *BackRepoRectAnchoredTextStruct) CheckoutPhaseOneInstance(rectanchoredtextDB *RectAnchoredTextDB) (Error error)

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

func (*BackRepoRectAnchoredTextStruct) CheckoutPhaseTwo

func (backRepoRectAnchoredText *BackRepoRectAnchoredTextStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoRectAnchoredTextStruct) CheckoutPhaseTwoInstance

func (backRepoRectAnchoredText *BackRepoRectAnchoredTextStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, rectanchoredtextDB *RectAnchoredTextDB) (Error error)

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

func (*BackRepoRectAnchoredTextStruct) CommitDeleteInstance

func (backRepoRectAnchoredText *BackRepoRectAnchoredTextStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoRectAnchoredText.CommitDeleteInstance commits deletion of RectAnchoredText to the BackRepo

func (*BackRepoRectAnchoredTextStruct) CommitPhaseOne

func (backRepoRectAnchoredText *BackRepoRectAnchoredTextStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoRectAnchoredText.CommitPhaseOne commits all staged instances of RectAnchoredText 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 (*BackRepoRectAnchoredTextStruct) CommitPhaseOneInstance

func (backRepoRectAnchoredText *BackRepoRectAnchoredTextStruct) CommitPhaseOneInstance(rectanchoredtext *models.RectAnchoredText) (Error error)

BackRepoRectAnchoredText.CommitPhaseOneInstance commits rectanchoredtext staged instances of RectAnchoredText 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 (*BackRepoRectAnchoredTextStruct) CommitPhaseTwo

func (backRepoRectAnchoredText *BackRepoRectAnchoredTextStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoRectAnchoredTextStruct) CommitPhaseTwoInstance

func (backRepoRectAnchoredText *BackRepoRectAnchoredTextStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, rectanchoredtext *models.RectAnchoredText) (Error error)

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

func (*BackRepoRectAnchoredTextStruct) GetDB

func (backRepoRectAnchoredText *BackRepoRectAnchoredTextStruct) GetDB() *gorm.DB

func (*BackRepoRectAnchoredTextStruct) GetRectAnchoredTextDBFromRectAnchoredTextPtr

func (backRepoRectAnchoredText *BackRepoRectAnchoredTextStruct) GetRectAnchoredTextDBFromRectAnchoredTextPtr(rectanchoredtext *models.RectAnchoredText) (rectanchoredtextDB *RectAnchoredTextDB)

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

func (*BackRepoRectAnchoredTextStruct) GetStage

func (backRepoRectAnchoredText *BackRepoRectAnchoredTextStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoRectAnchoredTextStruct) ResetReversePointers

func (backRepoRectAnchoredText *BackRepoRectAnchoredTextStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoRectAnchoredTextStruct) ResetReversePointersInstance

func (backRepoRectAnchoredText *BackRepoRectAnchoredTextStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, rectanchoredtext *models.RectAnchoredText) (Error error)

func (*BackRepoRectAnchoredTextStruct) RestorePhaseOne

func (backRepoRectAnchoredText *BackRepoRectAnchoredTextStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoRectAnchoredTextStruct) RestorePhaseTwo

func (backRepoRectAnchoredText *BackRepoRectAnchoredTextStruct) RestorePhaseTwo()

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

func (*BackRepoRectAnchoredTextStruct) RestoreXLPhaseOne

func (backRepoRectAnchoredText *BackRepoRectAnchoredTextStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "RectAnchoredText" sheet all RectAnchoredTextDB instances

type BackRepoRectLinkLinkStruct

type BackRepoRectLinkLinkStruct struct {
	// stores RectLinkLinkDB according to their gorm ID
	Map_RectLinkLinkDBID_RectLinkLinkDB map[uint]*RectLinkLinkDB

	// stores RectLinkLinkDB ID according to RectLinkLink address
	Map_RectLinkLinkPtr_RectLinkLinkDBID map[*models.RectLinkLink]uint

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

func (*BackRepoRectLinkLinkStruct) Backup

func (backRepoRectLinkLink *BackRepoRectLinkLinkStruct) Backup(dirPath string)

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

func (*BackRepoRectLinkLinkStruct) BackupXL

func (backRepoRectLinkLink *BackRepoRectLinkLinkStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoRectLinkLinkStruct) CheckoutPhaseOne

func (backRepoRectLinkLink *BackRepoRectLinkLinkStruct) CheckoutPhaseOne() (Error error)

BackRepoRectLinkLink.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

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

func (*BackRepoRectLinkLinkStruct) CheckoutPhaseOneInstance

func (backRepoRectLinkLink *BackRepoRectLinkLinkStruct) CheckoutPhaseOneInstance(rectlinklinkDB *RectLinkLinkDB) (Error error)

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

func (*BackRepoRectLinkLinkStruct) CheckoutPhaseTwo

func (backRepoRectLinkLink *BackRepoRectLinkLinkStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoRectLinkLinkStruct) CheckoutPhaseTwoInstance

func (backRepoRectLinkLink *BackRepoRectLinkLinkStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, rectlinklinkDB *RectLinkLinkDB) (Error error)

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

func (*BackRepoRectLinkLinkStruct) CommitDeleteInstance

func (backRepoRectLinkLink *BackRepoRectLinkLinkStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoRectLinkLink.CommitDeleteInstance commits deletion of RectLinkLink to the BackRepo

func (*BackRepoRectLinkLinkStruct) CommitPhaseOne

func (backRepoRectLinkLink *BackRepoRectLinkLinkStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoRectLinkLink.CommitPhaseOne commits all staged instances of RectLinkLink 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 (*BackRepoRectLinkLinkStruct) CommitPhaseOneInstance

func (backRepoRectLinkLink *BackRepoRectLinkLinkStruct) CommitPhaseOneInstance(rectlinklink *models.RectLinkLink) (Error error)

BackRepoRectLinkLink.CommitPhaseOneInstance commits rectlinklink staged instances of RectLinkLink 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 (*BackRepoRectLinkLinkStruct) CommitPhaseTwo

func (backRepoRectLinkLink *BackRepoRectLinkLinkStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoRectLinkLinkStruct) CommitPhaseTwoInstance

func (backRepoRectLinkLink *BackRepoRectLinkLinkStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, rectlinklink *models.RectLinkLink) (Error error)

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

func (*BackRepoRectLinkLinkStruct) GetDB

func (backRepoRectLinkLink *BackRepoRectLinkLinkStruct) GetDB() *gorm.DB

func (*BackRepoRectLinkLinkStruct) GetRectLinkLinkDBFromRectLinkLinkPtr

func (backRepoRectLinkLink *BackRepoRectLinkLinkStruct) GetRectLinkLinkDBFromRectLinkLinkPtr(rectlinklink *models.RectLinkLink) (rectlinklinkDB *RectLinkLinkDB)

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

func (*BackRepoRectLinkLinkStruct) GetStage

func (backRepoRectLinkLink *BackRepoRectLinkLinkStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoRectLinkLinkStruct) ResetReversePointers

func (backRepoRectLinkLink *BackRepoRectLinkLinkStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoRectLinkLinkStruct) ResetReversePointersInstance

func (backRepoRectLinkLink *BackRepoRectLinkLinkStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, rectlinklink *models.RectLinkLink) (Error error)

func (*BackRepoRectLinkLinkStruct) RestorePhaseOne

func (backRepoRectLinkLink *BackRepoRectLinkLinkStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoRectLinkLinkStruct) RestorePhaseTwo

func (backRepoRectLinkLink *BackRepoRectLinkLinkStruct) RestorePhaseTwo()

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

func (*BackRepoRectLinkLinkStruct) RestoreXLPhaseOne

func (backRepoRectLinkLink *BackRepoRectLinkLinkStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "RectLinkLink" sheet all RectLinkLinkDB instances

type BackRepoRectStruct

type BackRepoRectStruct struct {
	// stores RectDB according to their gorm ID
	Map_RectDBID_RectDB map[uint]*RectDB

	// stores RectDB ID according to Rect address
	Map_RectPtr_RectDBID map[*models.Rect]uint

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

func (*BackRepoRectStruct) Backup

func (backRepoRect *BackRepoRectStruct) Backup(dirPath string)

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

func (*BackRepoRectStruct) BackupXL

func (backRepoRect *BackRepoRectStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoRectStruct) CheckoutPhaseOne

func (backRepoRect *BackRepoRectStruct) CheckoutPhaseOne() (Error error)

BackRepoRect.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

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

func (*BackRepoRectStruct) CheckoutPhaseOneInstance

func (backRepoRect *BackRepoRectStruct) CheckoutPhaseOneInstance(rectDB *RectDB) (Error error)

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

func (*BackRepoRectStruct) CheckoutPhaseTwo

func (backRepoRect *BackRepoRectStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoRectStruct) CheckoutPhaseTwoInstance

func (backRepoRect *BackRepoRectStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, rectDB *RectDB) (Error error)

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

func (*BackRepoRectStruct) CommitDeleteInstance

func (backRepoRect *BackRepoRectStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoRect.CommitDeleteInstance commits deletion of Rect to the BackRepo

func (*BackRepoRectStruct) CommitPhaseOne

func (backRepoRect *BackRepoRectStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoRect.CommitPhaseOne commits all staged instances of Rect 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 (*BackRepoRectStruct) CommitPhaseOneInstance

func (backRepoRect *BackRepoRectStruct) CommitPhaseOneInstance(rect *models.Rect) (Error error)

BackRepoRect.CommitPhaseOneInstance commits rect staged instances of Rect 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 (*BackRepoRectStruct) CommitPhaseTwo

func (backRepoRect *BackRepoRectStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoRectStruct) CommitPhaseTwoInstance

func (backRepoRect *BackRepoRectStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, rect *models.Rect) (Error error)

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

func (*BackRepoRectStruct) GetDB

func (backRepoRect *BackRepoRectStruct) GetDB() *gorm.DB

func (*BackRepoRectStruct) GetRectDBFromRectPtr

func (backRepoRect *BackRepoRectStruct) GetRectDBFromRectPtr(rect *models.Rect) (rectDB *RectDB)

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

func (*BackRepoRectStruct) GetStage

func (backRepoRect *BackRepoRectStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoRectStruct) ResetReversePointers

func (backRepoRect *BackRepoRectStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoRectStruct) ResetReversePointersInstance

func (backRepoRect *BackRepoRectStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, rect *models.Rect) (Error error)

func (*BackRepoRectStruct) RestorePhaseOne

func (backRepoRect *BackRepoRectStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoRectStruct) RestorePhaseTwo

func (backRepoRect *BackRepoRectStruct) RestorePhaseTwo()

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

func (*BackRepoRectStruct) RestoreXLPhaseOne

func (backRepoRect *BackRepoRectStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Rect" sheet all RectDB instances

type BackRepoSVGStruct

type BackRepoSVGStruct struct {
	// stores SVGDB according to their gorm ID
	Map_SVGDBID_SVGDB map[uint]*SVGDB

	// stores SVGDB ID according to SVG address
	Map_SVGPtr_SVGDBID map[*models.SVG]uint

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

func (*BackRepoSVGStruct) Backup

func (backRepoSVG *BackRepoSVGStruct) Backup(dirPath string)

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

func (*BackRepoSVGStruct) BackupXL

func (backRepoSVG *BackRepoSVGStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoSVGStruct) CheckoutPhaseOne

func (backRepoSVG *BackRepoSVGStruct) CheckoutPhaseOne() (Error error)

BackRepoSVG.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

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

func (*BackRepoSVGStruct) CheckoutPhaseOneInstance

func (backRepoSVG *BackRepoSVGStruct) CheckoutPhaseOneInstance(svgDB *SVGDB) (Error error)

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

func (*BackRepoSVGStruct) CheckoutPhaseTwo

func (backRepoSVG *BackRepoSVGStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoSVGStruct) CheckoutPhaseTwoInstance

func (backRepoSVG *BackRepoSVGStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, svgDB *SVGDB) (Error error)

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

func (*BackRepoSVGStruct) CommitDeleteInstance

func (backRepoSVG *BackRepoSVGStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoSVG.CommitDeleteInstance commits deletion of SVG to the BackRepo

func (*BackRepoSVGStruct) CommitPhaseOne

func (backRepoSVG *BackRepoSVGStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

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

func (*BackRepoSVGStruct) CommitPhaseOneInstance

func (backRepoSVG *BackRepoSVGStruct) CommitPhaseOneInstance(svg *models.SVG) (Error error)

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

func (*BackRepoSVGStruct) CommitPhaseTwo

func (backRepoSVG *BackRepoSVGStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoSVGStruct) CommitPhaseTwoInstance

func (backRepoSVG *BackRepoSVGStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, svg *models.SVG) (Error error)

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

func (*BackRepoSVGStruct) GetDB

func (backRepoSVG *BackRepoSVGStruct) GetDB() *gorm.DB

func (*BackRepoSVGStruct) GetSVGDBFromSVGPtr

func (backRepoSVG *BackRepoSVGStruct) GetSVGDBFromSVGPtr(svg *models.SVG) (svgDB *SVGDB)

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

func (*BackRepoSVGStruct) GetStage

func (backRepoSVG *BackRepoSVGStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoSVGStruct) ResetReversePointers

func (backRepoSVG *BackRepoSVGStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoSVGStruct) ResetReversePointersInstance

func (backRepoSVG *BackRepoSVGStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, svg *models.SVG) (Error error)

func (*BackRepoSVGStruct) RestorePhaseOne

func (backRepoSVG *BackRepoSVGStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoSVGStruct) RestorePhaseTwo

func (backRepoSVG *BackRepoSVGStruct) RestorePhaseTwo()

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

func (*BackRepoSVGStruct) RestoreXLPhaseOne

func (backRepoSVG *BackRepoSVGStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "SVG" sheet all SVGDB instances

type BackRepoStruct

type BackRepoStruct struct {
	// insertion point for per struct back repo declarations
	BackRepoAnimate BackRepoAnimateStruct

	BackRepoCircle BackRepoCircleStruct

	BackRepoEllipse BackRepoEllipseStruct

	BackRepoLayer BackRepoLayerStruct

	BackRepoLine BackRepoLineStruct

	BackRepoLink BackRepoLinkStruct

	BackRepoLinkAnchoredText BackRepoLinkAnchoredTextStruct

	BackRepoPath BackRepoPathStruct

	BackRepoPoint BackRepoPointStruct

	BackRepoPolygone BackRepoPolygoneStruct

	BackRepoPolyline BackRepoPolylineStruct

	BackRepoRect BackRepoRectStruct

	BackRepoRectAnchoredPath BackRepoRectAnchoredPathStruct

	BackRepoRectAnchoredRect BackRepoRectAnchoredRectStruct

	BackRepoRectAnchoredText BackRepoRectAnchoredTextStruct

	BackRepoRectLinkLink BackRepoRectLinkLinkStruct

	BackRepoSVG BackRepoSVGStruct

	BackRepoText BackRepoTextStruct

	CommitFromBackNb uint // records commit increments when performed by the back

	PushFromFrontNb uint // records commit increments when performed by the front
	// contains filtered or unexported fields
}

BackRepoStruct supports callback functions

func NewBackRepo

func NewBackRepo(stage *models.StageStruct, filename string) (backRepo *BackRepoStruct)

func (*BackRepoStruct) Backup

func (backRepo *BackRepoStruct) Backup(stage *models.StageStruct, dirPath string)

Backup the BackRepoStruct

func (*BackRepoStruct) BackupXL

func (backRepo *BackRepoStruct) BackupXL(stage *models.StageStruct, dirPath string)

Backup in XL the BackRepoStruct

func (*BackRepoStruct) Checkout

func (backRepo *BackRepoStruct) Checkout(stage *models.StageStruct)

Checkout the database into the stage

func (*BackRepoStruct) CheckoutAnimate

func (backRepo *BackRepoStruct) CheckoutAnimate(animate *models.Animate)

CommitAnimate allows checkout of a single animate (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutCircle

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

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

func (*BackRepoStruct) CheckoutEllipse

func (backRepo *BackRepoStruct) CheckoutEllipse(ellipse *models.Ellipse)

CommitEllipse allows checkout of a single ellipse (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutLayer

func (backRepo *BackRepoStruct) CheckoutLayer(layer *models.Layer)

CommitLayer allows checkout of a single layer (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutLine

func (backRepo *BackRepoStruct) CheckoutLine(line *models.Line)

CommitLine allows checkout of a single line (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) CheckoutLinkAnchoredText

func (backRepo *BackRepoStruct) CheckoutLinkAnchoredText(linkanchoredtext *models.LinkAnchoredText)

CommitLinkAnchoredText allows checkout of a single linkanchoredtext (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutPath

func (backRepo *BackRepoStruct) CheckoutPath(path *models.Path)

CommitPath allows checkout of a single path (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutPoint

func (backRepo *BackRepoStruct) CheckoutPoint(point *models.Point)

CommitPoint allows checkout of a single point (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutPolygone

func (backRepo *BackRepoStruct) CheckoutPolygone(polygone *models.Polygone)

CommitPolygone allows checkout of a single polygone (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutPolyline

func (backRepo *BackRepoStruct) CheckoutPolyline(polyline *models.Polyline)

CommitPolyline allows checkout of a single polyline (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutRect

func (backRepo *BackRepoStruct) CheckoutRect(rect *models.Rect)

CommitRect allows checkout of a single rect (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutRectAnchoredPath

func (backRepo *BackRepoStruct) CheckoutRectAnchoredPath(rectanchoredpath *models.RectAnchoredPath)

CommitRectAnchoredPath allows checkout of a single rectanchoredpath (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutRectAnchoredRect

func (backRepo *BackRepoStruct) CheckoutRectAnchoredRect(rectanchoredrect *models.RectAnchoredRect)

CommitRectAnchoredRect allows checkout of a single rectanchoredrect (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutRectAnchoredText

func (backRepo *BackRepoStruct) CheckoutRectAnchoredText(rectanchoredtext *models.RectAnchoredText)

CommitRectAnchoredText allows checkout of a single rectanchoredtext (if already staged and with a BackRepo id)

func (backRepo *BackRepoStruct) CheckoutRectLinkLink(rectlinklink *models.RectLinkLink)

CommitRectLinkLink allows checkout of a single rectlinklink (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutSVG

func (backRepo *BackRepoStruct) CheckoutSVG(svg *models.SVG)

CommitSVG allows checkout of a single svg (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutText

func (backRepo *BackRepoStruct) CheckoutText(text *models.Text)

CommitText allows checkout of a single text (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) CommitAnimate

func (backRepo *BackRepoStruct) CommitAnimate(animate *models.Animate)

CommitAnimate allows commit of a single animate (if already staged)

func (*BackRepoStruct) CommitCircle

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

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

func (*BackRepoStruct) CommitEllipse

func (backRepo *BackRepoStruct) CommitEllipse(ellipse *models.Ellipse)

CommitEllipse allows commit of a single ellipse (if already staged)

func (*BackRepoStruct) CommitLayer

func (backRepo *BackRepoStruct) CommitLayer(layer *models.Layer)

CommitLayer allows commit of a single layer (if already staged)

func (*BackRepoStruct) CommitLine

func (backRepo *BackRepoStruct) CommitLine(line *models.Line)

CommitLine allows commit of a single line (if already staged)

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

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

func (*BackRepoStruct) CommitLinkAnchoredText

func (backRepo *BackRepoStruct) CommitLinkAnchoredText(linkanchoredtext *models.LinkAnchoredText)

CommitLinkAnchoredText allows commit of a single linkanchoredtext (if already staged)

func (*BackRepoStruct) CommitPath

func (backRepo *BackRepoStruct) CommitPath(path *models.Path)

CommitPath allows commit of a single path (if already staged)

func (*BackRepoStruct) CommitPoint

func (backRepo *BackRepoStruct) CommitPoint(point *models.Point)

CommitPoint allows commit of a single point (if already staged)

func (*BackRepoStruct) CommitPolygone

func (backRepo *BackRepoStruct) CommitPolygone(polygone *models.Polygone)

CommitPolygone allows commit of a single polygone (if already staged)

func (*BackRepoStruct) CommitPolyline

func (backRepo *BackRepoStruct) CommitPolyline(polyline *models.Polyline)

CommitPolyline allows commit of a single polyline (if already staged)

func (*BackRepoStruct) CommitRect

func (backRepo *BackRepoStruct) CommitRect(rect *models.Rect)

CommitRect allows commit of a single rect (if already staged)

func (*BackRepoStruct) CommitRectAnchoredPath

func (backRepo *BackRepoStruct) CommitRectAnchoredPath(rectanchoredpath *models.RectAnchoredPath)

CommitRectAnchoredPath allows commit of a single rectanchoredpath (if already staged)

func (*BackRepoStruct) CommitRectAnchoredRect

func (backRepo *BackRepoStruct) CommitRectAnchoredRect(rectanchoredrect *models.RectAnchoredRect)

CommitRectAnchoredRect allows commit of a single rectanchoredrect (if already staged)

func (*BackRepoStruct) CommitRectAnchoredText

func (backRepo *BackRepoStruct) CommitRectAnchoredText(rectanchoredtext *models.RectAnchoredText)

CommitRectAnchoredText allows commit of a single rectanchoredtext (if already staged)

func (backRepo *BackRepoStruct) CommitRectLinkLink(rectlinklink *models.RectLinkLink)

CommitRectLinkLink allows commit of a single rectlinklink (if already staged)

func (*BackRepoStruct) CommitSVG

func (backRepo *BackRepoStruct) CommitSVG(svg *models.SVG)

CommitSVG allows commit of a single svg (if already staged)

func (*BackRepoStruct) CommitText

func (backRepo *BackRepoStruct) CommitText(text *models.Text)

CommitText allows commit of a single text (if already staged)

func (*BackRepoStruct) GetLastCommitFromBackNb

func (backRepo *BackRepoStruct) GetLastCommitFromBackNb() uint

func (*BackRepoStruct) GetLastPushFromFrontNb

func (backRepo *BackRepoStruct) GetLastPushFromFrontNb() uint

func (*BackRepoStruct) GetStage

func (backRepo *BackRepoStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoStruct) IncrementCommitFromBackNb

func (backRepo *BackRepoStruct) IncrementCommitFromBackNb() uint

func (*BackRepoStruct) IncrementPushFromFrontNb

func (backRepo *BackRepoStruct) IncrementPushFromFrontNb() uint

func (*BackRepoStruct) Restore

func (backRepo *BackRepoStruct) Restore(stage *models.StageStruct, dirPath string)

Restore the database into the back repo

func (*BackRepoStruct) RestoreXL

func (backRepo *BackRepoStruct) RestoreXL(stage *models.StageStruct, dirPath string)

Restore the database into the back repo

func (*BackRepoStruct) SubscribeToCommitNb

func (backRepoStruct *BackRepoStruct) SubscribeToCommitNb() <-chan int

type BackRepoTextStruct

type BackRepoTextStruct struct {
	// stores TextDB according to their gorm ID
	Map_TextDBID_TextDB map[uint]*TextDB

	// stores TextDB ID according to Text address
	Map_TextPtr_TextDBID map[*models.Text]uint

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

func (*BackRepoTextStruct) Backup

func (backRepoText *BackRepoTextStruct) Backup(dirPath string)

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

func (*BackRepoTextStruct) BackupXL

func (backRepoText *BackRepoTextStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoTextStruct) CheckoutPhaseOne

func (backRepoText *BackRepoTextStruct) CheckoutPhaseOne() (Error error)

BackRepoText.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

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

func (*BackRepoTextStruct) CheckoutPhaseOneInstance

func (backRepoText *BackRepoTextStruct) CheckoutPhaseOneInstance(textDB *TextDB) (Error error)

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

func (*BackRepoTextStruct) CheckoutPhaseTwo

func (backRepoText *BackRepoTextStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoTextStruct) CheckoutPhaseTwoInstance

func (backRepoText *BackRepoTextStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, textDB *TextDB) (Error error)

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

func (*BackRepoTextStruct) CommitDeleteInstance

func (backRepoText *BackRepoTextStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoText.CommitDeleteInstance commits deletion of Text to the BackRepo

func (*BackRepoTextStruct) CommitPhaseOne

func (backRepoText *BackRepoTextStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoText.CommitPhaseOne commits all staged instances of Text 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 (*BackRepoTextStruct) CommitPhaseOneInstance

func (backRepoText *BackRepoTextStruct) CommitPhaseOneInstance(text *models.Text) (Error error)

BackRepoText.CommitPhaseOneInstance commits text staged instances of Text 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 (*BackRepoTextStruct) CommitPhaseTwo

func (backRepoText *BackRepoTextStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoTextStruct) CommitPhaseTwoInstance

func (backRepoText *BackRepoTextStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, text *models.Text) (Error error)

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

func (*BackRepoTextStruct) GetDB

func (backRepoText *BackRepoTextStruct) GetDB() *gorm.DB

func (*BackRepoTextStruct) GetStage

func (backRepoText *BackRepoTextStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoTextStruct) GetTextDBFromTextPtr

func (backRepoText *BackRepoTextStruct) GetTextDBFromTextPtr(text *models.Text) (textDB *TextDB)

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

func (*BackRepoTextStruct) ResetReversePointers

func (backRepoText *BackRepoTextStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoTextStruct) ResetReversePointersInstance

func (backRepoText *BackRepoTextStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, text *models.Text) (Error error)

func (*BackRepoTextStruct) RestorePhaseOne

func (backRepoText *BackRepoTextStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoTextStruct) RestorePhaseTwo

func (backRepoText *BackRepoTextStruct) RestorePhaseTwo()

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

func (*BackRepoTextStruct) RestoreXLPhaseOne

func (backRepoText *BackRepoTextStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Text" sheet all TextDB instances

type CircleAPI

type CircleAPI struct {
	gorm.Model

	models.Circle_WOP

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

CircleAPI is the input in POST API

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

swagger:model circleAPI

type CircleDB

type CircleDB struct {
	gorm.Model

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

	// Declation for basic field circleDB.CX
	CX_Data sql.NullFloat64

	// Declation for basic field circleDB.CY
	CY_Data sql.NullFloat64

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

	// Declation for basic field circleDB.Color
	Color_Data sql.NullString

	// Declation for basic field circleDB.FillOpacity
	FillOpacity_Data sql.NullFloat64

	// Declation for basic field circleDB.Stroke
	Stroke_Data sql.NullString

	// Declation for basic field circleDB.StrokeWidth
	StrokeWidth_Data sql.NullFloat64

	// Declation for basic field circleDB.StrokeDashArray
	StrokeDashArray_Data sql.NullString

	// Declation for basic field circleDB.StrokeDashArrayWhenSelected
	StrokeDashArrayWhenSelected_Data sql.NullString

	// Declation for basic field circleDB.Transform
	Transform_Data sql.NullString

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

CircleDB describes a circle in the database

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

swagger:model circleDB

func (*CircleDB) CopyBasicFieldsFromCircle

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

CopyBasicFieldsFromCircle

func (*CircleDB) CopyBasicFieldsFromCircleWOP

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

CopyBasicFieldsFromCircleWOP

func (*CircleDB) CopyBasicFieldsFromCircle_WOP

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

CopyBasicFieldsFromCircle_WOP

func (*CircleDB) CopyBasicFieldsToCircle

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

CopyBasicFieldsToCircle

func (*CircleDB) CopyBasicFieldsToCircleWOP

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

CopyBasicFieldsToCircleWOP

func (*CircleDB) CopyBasicFieldsToCircle_WOP

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

CopyBasicFieldsToCircle_WOP

func (*CircleDB) DecodePointers

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

type CircleDBResponse

type CircleDBResponse struct {
	CircleDB
}

CircleDBResponse provides response swagger:response circleDBResponse

type CircleDBs

type CircleDBs []CircleDB

CircleDBs arrays circleDBs swagger:response circleDBsResponse

type CirclePointersEncoding

type CirclePointersEncoding struct {

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

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

type CircleWOP

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

	Name string `xlsx:"1"`

	CX float64 `xlsx:"2"`

	CY float64 `xlsx:"3"`

	Radius float64 `xlsx:"4"`

	Color string `xlsx:"5"`

	FillOpacity float64 `xlsx:"6"`

	Stroke string `xlsx:"7"`

	StrokeWidth float64 `xlsx:"8"`

	StrokeDashArray string `xlsx:"9"`

	StrokeDashArrayWhenSelected string `xlsx:"10"`

	Transform string `xlsx:"11"`
}

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

type EllipseAPI

type EllipseAPI struct {
	gorm.Model

	models.Ellipse_WOP

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

EllipseAPI 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 ellipseAPI

type EllipseDB

type EllipseDB struct {
	gorm.Model

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

	// Declation for basic field ellipseDB.CX
	CX_Data sql.NullFloat64

	// Declation for basic field ellipseDB.CY
	CY_Data sql.NullFloat64

	// Declation for basic field ellipseDB.RX
	RX_Data sql.NullFloat64

	// Declation for basic field ellipseDB.RY
	RY_Data sql.NullFloat64

	// Declation for basic field ellipseDB.Color
	Color_Data sql.NullString

	// Declation for basic field ellipseDB.FillOpacity
	FillOpacity_Data sql.NullFloat64

	// Declation for basic field ellipseDB.Stroke
	Stroke_Data sql.NullString

	// Declation for basic field ellipseDB.StrokeWidth
	StrokeWidth_Data sql.NullFloat64

	// Declation for basic field ellipseDB.StrokeDashArray
	StrokeDashArray_Data sql.NullString

	// Declation for basic field ellipseDB.StrokeDashArrayWhenSelected
	StrokeDashArrayWhenSelected_Data sql.NullString

	// Declation for basic field ellipseDB.Transform
	Transform_Data sql.NullString

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

EllipseDB describes a ellipse 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 ellipseDB

func (*EllipseDB) CopyBasicFieldsFromEllipse

func (ellipseDB *EllipseDB) CopyBasicFieldsFromEllipse(ellipse *models.Ellipse)

CopyBasicFieldsFromEllipse

func (*EllipseDB) CopyBasicFieldsFromEllipseWOP

func (ellipseDB *EllipseDB) CopyBasicFieldsFromEllipseWOP(ellipse *EllipseWOP)

CopyBasicFieldsFromEllipseWOP

func (*EllipseDB) CopyBasicFieldsFromEllipse_WOP

func (ellipseDB *EllipseDB) CopyBasicFieldsFromEllipse_WOP(ellipse *models.Ellipse_WOP)

CopyBasicFieldsFromEllipse_WOP

func (*EllipseDB) CopyBasicFieldsToEllipse

func (ellipseDB *EllipseDB) CopyBasicFieldsToEllipse(ellipse *models.Ellipse)

CopyBasicFieldsToEllipse

func (*EllipseDB) CopyBasicFieldsToEllipseWOP

func (ellipseDB *EllipseDB) CopyBasicFieldsToEllipseWOP(ellipse *EllipseWOP)

CopyBasicFieldsToEllipseWOP

func (*EllipseDB) CopyBasicFieldsToEllipse_WOP

func (ellipseDB *EllipseDB) CopyBasicFieldsToEllipse_WOP(ellipse *models.Ellipse_WOP)

CopyBasicFieldsToEllipse_WOP

func (*EllipseDB) DecodePointers

func (ellipseDB *EllipseDB) DecodePointers(backRepo *BackRepoStruct, ellipse *models.Ellipse)

type EllipseDBResponse

type EllipseDBResponse struct {
	EllipseDB
}

EllipseDBResponse provides response swagger:response ellipseDBResponse

type EllipseDBs

type EllipseDBs []EllipseDB

EllipseDBs arrays ellipseDBs swagger:response ellipseDBsResponse

type EllipsePointersEncoding

type EllipsePointersEncoding struct {

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

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

type EllipseWOP

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

	Name string `xlsx:"1"`

	CX float64 `xlsx:"2"`

	CY float64 `xlsx:"3"`

	RX float64 `xlsx:"4"`

	RY float64 `xlsx:"5"`

	Color string `xlsx:"6"`

	FillOpacity float64 `xlsx:"7"`

	Stroke string `xlsx:"8"`

	StrokeWidth float64 `xlsx:"9"`

	StrokeDashArray string `xlsx:"10"`

	StrokeDashArrayWhenSelected string `xlsx:"11"`

	Transform string `xlsx:"12"`
}

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

type GongstructDB

type GongstructDB interface {
	// insertion point for generic types
	// "int" is present to handle the case when no struct is present
	int | AnimateDB | CircleDB | EllipseDB | LayerDB | LineDB | LinkDB | LinkAnchoredTextDB | PathDB | PointDB | PolygoneDB | PolylineDB | RectDB | RectAnchoredPathDB | RectAnchoredRectDB | RectAnchoredTextDB | RectLinkLinkDB | SVGDB | TextDB
}

type IntSlice

type IntSlice []int

func (*IntSlice) Scan

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

Scan makes IntSlice implement the sql.Scanner interface.

func (IntSlice) Value

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

Value makes IntSlice implement the driver.Valuer interface.

type LayerAPI

type LayerAPI struct {
	gorm.Model

	models.Layer_WOP

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

LayerAPI 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 layerAPI

type LayerDB

type LayerDB struct {
	gorm.Model

	// Declation for basic field layerDB.Display
	// provide the sql storage for the boolan
	Display_Data sql.NullBool

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

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

LayerDB describes a layer 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 layerDB

func (*LayerDB) CopyBasicFieldsFromLayer

func (layerDB *LayerDB) CopyBasicFieldsFromLayer(layer *models.Layer)

CopyBasicFieldsFromLayer

func (*LayerDB) CopyBasicFieldsFromLayerWOP

func (layerDB *LayerDB) CopyBasicFieldsFromLayerWOP(layer *LayerWOP)

CopyBasicFieldsFromLayerWOP

func (*LayerDB) CopyBasicFieldsFromLayer_WOP

func (layerDB *LayerDB) CopyBasicFieldsFromLayer_WOP(layer *models.Layer_WOP)

CopyBasicFieldsFromLayer_WOP

func (*LayerDB) CopyBasicFieldsToLayer

func (layerDB *LayerDB) CopyBasicFieldsToLayer(layer *models.Layer)

CopyBasicFieldsToLayer

func (*LayerDB) CopyBasicFieldsToLayerWOP

func (layerDB *LayerDB) CopyBasicFieldsToLayerWOP(layer *LayerWOP)

CopyBasicFieldsToLayerWOP

func (*LayerDB) CopyBasicFieldsToLayer_WOP

func (layerDB *LayerDB) CopyBasicFieldsToLayer_WOP(layer *models.Layer_WOP)

CopyBasicFieldsToLayer_WOP

func (*LayerDB) DecodePointers

func (layerDB *LayerDB) DecodePointers(backRepo *BackRepoStruct, layer *models.Layer)

type LayerDBResponse

type LayerDBResponse struct {
	LayerDB
}

LayerDBResponse provides response swagger:response layerDBResponse

type LayerDBs

type LayerDBs []LayerDB

LayerDBs arrays layerDBs swagger:response layerDBsResponse

type LayerPointersEncoding

type LayerPointersEncoding struct {

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

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

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

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

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

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

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

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

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

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

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

type LayerWOP

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

	Display bool `xlsx:"1"`

	Name string `xlsx:"2"`
}

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

type LineAPI

type LineAPI struct {
	gorm.Model

	models.Line_WOP

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

LineAPI 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 lineAPI

type LineDB

type LineDB struct {
	gorm.Model

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

	// Declation for basic field lineDB.X1
	X1_Data sql.NullFloat64

	// Declation for basic field lineDB.Y1
	Y1_Data sql.NullFloat64

	// Declation for basic field lineDB.X2
	X2_Data sql.NullFloat64

	// Declation for basic field lineDB.Y2
	Y2_Data sql.NullFloat64

	// Declation for basic field lineDB.Color
	Color_Data sql.NullString

	// Declation for basic field lineDB.FillOpacity
	FillOpacity_Data sql.NullFloat64

	// Declation for basic field lineDB.Stroke
	Stroke_Data sql.NullString

	// Declation for basic field lineDB.StrokeWidth
	StrokeWidth_Data sql.NullFloat64

	// Declation for basic field lineDB.StrokeDashArray
	StrokeDashArray_Data sql.NullString

	// Declation for basic field lineDB.StrokeDashArrayWhenSelected
	StrokeDashArrayWhenSelected_Data sql.NullString

	// Declation for basic field lineDB.Transform
	Transform_Data sql.NullString

	// Declation for basic field lineDB.MouseClickX
	MouseClickX_Data sql.NullFloat64

	// Declation for basic field lineDB.MouseClickY
	MouseClickY_Data sql.NullFloat64

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

LineDB describes a line 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 lineDB

func (*LineDB) CopyBasicFieldsFromLine

func (lineDB *LineDB) CopyBasicFieldsFromLine(line *models.Line)

CopyBasicFieldsFromLine

func (*LineDB) CopyBasicFieldsFromLineWOP

func (lineDB *LineDB) CopyBasicFieldsFromLineWOP(line *LineWOP)

CopyBasicFieldsFromLineWOP

func (*LineDB) CopyBasicFieldsFromLine_WOP

func (lineDB *LineDB) CopyBasicFieldsFromLine_WOP(line *models.Line_WOP)

CopyBasicFieldsFromLine_WOP

func (*LineDB) CopyBasicFieldsToLine

func (lineDB *LineDB) CopyBasicFieldsToLine(line *models.Line)

CopyBasicFieldsToLine

func (*LineDB) CopyBasicFieldsToLineWOP

func (lineDB *LineDB) CopyBasicFieldsToLineWOP(line *LineWOP)

CopyBasicFieldsToLineWOP

func (*LineDB) CopyBasicFieldsToLine_WOP

func (lineDB *LineDB) CopyBasicFieldsToLine_WOP(line *models.Line_WOP)

CopyBasicFieldsToLine_WOP

func (*LineDB) DecodePointers

func (lineDB *LineDB) DecodePointers(backRepo *BackRepoStruct, line *models.Line)

type LineDBResponse

type LineDBResponse struct {
	LineDB
}

LineDBResponse provides response swagger:response lineDBResponse

type LineDBs

type LineDBs []LineDB

LineDBs arrays lineDBs swagger:response lineDBsResponse

type LinePointersEncoding

type LinePointersEncoding struct {

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

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

type LineWOP

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

	Name string `xlsx:"1"`

	X1 float64 `xlsx:"2"`

	Y1 float64 `xlsx:"3"`

	X2 float64 `xlsx:"4"`

	Y2 float64 `xlsx:"5"`

	Color string `xlsx:"6"`

	FillOpacity float64 `xlsx:"7"`

	Stroke string `xlsx:"8"`

	StrokeWidth float64 `xlsx:"9"`

	StrokeDashArray string `xlsx:"10"`

	StrokeDashArrayWhenSelected string `xlsx:"11"`

	Transform string `xlsx:"12"`

	MouseClickX float64 `xlsx:"13"`

	MouseClickY float64 `xlsx:"14"`
}

LineWOP is a Line 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_WOP

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

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 LinkAnchoredTextAPI

type LinkAnchoredTextAPI struct {
	gorm.Model

	models.LinkAnchoredText_WOP

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

LinkAnchoredTextAPI 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 linkanchoredtextAPI

type LinkAnchoredTextDB

type LinkAnchoredTextDB struct {
	gorm.Model

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

	// Declation for basic field linkanchoredtextDB.Content
	Content_Data sql.NullString

	// Declation for basic field linkanchoredtextDB.AutomaticLayout
	// provide the sql storage for the boolan
	AutomaticLayout_Data sql.NullBool

	// Declation for basic field linkanchoredtextDB.LinkAnchorType
	LinkAnchorType_Data sql.NullString

	// Declation for basic field linkanchoredtextDB.X_Offset
	X_Offset_Data sql.NullFloat64

	// Declation for basic field linkanchoredtextDB.Y_Offset
	Y_Offset_Data sql.NullFloat64

	// Declation for basic field linkanchoredtextDB.FontWeight
	FontWeight_Data sql.NullString

	// Declation for basic field linkanchoredtextDB.Color
	Color_Data sql.NullString

	// Declation for basic field linkanchoredtextDB.FillOpacity
	FillOpacity_Data sql.NullFloat64

	// Declation for basic field linkanchoredtextDB.Stroke
	Stroke_Data sql.NullString

	// Declation for basic field linkanchoredtextDB.StrokeWidth
	StrokeWidth_Data sql.NullFloat64

	// Declation for basic field linkanchoredtextDB.StrokeDashArray
	StrokeDashArray_Data sql.NullString

	// Declation for basic field linkanchoredtextDB.StrokeDashArrayWhenSelected
	StrokeDashArrayWhenSelected_Data sql.NullString

	// Declation for basic field linkanchoredtextDB.Transform
	Transform_Data sql.NullString

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

LinkAnchoredTextDB describes a linkanchoredtext 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 linkanchoredtextDB

func (*LinkAnchoredTextDB) CopyBasicFieldsFromLinkAnchoredText

func (linkanchoredtextDB *LinkAnchoredTextDB) CopyBasicFieldsFromLinkAnchoredText(linkanchoredtext *models.LinkAnchoredText)

CopyBasicFieldsFromLinkAnchoredText

func (*LinkAnchoredTextDB) CopyBasicFieldsFromLinkAnchoredTextWOP

func (linkanchoredtextDB *LinkAnchoredTextDB) CopyBasicFieldsFromLinkAnchoredTextWOP(linkanchoredtext *LinkAnchoredTextWOP)

CopyBasicFieldsFromLinkAnchoredTextWOP

func (*LinkAnchoredTextDB) CopyBasicFieldsFromLinkAnchoredText_WOP

func (linkanchoredtextDB *LinkAnchoredTextDB) CopyBasicFieldsFromLinkAnchoredText_WOP(linkanchoredtext *models.LinkAnchoredText_WOP)

CopyBasicFieldsFromLinkAnchoredText_WOP

func (*LinkAnchoredTextDB) CopyBasicFieldsToLinkAnchoredText

func (linkanchoredtextDB *LinkAnchoredTextDB) CopyBasicFieldsToLinkAnchoredText(linkanchoredtext *models.LinkAnchoredText)

CopyBasicFieldsToLinkAnchoredText

func (*LinkAnchoredTextDB) CopyBasicFieldsToLinkAnchoredTextWOP

func (linkanchoredtextDB *LinkAnchoredTextDB) CopyBasicFieldsToLinkAnchoredTextWOP(linkanchoredtext *LinkAnchoredTextWOP)

CopyBasicFieldsToLinkAnchoredTextWOP

func (*LinkAnchoredTextDB) CopyBasicFieldsToLinkAnchoredText_WOP

func (linkanchoredtextDB *LinkAnchoredTextDB) CopyBasicFieldsToLinkAnchoredText_WOP(linkanchoredtext *models.LinkAnchoredText_WOP)

CopyBasicFieldsToLinkAnchoredText_WOP

func (*LinkAnchoredTextDB) DecodePointers

func (linkanchoredtextDB *LinkAnchoredTextDB) DecodePointers(backRepo *BackRepoStruct, linkanchoredtext *models.LinkAnchoredText)

type LinkAnchoredTextDBResponse

type LinkAnchoredTextDBResponse struct {
	LinkAnchoredTextDB
}

LinkAnchoredTextDBResponse provides response swagger:response linkanchoredtextDBResponse

type LinkAnchoredTextDBs

type LinkAnchoredTextDBs []LinkAnchoredTextDB

LinkAnchoredTextDBs arrays linkanchoredtextDBs swagger:response linkanchoredtextDBsResponse

type LinkAnchoredTextPointersEncoding

type LinkAnchoredTextPointersEncoding struct {

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

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

type LinkAnchoredTextWOP

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

	Name string `xlsx:"1"`

	Content string `xlsx:"2"`

	AutomaticLayout bool `xlsx:"3"`

	LinkAnchorType models.LinkAnchorType `xlsx:"4"`

	X_Offset float64 `xlsx:"5"`

	Y_Offset float64 `xlsx:"6"`

	FontWeight string `xlsx:"7"`

	Color string `xlsx:"8"`

	FillOpacity float64 `xlsx:"9"`

	Stroke string `xlsx:"10"`

	StrokeWidth float64 `xlsx:"11"`

	StrokeDashArray string `xlsx:"12"`

	StrokeDashArrayWhenSelected string `xlsx:"13"`

	Transform string `xlsx:"14"`
}

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

type LinkDB

type LinkDB struct {
	gorm.Model

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

	// Declation for basic field linkDB.Type
	Type_Data sql.NullString

	// Declation for basic field linkDB.IsBezierCurve
	// provide the sql storage for the boolan
	IsBezierCurve_Data sql.NullBool

	// Declation for basic field linkDB.StartAnchorType
	StartAnchorType_Data sql.NullString

	// Declation for basic field linkDB.EndAnchorType
	EndAnchorType_Data sql.NullString

	// Declation for basic field linkDB.StartOrientation
	StartOrientation_Data sql.NullString

	// Declation for basic field linkDB.StartRatio
	StartRatio_Data sql.NullFloat64

	// Declation for basic field linkDB.EndOrientation
	EndOrientation_Data sql.NullString

	// Declation for basic field linkDB.EndRatio
	EndRatio_Data sql.NullFloat64

	// Declation for basic field linkDB.CornerOffsetRatio
	CornerOffsetRatio_Data sql.NullFloat64

	// Declation for basic field linkDB.CornerRadius
	CornerRadius_Data sql.NullFloat64

	// Declation for basic field linkDB.HasEndArrow
	// provide the sql storage for the boolan
	HasEndArrow_Data sql.NullBool

	// Declation for basic field linkDB.EndArrowSize
	EndArrowSize_Data sql.NullFloat64

	// Declation for basic field linkDB.HasStartArrow
	// provide the sql storage for the boolan
	HasStartArrow_Data sql.NullBool

	// Declation for basic field linkDB.StartArrowSize
	StartArrowSize_Data sql.NullFloat64

	// Declation for basic field linkDB.Color
	Color_Data sql.NullString

	// Declation for basic field linkDB.FillOpacity
	FillOpacity_Data sql.NullFloat64

	// Declation for basic field linkDB.Stroke
	Stroke_Data sql.NullString

	// Declation for basic field linkDB.StrokeWidth
	StrokeWidth_Data sql.NullFloat64

	// Declation for basic field linkDB.StrokeDashArray
	StrokeDashArray_Data sql.NullString

	// Declation for basic field linkDB.StrokeDashArrayWhenSelected
	StrokeDashArrayWhenSelected_Data sql.NullString

	// Declation for basic field linkDB.Transform
	Transform_Data sql.NullString

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

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) CopyBasicFieldsFromLink_WOP(link *models.Link_WOP)

CopyBasicFieldsFromLink_WOP

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

CopyBasicFieldsToLink

func (*LinkDB) CopyBasicFieldsToLinkWOP

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

CopyBasicFieldsToLinkWOP

func (linkDB *LinkDB) CopyBasicFieldsToLink_WOP(link *models.Link_WOP)

CopyBasicFieldsToLink_WOP

func (*LinkDB) DecodePointers

func (linkDB *LinkDB) DecodePointers(backRepo *BackRepoStruct, link *models.Link)

type LinkDBResponse

type LinkDBResponse struct {
	LinkDB
}

LinkDBResponse provides response swagger:response linkDBResponse

type LinkDBs

type LinkDBs []LinkDB

LinkDBs arrays linkDBs swagger:response linkDBsResponse

type LinkPointersEncoding

type LinkPointersEncoding struct {

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

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

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

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

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

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

type LinkWOP

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

	Name string `xlsx:"1"`

	Type models.LinkType `xlsx:"2"`

	IsBezierCurve bool `xlsx:"3"`

	StartAnchorType models.AnchorType `xlsx:"4"`

	EndAnchorType models.AnchorType `xlsx:"5"`

	StartOrientation models.OrientationType `xlsx:"6"`

	StartRatio float64 `xlsx:"7"`

	EndOrientation models.OrientationType `xlsx:"8"`

	EndRatio float64 `xlsx:"9"`

	CornerOffsetRatio float64 `xlsx:"10"`

	CornerRadius float64 `xlsx:"11"`

	HasEndArrow bool `xlsx:"12"`

	EndArrowSize float64 `xlsx:"13"`

	HasStartArrow bool `xlsx:"14"`

	StartArrowSize float64 `xlsx:"15"`

	Color string `xlsx:"16"`

	FillOpacity float64 `xlsx:"17"`

	Stroke string `xlsx:"18"`

	StrokeWidth float64 `xlsx:"19"`

	StrokeDashArray string `xlsx:"20"`

	StrokeDashArrayWhenSelected string `xlsx:"21"`

	Transform string `xlsx:"22"`
}

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 PathAPI

type PathAPI struct {
	gorm.Model

	models.Path_WOP

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

PathAPI 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 pathAPI

type PathDB

type PathDB struct {
	gorm.Model

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

	// Declation for basic field pathDB.Definition
	Definition_Data sql.NullString

	// Declation for basic field pathDB.Color
	Color_Data sql.NullString

	// Declation for basic field pathDB.FillOpacity
	FillOpacity_Data sql.NullFloat64

	// Declation for basic field pathDB.Stroke
	Stroke_Data sql.NullString

	// Declation for basic field pathDB.StrokeWidth
	StrokeWidth_Data sql.NullFloat64

	// Declation for basic field pathDB.StrokeDashArray
	StrokeDashArray_Data sql.NullString

	// Declation for basic field pathDB.StrokeDashArrayWhenSelected
	StrokeDashArrayWhenSelected_Data sql.NullString

	// Declation for basic field pathDB.Transform
	Transform_Data sql.NullString

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

PathDB describes a path 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 pathDB

func (*PathDB) CopyBasicFieldsFromPath

func (pathDB *PathDB) CopyBasicFieldsFromPath(path *models.Path)

CopyBasicFieldsFromPath

func (*PathDB) CopyBasicFieldsFromPathWOP

func (pathDB *PathDB) CopyBasicFieldsFromPathWOP(path *PathWOP)

CopyBasicFieldsFromPathWOP

func (*PathDB) CopyBasicFieldsFromPath_WOP

func (pathDB *PathDB) CopyBasicFieldsFromPath_WOP(path *models.Path_WOP)

CopyBasicFieldsFromPath_WOP

func (*PathDB) CopyBasicFieldsToPath

func (pathDB *PathDB) CopyBasicFieldsToPath(path *models.Path)

CopyBasicFieldsToPath

func (*PathDB) CopyBasicFieldsToPathWOP

func (pathDB *PathDB) CopyBasicFieldsToPathWOP(path *PathWOP)

CopyBasicFieldsToPathWOP

func (*PathDB) CopyBasicFieldsToPath_WOP

func (pathDB *PathDB) CopyBasicFieldsToPath_WOP(path *models.Path_WOP)

CopyBasicFieldsToPath_WOP

func (*PathDB) DecodePointers

func (pathDB *PathDB) DecodePointers(backRepo *BackRepoStruct, path *models.Path)

type PathDBResponse

type PathDBResponse struct {
	PathDB
}

PathDBResponse provides response swagger:response pathDBResponse

type PathDBs

type PathDBs []PathDB

PathDBs arrays pathDBs swagger:response pathDBsResponse

type PathPointersEncoding

type PathPointersEncoding struct {

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

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

type PathWOP

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

	Name string `xlsx:"1"`

	Definition string `xlsx:"2"`

	Color string `xlsx:"3"`

	FillOpacity float64 `xlsx:"4"`

	Stroke string `xlsx:"5"`

	StrokeWidth float64 `xlsx:"6"`

	StrokeDashArray string `xlsx:"7"`

	StrokeDashArrayWhenSelected string `xlsx:"8"`

	Transform string `xlsx:"9"`
}

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

type PointAPI

type PointAPI struct {
	gorm.Model

	models.Point_WOP

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

PointAPI 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 pointAPI

type PointDB

type PointDB struct {
	gorm.Model

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

	// Declation for basic field pointDB.X
	X_Data sql.NullFloat64

	// Declation for basic field pointDB.Y
	Y_Data sql.NullFloat64

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

PointDB describes a point 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 pointDB

func (*PointDB) CopyBasicFieldsFromPoint

func (pointDB *PointDB) CopyBasicFieldsFromPoint(point *models.Point)

CopyBasicFieldsFromPoint

func (*PointDB) CopyBasicFieldsFromPointWOP

func (pointDB *PointDB) CopyBasicFieldsFromPointWOP(point *PointWOP)

CopyBasicFieldsFromPointWOP

func (*PointDB) CopyBasicFieldsFromPoint_WOP

func (pointDB *PointDB) CopyBasicFieldsFromPoint_WOP(point *models.Point_WOP)

CopyBasicFieldsFromPoint_WOP

func (*PointDB) CopyBasicFieldsToPoint

func (pointDB *PointDB) CopyBasicFieldsToPoint(point *models.Point)

CopyBasicFieldsToPoint

func (*PointDB) CopyBasicFieldsToPointWOP

func (pointDB *PointDB) CopyBasicFieldsToPointWOP(point *PointWOP)

CopyBasicFieldsToPointWOP

func (*PointDB) CopyBasicFieldsToPoint_WOP

func (pointDB *PointDB) CopyBasicFieldsToPoint_WOP(point *models.Point_WOP)

CopyBasicFieldsToPoint_WOP

func (*PointDB) DecodePointers

func (pointDB *PointDB) DecodePointers(backRepo *BackRepoStruct, point *models.Point)

type PointDBResponse

type PointDBResponse struct {
	PointDB
}

PointDBResponse provides response swagger:response pointDBResponse

type PointDBs

type PointDBs []PointDB

PointDBs arrays pointDBs swagger:response pointDBsResponse

type PointPointersEncoding

type PointPointersEncoding struct {
}

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

type PointWOP

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

	Name string `xlsx:"1"`

	X float64 `xlsx:"2"`

	Y float64 `xlsx:"3"`
}

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

type PolygoneAPI

type PolygoneAPI struct {
	gorm.Model

	models.Polygone_WOP

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

PolygoneAPI 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 polygoneAPI

type PolygoneDB

type PolygoneDB struct {
	gorm.Model

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

	// Declation for basic field polygoneDB.Points
	Points_Data sql.NullString

	// Declation for basic field polygoneDB.Color
	Color_Data sql.NullString

	// Declation for basic field polygoneDB.FillOpacity
	FillOpacity_Data sql.NullFloat64

	// Declation for basic field polygoneDB.Stroke
	Stroke_Data sql.NullString

	// Declation for basic field polygoneDB.StrokeWidth
	StrokeWidth_Data sql.NullFloat64

	// Declation for basic field polygoneDB.StrokeDashArray
	StrokeDashArray_Data sql.NullString

	// Declation for basic field polygoneDB.StrokeDashArrayWhenSelected
	StrokeDashArrayWhenSelected_Data sql.NullString

	// Declation for basic field polygoneDB.Transform
	Transform_Data sql.NullString

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

PolygoneDB describes a polygone 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 polygoneDB

func (*PolygoneDB) CopyBasicFieldsFromPolygone

func (polygoneDB *PolygoneDB) CopyBasicFieldsFromPolygone(polygone *models.Polygone)

CopyBasicFieldsFromPolygone

func (*PolygoneDB) CopyBasicFieldsFromPolygoneWOP

func (polygoneDB *PolygoneDB) CopyBasicFieldsFromPolygoneWOP(polygone *PolygoneWOP)

CopyBasicFieldsFromPolygoneWOP

func (*PolygoneDB) CopyBasicFieldsFromPolygone_WOP

func (polygoneDB *PolygoneDB) CopyBasicFieldsFromPolygone_WOP(polygone *models.Polygone_WOP)

CopyBasicFieldsFromPolygone_WOP

func (*PolygoneDB) CopyBasicFieldsToPolygone

func (polygoneDB *PolygoneDB) CopyBasicFieldsToPolygone(polygone *models.Polygone)

CopyBasicFieldsToPolygone

func (*PolygoneDB) CopyBasicFieldsToPolygoneWOP

func (polygoneDB *PolygoneDB) CopyBasicFieldsToPolygoneWOP(polygone *PolygoneWOP)

CopyBasicFieldsToPolygoneWOP

func (*PolygoneDB) CopyBasicFieldsToPolygone_WOP

func (polygoneDB *PolygoneDB) CopyBasicFieldsToPolygone_WOP(polygone *models.Polygone_WOP)

CopyBasicFieldsToPolygone_WOP

func (*PolygoneDB) DecodePointers

func (polygoneDB *PolygoneDB) DecodePointers(backRepo *BackRepoStruct, polygone *models.Polygone)

type PolygoneDBResponse

type PolygoneDBResponse struct {
	PolygoneDB
}

PolygoneDBResponse provides response swagger:response polygoneDBResponse

type PolygoneDBs

type PolygoneDBs []PolygoneDB

PolygoneDBs arrays polygoneDBs swagger:response polygoneDBsResponse

type PolygonePointersEncoding

type PolygonePointersEncoding struct {

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

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

type PolygoneWOP

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

	Name string `xlsx:"1"`

	Points string `xlsx:"2"`

	Color string `xlsx:"3"`

	FillOpacity float64 `xlsx:"4"`

	Stroke string `xlsx:"5"`

	StrokeWidth float64 `xlsx:"6"`

	StrokeDashArray string `xlsx:"7"`

	StrokeDashArrayWhenSelected string `xlsx:"8"`

	Transform string `xlsx:"9"`
}

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

type PolylineAPI

type PolylineAPI struct {
	gorm.Model

	models.Polyline_WOP

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

PolylineAPI 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 polylineAPI

type PolylineDB

type PolylineDB struct {
	gorm.Model

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

	// Declation for basic field polylineDB.Points
	Points_Data sql.NullString

	// Declation for basic field polylineDB.Color
	Color_Data sql.NullString

	// Declation for basic field polylineDB.FillOpacity
	FillOpacity_Data sql.NullFloat64

	// Declation for basic field polylineDB.Stroke
	Stroke_Data sql.NullString

	// Declation for basic field polylineDB.StrokeWidth
	StrokeWidth_Data sql.NullFloat64

	// Declation for basic field polylineDB.StrokeDashArray
	StrokeDashArray_Data sql.NullString

	// Declation for basic field polylineDB.StrokeDashArrayWhenSelected
	StrokeDashArrayWhenSelected_Data sql.NullString

	// Declation for basic field polylineDB.Transform
	Transform_Data sql.NullString

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

PolylineDB describes a polyline 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 polylineDB

func (*PolylineDB) CopyBasicFieldsFromPolyline

func (polylineDB *PolylineDB) CopyBasicFieldsFromPolyline(polyline *models.Polyline)

CopyBasicFieldsFromPolyline

func (*PolylineDB) CopyBasicFieldsFromPolylineWOP

func (polylineDB *PolylineDB) CopyBasicFieldsFromPolylineWOP(polyline *PolylineWOP)

CopyBasicFieldsFromPolylineWOP

func (*PolylineDB) CopyBasicFieldsFromPolyline_WOP

func (polylineDB *PolylineDB) CopyBasicFieldsFromPolyline_WOP(polyline *models.Polyline_WOP)

CopyBasicFieldsFromPolyline_WOP

func (*PolylineDB) CopyBasicFieldsToPolyline

func (polylineDB *PolylineDB) CopyBasicFieldsToPolyline(polyline *models.Polyline)

CopyBasicFieldsToPolyline

func (*PolylineDB) CopyBasicFieldsToPolylineWOP

func (polylineDB *PolylineDB) CopyBasicFieldsToPolylineWOP(polyline *PolylineWOP)

CopyBasicFieldsToPolylineWOP

func (*PolylineDB) CopyBasicFieldsToPolyline_WOP

func (polylineDB *PolylineDB) CopyBasicFieldsToPolyline_WOP(polyline *models.Polyline_WOP)

CopyBasicFieldsToPolyline_WOP

func (*PolylineDB) DecodePointers

func (polylineDB *PolylineDB) DecodePointers(backRepo *BackRepoStruct, polyline *models.Polyline)

type PolylineDBResponse

type PolylineDBResponse struct {
	PolylineDB
}

PolylineDBResponse provides response swagger:response polylineDBResponse

type PolylineDBs

type PolylineDBs []PolylineDB

PolylineDBs arrays polylineDBs swagger:response polylineDBsResponse

type PolylinePointersEncoding

type PolylinePointersEncoding struct {

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

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

type PolylineWOP

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

	Name string `xlsx:"1"`

	Points string `xlsx:"2"`

	Color string `xlsx:"3"`

	FillOpacity float64 `xlsx:"4"`

	Stroke string `xlsx:"5"`

	StrokeWidth float64 `xlsx:"6"`

	StrokeDashArray string `xlsx:"7"`

	StrokeDashArrayWhenSelected string `xlsx:"8"`

	Transform string `xlsx:"9"`
}

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

type RectAPI

type RectAPI struct {
	gorm.Model

	models.Rect_WOP

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

RectAPI 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 rectAPI

type RectAnchoredPathAPI

type RectAnchoredPathAPI struct {
	gorm.Model

	models.RectAnchoredPath_WOP

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

RectAnchoredPathAPI 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 rectanchoredpathAPI

type RectAnchoredPathDB

type RectAnchoredPathDB struct {
	gorm.Model

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

	// Declation for basic field rectanchoredpathDB.Definition
	Definition_Data sql.NullString

	// Declation for basic field rectanchoredpathDB.X_Offset
	X_Offset_Data sql.NullFloat64

	// Declation for basic field rectanchoredpathDB.Y_Offset
	Y_Offset_Data sql.NullFloat64

	// Declation for basic field rectanchoredpathDB.RectAnchorType
	RectAnchorType_Data sql.NullString

	// Declation for basic field rectanchoredpathDB.ScalePropotionnally
	// provide the sql storage for the boolan
	ScalePropotionnally_Data sql.NullBool

	// Declation for basic field rectanchoredpathDB.AppliedScaling
	AppliedScaling_Data sql.NullFloat64

	// Declation for basic field rectanchoredpathDB.Color
	Color_Data sql.NullString

	// Declation for basic field rectanchoredpathDB.FillOpacity
	FillOpacity_Data sql.NullFloat64

	// Declation for basic field rectanchoredpathDB.Stroke
	Stroke_Data sql.NullString

	// Declation for basic field rectanchoredpathDB.StrokeWidth
	StrokeWidth_Data sql.NullFloat64

	// Declation for basic field rectanchoredpathDB.StrokeDashArray
	StrokeDashArray_Data sql.NullString

	// Declation for basic field rectanchoredpathDB.StrokeDashArrayWhenSelected
	StrokeDashArrayWhenSelected_Data sql.NullString

	// Declation for basic field rectanchoredpathDB.Transform
	Transform_Data sql.NullString

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

RectAnchoredPathDB describes a rectanchoredpath 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 rectanchoredpathDB

func (*RectAnchoredPathDB) CopyBasicFieldsFromRectAnchoredPath

func (rectanchoredpathDB *RectAnchoredPathDB) CopyBasicFieldsFromRectAnchoredPath(rectanchoredpath *models.RectAnchoredPath)

CopyBasicFieldsFromRectAnchoredPath

func (*RectAnchoredPathDB) CopyBasicFieldsFromRectAnchoredPathWOP

func (rectanchoredpathDB *RectAnchoredPathDB) CopyBasicFieldsFromRectAnchoredPathWOP(rectanchoredpath *RectAnchoredPathWOP)

CopyBasicFieldsFromRectAnchoredPathWOP

func (*RectAnchoredPathDB) CopyBasicFieldsFromRectAnchoredPath_WOP

func (rectanchoredpathDB *RectAnchoredPathDB) CopyBasicFieldsFromRectAnchoredPath_WOP(rectanchoredpath *models.RectAnchoredPath_WOP)

CopyBasicFieldsFromRectAnchoredPath_WOP

func (*RectAnchoredPathDB) CopyBasicFieldsToRectAnchoredPath

func (rectanchoredpathDB *RectAnchoredPathDB) CopyBasicFieldsToRectAnchoredPath(rectanchoredpath *models.RectAnchoredPath)

CopyBasicFieldsToRectAnchoredPath

func (*RectAnchoredPathDB) CopyBasicFieldsToRectAnchoredPathWOP

func (rectanchoredpathDB *RectAnchoredPathDB) CopyBasicFieldsToRectAnchoredPathWOP(rectanchoredpath *RectAnchoredPathWOP)

CopyBasicFieldsToRectAnchoredPathWOP

func (*RectAnchoredPathDB) CopyBasicFieldsToRectAnchoredPath_WOP

func (rectanchoredpathDB *RectAnchoredPathDB) CopyBasicFieldsToRectAnchoredPath_WOP(rectanchoredpath *models.RectAnchoredPath_WOP)

CopyBasicFieldsToRectAnchoredPath_WOP

func (*RectAnchoredPathDB) DecodePointers

func (rectanchoredpathDB *RectAnchoredPathDB) DecodePointers(backRepo *BackRepoStruct, rectanchoredpath *models.RectAnchoredPath)

type RectAnchoredPathDBResponse

type RectAnchoredPathDBResponse struct {
	RectAnchoredPathDB
}

RectAnchoredPathDBResponse provides response swagger:response rectanchoredpathDBResponse

type RectAnchoredPathDBs

type RectAnchoredPathDBs []RectAnchoredPathDB

RectAnchoredPathDBs arrays rectanchoredpathDBs swagger:response rectanchoredpathDBsResponse

type RectAnchoredPathPointersEncoding

type RectAnchoredPathPointersEncoding struct {
}

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

type RectAnchoredPathWOP

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

	Name string `xlsx:"1"`

	Definition string `xlsx:"2"`

	X_Offset float64 `xlsx:"3"`

	Y_Offset float64 `xlsx:"4"`

	RectAnchorType models.RectAnchorType `xlsx:"5"`

	ScalePropotionnally bool `xlsx:"6"`

	AppliedScaling float64 `xlsx:"7"`

	Color string `xlsx:"8"`

	FillOpacity float64 `xlsx:"9"`

	Stroke string `xlsx:"10"`

	StrokeWidth float64 `xlsx:"11"`

	StrokeDashArray string `xlsx:"12"`

	StrokeDashArrayWhenSelected string `xlsx:"13"`

	Transform string `xlsx:"14"`
}

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

type RectAnchoredRectAPI

type RectAnchoredRectAPI struct {
	gorm.Model

	models.RectAnchoredRect_WOP

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

RectAnchoredRectAPI 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 rectanchoredrectAPI

type RectAnchoredRectDB

type RectAnchoredRectDB struct {
	gorm.Model

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

	// Declation for basic field rectanchoredrectDB.X
	X_Data sql.NullFloat64

	// Declation for basic field rectanchoredrectDB.Y
	Y_Data sql.NullFloat64

	// Declation for basic field rectanchoredrectDB.Width
	Width_Data sql.NullFloat64

	// Declation for basic field rectanchoredrectDB.Height
	Height_Data sql.NullFloat64

	// Declation for basic field rectanchoredrectDB.RX
	RX_Data sql.NullFloat64

	// Declation for basic field rectanchoredrectDB.X_Offset
	X_Offset_Data sql.NullFloat64

	// Declation for basic field rectanchoredrectDB.Y_Offset
	Y_Offset_Data sql.NullFloat64

	// Declation for basic field rectanchoredrectDB.RectAnchorType
	RectAnchorType_Data sql.NullString

	// Declation for basic field rectanchoredrectDB.WidthFollowRect
	// provide the sql storage for the boolan
	WidthFollowRect_Data sql.NullBool

	// Declation for basic field rectanchoredrectDB.HeightFollowRect
	// provide the sql storage for the boolan
	HeightFollowRect_Data sql.NullBool

	// Declation for basic field rectanchoredrectDB.Color
	Color_Data sql.NullString

	// Declation for basic field rectanchoredrectDB.FillOpacity
	FillOpacity_Data sql.NullFloat64

	// Declation for basic field rectanchoredrectDB.Stroke
	Stroke_Data sql.NullString

	// Declation for basic field rectanchoredrectDB.StrokeWidth
	StrokeWidth_Data sql.NullFloat64

	// Declation for basic field rectanchoredrectDB.StrokeDashArray
	StrokeDashArray_Data sql.NullString

	// Declation for basic field rectanchoredrectDB.StrokeDashArrayWhenSelected
	StrokeDashArrayWhenSelected_Data sql.NullString

	// Declation for basic field rectanchoredrectDB.Transform
	Transform_Data sql.NullString

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

RectAnchoredRectDB describes a rectanchoredrect 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 rectanchoredrectDB

func (*RectAnchoredRectDB) CopyBasicFieldsFromRectAnchoredRect

func (rectanchoredrectDB *RectAnchoredRectDB) CopyBasicFieldsFromRectAnchoredRect(rectanchoredrect *models.RectAnchoredRect)

CopyBasicFieldsFromRectAnchoredRect

func (*RectAnchoredRectDB) CopyBasicFieldsFromRectAnchoredRectWOP

func (rectanchoredrectDB *RectAnchoredRectDB) CopyBasicFieldsFromRectAnchoredRectWOP(rectanchoredrect *RectAnchoredRectWOP)

CopyBasicFieldsFromRectAnchoredRectWOP

func (*RectAnchoredRectDB) CopyBasicFieldsFromRectAnchoredRect_WOP

func (rectanchoredrectDB *RectAnchoredRectDB) CopyBasicFieldsFromRectAnchoredRect_WOP(rectanchoredrect *models.RectAnchoredRect_WOP)

CopyBasicFieldsFromRectAnchoredRect_WOP

func (*RectAnchoredRectDB) CopyBasicFieldsToRectAnchoredRect

func (rectanchoredrectDB *RectAnchoredRectDB) CopyBasicFieldsToRectAnchoredRect(rectanchoredrect *models.RectAnchoredRect)

CopyBasicFieldsToRectAnchoredRect

func (*RectAnchoredRectDB) CopyBasicFieldsToRectAnchoredRectWOP

func (rectanchoredrectDB *RectAnchoredRectDB) CopyBasicFieldsToRectAnchoredRectWOP(rectanchoredrect *RectAnchoredRectWOP)

CopyBasicFieldsToRectAnchoredRectWOP

func (*RectAnchoredRectDB) CopyBasicFieldsToRectAnchoredRect_WOP

func (rectanchoredrectDB *RectAnchoredRectDB) CopyBasicFieldsToRectAnchoredRect_WOP(rectanchoredrect *models.RectAnchoredRect_WOP)

CopyBasicFieldsToRectAnchoredRect_WOP

func (*RectAnchoredRectDB) DecodePointers

func (rectanchoredrectDB *RectAnchoredRectDB) DecodePointers(backRepo *BackRepoStruct, rectanchoredrect *models.RectAnchoredRect)

type RectAnchoredRectDBResponse

type RectAnchoredRectDBResponse struct {
	RectAnchoredRectDB
}

RectAnchoredRectDBResponse provides response swagger:response rectanchoredrectDBResponse

type RectAnchoredRectDBs

type RectAnchoredRectDBs []RectAnchoredRectDB

RectAnchoredRectDBs arrays rectanchoredrectDBs swagger:response rectanchoredrectDBsResponse

type RectAnchoredRectPointersEncoding

type RectAnchoredRectPointersEncoding struct {
}

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

type RectAnchoredRectWOP

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

	Name string `xlsx:"1"`

	X float64 `xlsx:"2"`

	Y float64 `xlsx:"3"`

	Width float64 `xlsx:"4"`

	Height float64 `xlsx:"5"`

	RX float64 `xlsx:"6"`

	X_Offset float64 `xlsx:"7"`

	Y_Offset float64 `xlsx:"8"`

	RectAnchorType models.RectAnchorType `xlsx:"9"`

	WidthFollowRect bool `xlsx:"10"`

	HeightFollowRect bool `xlsx:"11"`

	Color string `xlsx:"12"`

	FillOpacity float64 `xlsx:"13"`

	Stroke string `xlsx:"14"`

	StrokeWidth float64 `xlsx:"15"`

	StrokeDashArray string `xlsx:"16"`

	StrokeDashArrayWhenSelected string `xlsx:"17"`

	Transform string `xlsx:"18"`
}

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

type RectAnchoredTextAPI

type RectAnchoredTextAPI struct {
	gorm.Model

	models.RectAnchoredText_WOP

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

RectAnchoredTextAPI 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 rectanchoredtextAPI

type RectAnchoredTextDB

type RectAnchoredTextDB struct {
	gorm.Model

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

	// Declation for basic field rectanchoredtextDB.Content
	Content_Data sql.NullString

	// Declation for basic field rectanchoredtextDB.FontWeight
	FontWeight_Data sql.NullString

	// Declation for basic field rectanchoredtextDB.FontSize
	FontSize_Data sql.NullInt64

	// Declation for basic field rectanchoredtextDB.X_Offset
	X_Offset_Data sql.NullFloat64

	// Declation for basic field rectanchoredtextDB.Y_Offset
	Y_Offset_Data sql.NullFloat64

	// Declation for basic field rectanchoredtextDB.RectAnchorType
	RectAnchorType_Data sql.NullString

	// Declation for basic field rectanchoredtextDB.TextAnchorType
	TextAnchorType_Data sql.NullString

	// Declation for basic field rectanchoredtextDB.Color
	Color_Data sql.NullString

	// Declation for basic field rectanchoredtextDB.FillOpacity
	FillOpacity_Data sql.NullFloat64

	// Declation for basic field rectanchoredtextDB.Stroke
	Stroke_Data sql.NullString

	// Declation for basic field rectanchoredtextDB.StrokeWidth
	StrokeWidth_Data sql.NullFloat64

	// Declation for basic field rectanchoredtextDB.StrokeDashArray
	StrokeDashArray_Data sql.NullString

	// Declation for basic field rectanchoredtextDB.StrokeDashArrayWhenSelected
	StrokeDashArrayWhenSelected_Data sql.NullString

	// Declation for basic field rectanchoredtextDB.Transform
	Transform_Data sql.NullString

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

RectAnchoredTextDB describes a rectanchoredtext 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 rectanchoredtextDB

func (*RectAnchoredTextDB) CopyBasicFieldsFromRectAnchoredText

func (rectanchoredtextDB *RectAnchoredTextDB) CopyBasicFieldsFromRectAnchoredText(rectanchoredtext *models.RectAnchoredText)

CopyBasicFieldsFromRectAnchoredText

func (*RectAnchoredTextDB) CopyBasicFieldsFromRectAnchoredTextWOP

func (rectanchoredtextDB *RectAnchoredTextDB) CopyBasicFieldsFromRectAnchoredTextWOP(rectanchoredtext *RectAnchoredTextWOP)

CopyBasicFieldsFromRectAnchoredTextWOP

func (*RectAnchoredTextDB) CopyBasicFieldsFromRectAnchoredText_WOP

func (rectanchoredtextDB *RectAnchoredTextDB) CopyBasicFieldsFromRectAnchoredText_WOP(rectanchoredtext *models.RectAnchoredText_WOP)

CopyBasicFieldsFromRectAnchoredText_WOP

func (*RectAnchoredTextDB) CopyBasicFieldsToRectAnchoredText

func (rectanchoredtextDB *RectAnchoredTextDB) CopyBasicFieldsToRectAnchoredText(rectanchoredtext *models.RectAnchoredText)

CopyBasicFieldsToRectAnchoredText

func (*RectAnchoredTextDB) CopyBasicFieldsToRectAnchoredTextWOP

func (rectanchoredtextDB *RectAnchoredTextDB) CopyBasicFieldsToRectAnchoredTextWOP(rectanchoredtext *RectAnchoredTextWOP)

CopyBasicFieldsToRectAnchoredTextWOP

func (*RectAnchoredTextDB) CopyBasicFieldsToRectAnchoredText_WOP

func (rectanchoredtextDB *RectAnchoredTextDB) CopyBasicFieldsToRectAnchoredText_WOP(rectanchoredtext *models.RectAnchoredText_WOP)

CopyBasicFieldsToRectAnchoredText_WOP

func (*RectAnchoredTextDB) DecodePointers

func (rectanchoredtextDB *RectAnchoredTextDB) DecodePointers(backRepo *BackRepoStruct, rectanchoredtext *models.RectAnchoredText)

type RectAnchoredTextDBResponse

type RectAnchoredTextDBResponse struct {
	RectAnchoredTextDB
}

RectAnchoredTextDBResponse provides response swagger:response rectanchoredtextDBResponse

type RectAnchoredTextDBs

type RectAnchoredTextDBs []RectAnchoredTextDB

RectAnchoredTextDBs arrays rectanchoredtextDBs swagger:response rectanchoredtextDBsResponse

type RectAnchoredTextPointersEncoding

type RectAnchoredTextPointersEncoding struct {

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

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

type RectAnchoredTextWOP

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

	Name string `xlsx:"1"`

	Content string `xlsx:"2"`

	FontWeight string `xlsx:"3"`

	FontSize int `xlsx:"4"`

	X_Offset float64 `xlsx:"5"`

	Y_Offset float64 `xlsx:"6"`

	RectAnchorType models.RectAnchorType `xlsx:"7"`

	TextAnchorType models.TextAnchorType `xlsx:"8"`

	Color string `xlsx:"9"`

	FillOpacity float64 `xlsx:"10"`

	Stroke string `xlsx:"11"`

	StrokeWidth float64 `xlsx:"12"`

	StrokeDashArray string `xlsx:"13"`

	StrokeDashArrayWhenSelected string `xlsx:"14"`

	Transform string `xlsx:"15"`
}

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

type RectDB

type RectDB struct {
	gorm.Model

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

	// Declation for basic field rectDB.X
	X_Data sql.NullFloat64

	// Declation for basic field rectDB.Y
	Y_Data sql.NullFloat64

	// Declation for basic field rectDB.Width
	Width_Data sql.NullFloat64

	// Declation for basic field rectDB.Height
	Height_Data sql.NullFloat64

	// Declation for basic field rectDB.RX
	RX_Data sql.NullFloat64

	// Declation for basic field rectDB.Color
	Color_Data sql.NullString

	// Declation for basic field rectDB.FillOpacity
	FillOpacity_Data sql.NullFloat64

	// Declation for basic field rectDB.Stroke
	Stroke_Data sql.NullString

	// Declation for basic field rectDB.StrokeWidth
	StrokeWidth_Data sql.NullFloat64

	// Declation for basic field rectDB.StrokeDashArray
	StrokeDashArray_Data sql.NullString

	// Declation for basic field rectDB.StrokeDashArrayWhenSelected
	StrokeDashArrayWhenSelected_Data sql.NullString

	// Declation for basic field rectDB.Transform
	Transform_Data sql.NullString

	// Declation for basic field rectDB.IsSelectable
	// provide the sql storage for the boolan
	IsSelectable_Data sql.NullBool

	// Declation for basic field rectDB.IsSelected
	// provide the sql storage for the boolan
	IsSelected_Data sql.NullBool

	// Declation for basic field rectDB.CanHaveLeftHandle
	// provide the sql storage for the boolan
	CanHaveLeftHandle_Data sql.NullBool

	// Declation for basic field rectDB.HasLeftHandle
	// provide the sql storage for the boolan
	HasLeftHandle_Data sql.NullBool

	// Declation for basic field rectDB.CanHaveRightHandle
	// provide the sql storage for the boolan
	CanHaveRightHandle_Data sql.NullBool

	// Declation for basic field rectDB.HasRightHandle
	// provide the sql storage for the boolan
	HasRightHandle_Data sql.NullBool

	// Declation for basic field rectDB.CanHaveTopHandle
	// provide the sql storage for the boolan
	CanHaveTopHandle_Data sql.NullBool

	// Declation for basic field rectDB.HasTopHandle
	// provide the sql storage for the boolan
	HasTopHandle_Data sql.NullBool

	// Declation for basic field rectDB.IsScalingProportionally
	// provide the sql storage for the boolan
	IsScalingProportionally_Data sql.NullBool

	// Declation for basic field rectDB.CanHaveBottomHandle
	// provide the sql storage for the boolan
	CanHaveBottomHandle_Data sql.NullBool

	// Declation for basic field rectDB.HasBottomHandle
	// provide the sql storage for the boolan
	HasBottomHandle_Data sql.NullBool

	// Declation for basic field rectDB.CanMoveHorizontaly
	// provide the sql storage for the boolan
	CanMoveHorizontaly_Data sql.NullBool

	// Declation for basic field rectDB.CanMoveVerticaly
	// provide the sql storage for the boolan
	CanMoveVerticaly_Data sql.NullBool

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

RectDB describes a rect 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 rectDB

func (*RectDB) CopyBasicFieldsFromRect

func (rectDB *RectDB) CopyBasicFieldsFromRect(rect *models.Rect)

CopyBasicFieldsFromRect

func (*RectDB) CopyBasicFieldsFromRectWOP

func (rectDB *RectDB) CopyBasicFieldsFromRectWOP(rect *RectWOP)

CopyBasicFieldsFromRectWOP

func (*RectDB) CopyBasicFieldsFromRect_WOP

func (rectDB *RectDB) CopyBasicFieldsFromRect_WOP(rect *models.Rect_WOP)

CopyBasicFieldsFromRect_WOP

func (*RectDB) CopyBasicFieldsToRect

func (rectDB *RectDB) CopyBasicFieldsToRect(rect *models.Rect)

CopyBasicFieldsToRect

func (*RectDB) CopyBasicFieldsToRectWOP

func (rectDB *RectDB) CopyBasicFieldsToRectWOP(rect *RectWOP)

CopyBasicFieldsToRectWOP

func (*RectDB) CopyBasicFieldsToRect_WOP

func (rectDB *RectDB) CopyBasicFieldsToRect_WOP(rect *models.Rect_WOP)

CopyBasicFieldsToRect_WOP

func (*RectDB) DecodePointers

func (rectDB *RectDB) DecodePointers(backRepo *BackRepoStruct, rect *models.Rect)

type RectDBResponse

type RectDBResponse struct {
	RectDB
}

RectDBResponse provides response swagger:response rectDBResponse

type RectDBs

type RectDBs []RectDB

RectDBs arrays rectDBs swagger:response rectDBsResponse

type RectLinkLinkAPI

type RectLinkLinkAPI struct {
	gorm.Model

	models.RectLinkLink_WOP

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

RectLinkLinkAPI 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 rectlinklinkAPI

type RectLinkLinkDB

type RectLinkLinkDB struct {
	gorm.Model

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

	// Declation for basic field rectlinklinkDB.TargetAnchorPosition
	TargetAnchorPosition_Data sql.NullFloat64

	// Declation for basic field rectlinklinkDB.Color
	Color_Data sql.NullString

	// Declation for basic field rectlinklinkDB.FillOpacity
	FillOpacity_Data sql.NullFloat64

	// Declation for basic field rectlinklinkDB.Stroke
	Stroke_Data sql.NullString

	// Declation for basic field rectlinklinkDB.StrokeWidth
	StrokeWidth_Data sql.NullFloat64

	// Declation for basic field rectlinklinkDB.StrokeDashArray
	StrokeDashArray_Data sql.NullString

	// Declation for basic field rectlinklinkDB.StrokeDashArrayWhenSelected
	StrokeDashArrayWhenSelected_Data sql.NullString

	// Declation for basic field rectlinklinkDB.Transform
	Transform_Data sql.NullString

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

RectLinkLinkDB describes a rectlinklink 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 rectlinklinkDB

func (rectlinklinkDB *RectLinkLinkDB) CopyBasicFieldsFromRectLinkLink(rectlinklink *models.RectLinkLink)

CopyBasicFieldsFromRectLinkLink

func (*RectLinkLinkDB) CopyBasicFieldsFromRectLinkLinkWOP

func (rectlinklinkDB *RectLinkLinkDB) CopyBasicFieldsFromRectLinkLinkWOP(rectlinklink *RectLinkLinkWOP)

CopyBasicFieldsFromRectLinkLinkWOP

func (rectlinklinkDB *RectLinkLinkDB) CopyBasicFieldsFromRectLinkLink_WOP(rectlinklink *models.RectLinkLink_WOP)

CopyBasicFieldsFromRectLinkLink_WOP

func (rectlinklinkDB *RectLinkLinkDB) CopyBasicFieldsToRectLinkLink(rectlinklink *models.RectLinkLink)

CopyBasicFieldsToRectLinkLink

func (*RectLinkLinkDB) CopyBasicFieldsToRectLinkLinkWOP

func (rectlinklinkDB *RectLinkLinkDB) CopyBasicFieldsToRectLinkLinkWOP(rectlinklink *RectLinkLinkWOP)

CopyBasicFieldsToRectLinkLinkWOP

func (rectlinklinkDB *RectLinkLinkDB) CopyBasicFieldsToRectLinkLink_WOP(rectlinklink *models.RectLinkLink_WOP)

CopyBasicFieldsToRectLinkLink_WOP

func (*RectLinkLinkDB) DecodePointers

func (rectlinklinkDB *RectLinkLinkDB) DecodePointers(backRepo *BackRepoStruct, rectlinklink *models.RectLinkLink)

type RectLinkLinkDBResponse

type RectLinkLinkDBResponse struct {
	RectLinkLinkDB
}

RectLinkLinkDBResponse provides response swagger:response rectlinklinkDBResponse

type RectLinkLinkDBs

type RectLinkLinkDBs []RectLinkLinkDB

RectLinkLinkDBs arrays rectlinklinkDBs swagger:response rectlinklinkDBsResponse

type RectLinkLinkPointersEncoding

type RectLinkLinkPointersEncoding struct {

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

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

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

type RectLinkLinkWOP

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

	Name string `xlsx:"1"`

	TargetAnchorPosition float64 `xlsx:"2"`

	Color string `xlsx:"3"`

	FillOpacity float64 `xlsx:"4"`

	Stroke string `xlsx:"5"`

	StrokeWidth float64 `xlsx:"6"`

	StrokeDashArray string `xlsx:"7"`

	StrokeDashArrayWhenSelected string `xlsx:"8"`

	Transform string `xlsx:"9"`
}

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

type RectPointersEncoding

type RectPointersEncoding struct {

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

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

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

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

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

type RectWOP

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

	Name string `xlsx:"1"`

	X float64 `xlsx:"2"`

	Y float64 `xlsx:"3"`

	Width float64 `xlsx:"4"`

	Height float64 `xlsx:"5"`

	RX float64 `xlsx:"6"`

	Color string `xlsx:"7"`

	FillOpacity float64 `xlsx:"8"`

	Stroke string `xlsx:"9"`

	StrokeWidth float64 `xlsx:"10"`

	StrokeDashArray string `xlsx:"11"`

	StrokeDashArrayWhenSelected string `xlsx:"12"`

	Transform string `xlsx:"13"`

	IsSelectable bool `xlsx:"14"`

	IsSelected bool `xlsx:"15"`

	CanHaveLeftHandle bool `xlsx:"16"`

	HasLeftHandle bool `xlsx:"17"`

	CanHaveRightHandle bool `xlsx:"18"`

	HasRightHandle bool `xlsx:"19"`

	CanHaveTopHandle bool `xlsx:"20"`

	HasTopHandle bool `xlsx:"21"`

	IsScalingProportionally bool `xlsx:"22"`

	CanHaveBottomHandle bool `xlsx:"23"`

	HasBottomHandle bool `xlsx:"24"`

	CanMoveHorizontaly bool `xlsx:"25"`

	CanMoveVerticaly bool `xlsx:"26"`
}

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

type SVGAPI

type SVGAPI struct {
	gorm.Model

	models.SVG_WOP

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

SVGAPI is the input in POST API

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

swagger:model svgAPI

type SVGDB

type SVGDB struct {
	gorm.Model

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

	// Declation for basic field svgDB.DrawingState
	DrawingState_Data sql.NullString

	// Declation for basic field svgDB.IsEditable
	// provide the sql storage for the boolan
	IsEditable_Data sql.NullBool

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

SVGDB describes a svg in the database

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

swagger:model svgDB

func (*SVGDB) CopyBasicFieldsFromSVG

func (svgDB *SVGDB) CopyBasicFieldsFromSVG(svg *models.SVG)

CopyBasicFieldsFromSVG

func (*SVGDB) CopyBasicFieldsFromSVGWOP

func (svgDB *SVGDB) CopyBasicFieldsFromSVGWOP(svg *SVGWOP)

CopyBasicFieldsFromSVGWOP

func (*SVGDB) CopyBasicFieldsFromSVG_WOP

func (svgDB *SVGDB) CopyBasicFieldsFromSVG_WOP(svg *models.SVG_WOP)

CopyBasicFieldsFromSVG_WOP

func (*SVGDB) CopyBasicFieldsToSVG

func (svgDB *SVGDB) CopyBasicFieldsToSVG(svg *models.SVG)

CopyBasicFieldsToSVG

func (*SVGDB) CopyBasicFieldsToSVGWOP

func (svgDB *SVGDB) CopyBasicFieldsToSVGWOP(svg *SVGWOP)

CopyBasicFieldsToSVGWOP

func (*SVGDB) CopyBasicFieldsToSVG_WOP

func (svgDB *SVGDB) CopyBasicFieldsToSVG_WOP(svg *models.SVG_WOP)

CopyBasicFieldsToSVG_WOP

func (*SVGDB) DecodePointers

func (svgDB *SVGDB) DecodePointers(backRepo *BackRepoStruct, svg *models.SVG)

type SVGDBResponse

type SVGDBResponse struct {
	SVGDB
}

SVGDBResponse provides response swagger:response svgDBResponse

type SVGDBs

type SVGDBs []SVGDB

SVGDBs arrays svgDBs swagger:response svgDBsResponse

type SVGPointersEncoding

type SVGPointersEncoding struct {

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

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

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

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

type SVGWOP

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

	Name string `xlsx:"1"`

	DrawingState models.DrawingState `xlsx:"2"`

	IsEditable bool `xlsx:"3"`
}

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

type TextAPI

type TextAPI struct {
	gorm.Model

	models.Text_WOP

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

TextAPI 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 textAPI

type TextDB

type TextDB struct {
	gorm.Model

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

	// Declation for basic field textDB.X
	X_Data sql.NullFloat64

	// Declation for basic field textDB.Y
	Y_Data sql.NullFloat64

	// Declation for basic field textDB.Content
	Content_Data sql.NullString

	// Declation for basic field textDB.Color
	Color_Data sql.NullString

	// Declation for basic field textDB.FillOpacity
	FillOpacity_Data sql.NullFloat64

	// Declation for basic field textDB.Stroke
	Stroke_Data sql.NullString

	// Declation for basic field textDB.StrokeWidth
	StrokeWidth_Data sql.NullFloat64

	// Declation for basic field textDB.StrokeDashArray
	StrokeDashArray_Data sql.NullString

	// Declation for basic field textDB.StrokeDashArrayWhenSelected
	StrokeDashArrayWhenSelected_Data sql.NullString

	// Declation for basic field textDB.Transform
	Transform_Data sql.NullString

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

TextDB describes a text 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 textDB

func (*TextDB) CopyBasicFieldsFromText

func (textDB *TextDB) CopyBasicFieldsFromText(text *models.Text)

CopyBasicFieldsFromText

func (*TextDB) CopyBasicFieldsFromTextWOP

func (textDB *TextDB) CopyBasicFieldsFromTextWOP(text *TextWOP)

CopyBasicFieldsFromTextWOP

func (*TextDB) CopyBasicFieldsFromText_WOP

func (textDB *TextDB) CopyBasicFieldsFromText_WOP(text *models.Text_WOP)

CopyBasicFieldsFromText_WOP

func (*TextDB) CopyBasicFieldsToText

func (textDB *TextDB) CopyBasicFieldsToText(text *models.Text)

CopyBasicFieldsToText

func (*TextDB) CopyBasicFieldsToTextWOP

func (textDB *TextDB) CopyBasicFieldsToTextWOP(text *TextWOP)

CopyBasicFieldsToTextWOP

func (*TextDB) CopyBasicFieldsToText_WOP

func (textDB *TextDB) CopyBasicFieldsToText_WOP(text *models.Text_WOP)

CopyBasicFieldsToText_WOP

func (*TextDB) DecodePointers

func (textDB *TextDB) DecodePointers(backRepo *BackRepoStruct, text *models.Text)

type TextDBResponse

type TextDBResponse struct {
	TextDB
}

TextDBResponse provides response swagger:response textDBResponse

type TextDBs

type TextDBs []TextDB

TextDBs arrays textDBs swagger:response textDBsResponse

type TextPointersEncoding

type TextPointersEncoding struct {

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

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

type TextWOP

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

	Name string `xlsx:"1"`

	X float64 `xlsx:"2"`

	Y float64 `xlsx:"3"`

	Content string `xlsx:"4"`

	Color string `xlsx:"5"`

	FillOpacity float64 `xlsx:"6"`

	Stroke string `xlsx:"7"`

	StrokeWidth float64 `xlsx:"8"`

	StrokeDashArray string `xlsx:"9"`

	StrokeDashArrayWhenSelected string `xlsx:"10"`

	Transform string `xlsx:"11"`
}

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

Jump to

Keyboard shortcuts

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