Documentation
¶
Overview ¶
Default generated models package docs (at least one file is necessary in a models package)
generated boilerplate code edit the file for adding other stages
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
Index ¶
- Constants
- func AfterCreateFromFront[Type Gongstruct](stage *Stage, instance *Type)
- func AfterDeleteFromFront[Type Gongstruct](stage *Stage, staged, front *Type)
- func AfterReadFromFront[Type Gongstruct](stage *Stage, instance *Type)
- func AfterUpdateFromFront[Type Gongstruct](stage *Stage, old, new *Type)
- func ApplyDiff(b, c string) (string, error)
- func CompareGongstructByName[T PointerToGongstruct](a, b T) int
- func ComputeDiff(a, b string) string
- func CopyBranch[Type Gongstruct](from *Type) (to *Type)
- func GetAssociationName[Type Gongstruct]() *Type
- func GetFields[Type Gongstruct]() (res []string)
- func GetFieldsFromPointer[Type PointerToGongstruct]() (res []string)
- func GetGongstrucsSorted[T PointerToGongstruct](stage *Stage) (sortedSlice []T)
- func GetGongstructInstancesMap[Type Gongstruct](stage *Stage) *map[string]*Type
- func GetGongstructInstancesSet[Type Gongstruct](stage *Stage) *map[*Type]any
- func GetGongstructInstancesSetFromPointerType[Type PointerToGongstruct](stage *Stage) *map[Type]any
- func GetGongstructName[Type Gongstruct]() (res string)
- func GetNamedStructInstances[T PointerToGongstruct](set map[T]any, order map[T]uint) (res []string)
- func GetOrder[Type Gongstruct](stage *Stage, instance *Type) uint
- func GetOrderPointerGongstruct[Type PointerToGongstruct](stage *Stage, instance Type) uint
- func GetPointerReverseMap[Start, End Gongstruct](fieldname string, stage *Stage) map[*End][]*Start
- func GetPointerToGongstructName[Type PointerToGongstruct]() (res string)
- func GetReverseFieldOwner[T Gongstruct](stage *Stage, instance *T, reverseField *ReverseField) (res any)
- func GetReverseFieldOwnerName(stage *Stage, instance any, reverseField *ReverseField) (res string)
- func GetSliceOfPointersReverseMap[Start, End Gongstruct](fieldname string, stage *Stage) map[*End][]*Start
- func GetStructInstancesByOrder[T PointerToGongstruct](set map[T]any, order map[T]uint) (res []T)
- func GongGetMap[Type GongstructMapString](stage *Stage) *Type
- func GongGetSet[Type GongstructSet](stage *Stage) *Type
- func IntToLetters(number int32) (letters string)
- func IsStaged[Type Gongstruct](stage *Stage, instance *Type) (ok bool)
- func ParseAstEmbeddedFile(stage *Stage, directory embed.FS, pathToFile string) error
- func ParseAstFile(stage *Stage, pathToFile string) error
- func ParseAstFileFromAst(stage *Stage, inFile *ast.File, fset *token.FileSet) error
- func ReplaceOldDeclarationsInFile(pathToFile string) error
- func Serialize[Type Gongstruct](stage *Stage, tab Tabulator)
- func SerializeExcelize[Type Gongstruct](stage *Stage, f *excelize.File)
- func SerializeExcelizePointerToGongstruct[Type PointerToGongstruct](stage *Stage, f *excelize.File)
- func SerializeStage(stage *Stage, filename string)
- func SetCallbackAfterCreateFromFront[Type Gongstruct](stage *Stage, callback OnAfterCreateInterface[Type])
- func SetCallbackAfterDeleteFromFront[Type Gongstruct](stage *Stage, callback OnAfterDeleteInterface[Type])
- func SetCallbackAfterReadFromFront[Type Gongstruct](stage *Stage, callback OnAfterReadInterface[Type])
- func SetCallbackAfterUpdateFromFront[Type Gongstruct](stage *Stage, callback OnAfterUpdateInterface[Type])
- func SetOrchestratorOnAfterUpdate[Type Gongstruct](stage *Stage)
- func SortGongstructSetByName[T PointerToGongstruct](set map[T]any) (sortedSlice []T)
- func StageBranch[Type Gongstruct](stage *Stage, instance *Type)
- func UnmarshallGongstructStaging(stage *Stage, cmap *ast.CommentMap, assignStmt *ast.AssignStmt, ...) (instance any, identifier string, gongstructName string, fieldName string)
- func UnstageBranch[Type Gongstruct](stage *Stage, instance *Type)
- func XtoDate(leftX, x, rightX float64, ganttStartDate, ganttEndDate time.Time) (date time.Time)
- type AllModelsStructCreateInterface
- type AllModelsStructDeleteInterface
- type Arrow
- func (arrow *Arrow) Checkout(stage *Stage) *Arrow
- func (arrow *Arrow) Commit(stage *Stage) *Arrow
- func (arrow *Arrow) CommitVoid(stage *Stage)
- func (from *Arrow) CopyBasicFields(to *Arrow)
- func (arrow *Arrow) GetName() (res string)
- func (arrow *Arrow) Stage(stage *Stage) *Arrow
- func (arrow *Arrow) Unstage(stage *Stage) *Arrow
- func (arrow *Arrow) UnstageVoid(stage *Stage)
- type Arrow_WOP
- type BackRepoInterface
- type Bar
- func (bar *Bar) Checkout(stage *Stage) *Bar
- func (bar *Bar) Commit(stage *Stage) *Bar
- func (bar *Bar) CommitVoid(stage *Stage)
- func (from *Bar) CopyBasicFields(to *Bar)
- func (bar *Bar) GetName() (res string)
- func (bar *Bar) Stage(stage *Stage) *Bar
- func (bar *Bar) Unstage(stage *Stage) *Bar
- func (bar *Bar) UnstageVoid(stage *Stage)
- type BarImpl
- type Bar_WOP
- type DiffHunk
- type DiffOp
- type ExcelizeTabulator
- type GONG__ExpressionType
- type GONG__Identifier
- type Gantt
- func (gantt *Gantt) Checkout(stage *Stage) *Gantt
- func (gantt *Gantt) Commit(stage *Stage) *Gantt
- func (gantt *Gantt) CommitVoid(stage *Stage)
- func (gantt *Gantt) ComputeStartAndEndDate()
- func (from *Gantt) CopyBasicFields(to *Gantt)
- func (gantt *Gantt) GetName() (res string)
- func (gantt *Gantt) Stage(stage *Stage) *Gantt
- func (gantt *Gantt) Unstage(stage *Stage) *Gantt
- func (gantt *Gantt) UnstageVoid(stage *Stage)
- type GanttSVGMapper
- type GanttStacksNames
- func (ganttstacksnames GanttStacksNames) CodeValues() (res []string)
- func (ganttstacksnames GanttStacksNames) Codes() (res []string)
- func (ganttstacksnames *GanttStacksNames) FromCodeString(input string) (err error)
- func (ganttstacksnames *GanttStacksNames) FromString(input string) (err error)
- func (ganttstacksnames *GanttStacksNames) ToCodeString() (res string)
- func (ganttstacksnames GanttStacksNames) ToString() (res string)
- type Gantt_WOP
- type GongFieldValue
- type GongFieldValueType
- type GongStructInterface
- type Gongstruct
- type GongstructEnumIntField
- type GongstructEnumStringField
- type GongstructMapString
- type GongstructSet
- type GongtructBasicField
- type Group
- func (group *Group) Checkout(stage *Stage) *Group
- func (group *Group) Commit(stage *Stage) *Group
- func (group *Group) CommitVoid(stage *Stage)
- func (from *Group) CopyBasicFields(to *Group)
- func (group *Group) GetName() (res string)
- func (group *Group) Stage(stage *Stage) *Group
- func (group *Group) Unstage(stage *Stage) *Group
- func (group *Group) UnstageVoid(stage *Stage)
- type Group_WOP
- type Lane
- func (lane *Lane) Checkout(stage *Stage) *Lane
- func (lane *Lane) Commit(stage *Stage) *Lane
- func (lane *Lane) CommitVoid(stage *Stage)
- func (from *Lane) CopyBasicFields(to *Lane)
- func (lane *Lane) GetName() (res string)
- func (lane *Lane) Stage(stage *Stage) *Lane
- func (lane *Lane) Unstage(stage *Stage) *Lane
- func (lane *Lane) UnstageVoid(stage *Stage)
- type LaneUse
- func (laneuse *LaneUse) Checkout(stage *Stage) *LaneUse
- func (laneuse *LaneUse) Commit(stage *Stage) *LaneUse
- func (laneuse *LaneUse) CommitVoid(stage *Stage)
- func (from *LaneUse) CopyBasicFields(to *LaneUse)
- func (laneuse *LaneUse) GetName() (res string)
- func (laneuse *LaneUse) Stage(stage *Stage) *LaneUse
- func (laneuse *LaneUse) Unstage(stage *Stage) *LaneUse
- func (laneuse *LaneUse) UnstageVoid(stage *Stage)
- type LaneUse_WOP
- type Lane_WOP
- type Milestone
- func (milestone *Milestone) Checkout(stage *Stage) *Milestone
- func (milestone *Milestone) Commit(stage *Stage) *Milestone
- func (milestone *Milestone) CommitVoid(stage *Stage)
- func (from *Milestone) CopyBasicFields(to *Milestone)
- func (milestone *Milestone) GetName() (res string)
- func (milestone *Milestone) Stage(stage *Stage) *Milestone
- func (milestone *Milestone) Unstage(stage *Stage) *Milestone
- func (milestone *Milestone) UnstageVoid(stage *Stage)
- type Milestone_WOP
- type NamedStruct
- type OnAfterCreateInterface
- type OnAfterDeleteInterface
- type OnAfterReadInterface
- type OnAfterUpdateInterface
- type OnInitCommitInterface
- type PointerToGongstruct
- type PointerToGongstructEnumIntField
- type PointerToGongstructEnumStringField
- type ReverseField
- type Stage
- func (stage *Stage) Backup(dirPath string)
- func (stage *Stage) BackupXL(dirPath string)
- func (stage *Stage) Checkout()
- func (stage *Stage) Commit()
- func (stage *Stage) CommitWithSuspendedCallbacks()
- func (stage *Stage) ComputeReverseMaps()
- func (stage *Stage) GetDigramsEmbededDir() embed.FS
- func (stage *Stage) GetMap_GongStructName_InstancesNb() map[string]int
- func (stage *Stage) GetModelsEmbededDir() embed.FS
- func (stage *Stage) GetName() string
- func (stage *Stage) GetNamedStructNamesByOrder(namedStructName string) (res []string)
- func (stage *Stage) GetNamedStructsNames() (res []string)
- func (stage *Stage) GetProbeFormStageName() string
- func (stage *Stage) GetProbeSplitStageName() string
- func (stage *Stage) GetProbeTableStageName() string
- func (stage *Stage) GetProbeTreeSidebarStageName() string
- func (stage *Stage) GetType() string
- func (stage *Stage) IsStagedArrow(arrow *Arrow) (ok bool)
- func (stage *Stage) IsStagedBar(bar *Bar) (ok bool)
- func (stage *Stage) IsStagedGantt(gantt *Gantt) (ok bool)
- func (stage *Stage) IsStagedGroup(group *Group) (ok bool)
- func (stage *Stage) IsStagedLane(lane *Lane) (ok bool)
- func (stage *Stage) IsStagedLaneUse(laneuse *LaneUse) (ok bool)
- func (stage *Stage) IsStagedMilestone(milestone *Milestone) (ok bool)
- func (stage *Stage) Marshall(file *os.File, modelsPackageName, packageName string)
- func (stage *Stage) Nil()
- func (stage *Stage) Reset()
- func (stage *Stage) Restore(dirPath string)
- func (stage *Stage) RestoreXL(dirPath string)
- func (stage *Stage) SetGeneratesDiff(generatesDiff bool)
- func (stage *Stage) StageBranchArrow(arrow *Arrow)
- func (stage *Stage) StageBranchBar(bar *Bar)
- func (stage *Stage) StageBranchGantt(gantt *Gantt)
- func (stage *Stage) StageBranchGroup(group *Group)
- func (stage *Stage) StageBranchLane(lane *Lane)
- func (stage *Stage) StageBranchLaneUse(laneuse *LaneUse)
- func (stage *Stage) StageBranchMilestone(milestone *Milestone)
- func (stage *Stage) Unstage()
- func (stage *Stage) UnstageBranchArrow(arrow *Arrow)
- func (stage *Stage) UnstageBranchBar(bar *Bar)
- func (stage *Stage) UnstageBranchGantt(gantt *Gantt)
- func (stage *Stage) UnstageBranchGroup(group *Group)
- func (stage *Stage) UnstageBranchLane(lane *Lane)
- func (stage *Stage) UnstageBranchLaneUse(laneuse *LaneUse)
- func (stage *Stage) UnstageBranchMilestone(milestone *Milestone)
- type Stager
- type Tabulator
Constants ¶
const IdentifiersDecls = `
{{Identifier}} := (&models.{{GeneratedStructName}}{}).Stage(stage)`
const MetaFieldStructInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = ` + `{{GeneratedFieldNameValue}}`
const NoteOnTheModel = ""
GONGNOTE(NoteOnTheModel): A Gantt Diagram is an instance of models.Gantt that has a slice of lanes (models.Lane).
Each lane vertical position is defined by it order field models.Lane.Order. Each has a slice of tasks
A task is displayed as a bar (models.Bar) with a start and end date models.Bar.StartDate and models.Bar.EndDate).
const NumberInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
const PointerFieldInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
const ProbeFormSuffix = ":form of the probe"
const ProbeSplitSuffix = ":probe of the probe"
const ProbeTableSuffix = ":table of the probe"
const ProbeTreeSidebarSuffix = ":sidebar of the probe"
const SliceOfPointersFieldInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = append({{Identifier}}.{{GeneratedFieldName}}, {{GeneratedFieldNameValue}})`
const StringEnumInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
const StringInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = ` + "`" + `{{GeneratedFieldNameValue}}` + "`"
const TimeInitStatement = `` /* 129-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func AfterCreateFromFront ¶
func AfterCreateFromFront[Type Gongstruct](stage *Stage, instance *Type)
AfterCreateFromFront is called after a create from front
func AfterDeleteFromFront ¶
func AfterDeleteFromFront[Type Gongstruct](stage *Stage, staged, front *Type)
AfterDeleteFromFront is called after a delete from front
func AfterReadFromFront ¶
func AfterReadFromFront[Type Gongstruct](stage *Stage, instance *Type)
AfterReadFromFront is called after a Read from front
func AfterUpdateFromFront ¶
func AfterUpdateFromFront[Type Gongstruct](stage *Stage, old, new *Type)
AfterUpdateFromFront is called after a update from front
func CompareGongstructByName ¶
func CompareGongstructByName[T PointerToGongstruct](a, b T) int
func ComputeDiff ¶
ComputeDiff generates a git-style unified diff from string a to string b
func CopyBranch ¶
func CopyBranch[Type Gongstruct](from *Type) (to *Type)
CopyBranch stages instance and apply CopyBranch on all gongstruct instances that are referenced by pointers or slices of pointers of the instance
the algorithm stops along the course of graph if a vertex is already staged
func GetAssociationName ¶
func GetAssociationName[Type Gongstruct]() *Type
GetAssociationName is a generic function that returns an instance of Type where each association is filled with an instance whose name is the name of the association
This function can be handy for generating navigation function that are refactorable
func GetFields ¶
func GetFields[Type Gongstruct]() (res []string)
GetFields return the array of the fields
func GetFieldsFromPointer ¶
func GetFieldsFromPointer[Type PointerToGongstruct]() (res []string)
GetFieldsFromPointer return the array of the fields
func GetGongstrucsSorted ¶
func GetGongstrucsSorted[T PointerToGongstruct](stage *Stage) (sortedSlice []T)
func GetGongstructInstancesMap ¶
func GetGongstructInstancesMap[Type Gongstruct](stage *Stage) *map[string]*Type
GetGongstructInstancesMap returns the map of staged GongstructType instances it is usefull because it allows refactoring of gong struct identifier
func GetGongstructInstancesSet ¶
func GetGongstructInstancesSet[Type Gongstruct](stage *Stage) *map[*Type]any
GetGongstructInstancesSet returns the set staged GongstructType instances it is usefull because it allows refactoring of gongstruct identifier
func GetGongstructInstancesSetFromPointerType ¶
func GetGongstructInstancesSetFromPointerType[Type PointerToGongstruct](stage *Stage) *map[Type]any
GetGongstructInstancesSetFromPointerType returns the set staged GongstructType instances it is usefull because it allows refactoring of gongstruct identifier
func GetGongstructName ¶
func GetGongstructName[Type Gongstruct]() (res string)
GetGongstructName returns the name of the Gongstruct this can be usefull if one want program robust to refactoring
func GetNamedStructInstances ¶
func GetNamedStructInstances[T PointerToGongstruct](set map[T]any, order map[T]uint) (res []string)
func GetOrder ¶
func GetOrder[Type Gongstruct](stage *Stage, instance *Type) uint
func GetOrderPointerGongstruct ¶
func GetOrderPointerGongstruct[Type PointerToGongstruct](stage *Stage, instance Type) uint
func GetPointerReverseMap ¶
func GetPointerReverseMap[Start, End Gongstruct](fieldname string, stage *Stage) map[*End][]*Start
GetPointerReverseMap allows backtrack navigation of any Start.Fieldname associations (0..1) that is a pointer from one staged Gongstruct (type Start) instances to another (type End)
The function provides a map with keys as instances of End and values to arrays of *Start the map is construed by iterating over all Start instances and populationg keys with End instances and values with slice of Start instances
func GetPointerToGongstructName ¶
func GetPointerToGongstructName[Type PointerToGongstruct]() (res string)
GetPointerToGongstructName returns the name of the Gongstruct this can be usefull if one want program robust to refactoring
func GetReverseFieldOwner ¶
func GetReverseFieldOwner[T Gongstruct]( stage *Stage, instance *T, reverseField *ReverseField) (res any)
func GetReverseFieldOwnerName ¶
func GetReverseFieldOwnerName( stage *Stage, instance any, reverseField *ReverseField) (res string)
func GetSliceOfPointersReverseMap ¶
func GetSliceOfPointersReverseMap[Start, End Gongstruct](fieldname string, stage *Stage) map[*End][]*Start
GetSliceOfPointersReverseMap allows backtrack navigation of any Start.Fieldname associations (0..N) between one staged Gongstruct instances and many others
The function provides a map with keys as instances of End and values to *Start instances the map is construed by iterating over all Start instances and populating keys with End instances and values with the Start instances
func GetStructInstancesByOrder ¶
func GetStructInstancesByOrder[T PointerToGongstruct](set map[T]any, order map[T]uint) (res []T)
func GongGetMap ¶
func GongGetMap[Type GongstructMapString](stage *Stage) *Type
GongGetMap returns the map of staged GongstructType instances it is usefull because it allows refactoring of gong struct identifier
func GongGetSet ¶
func GongGetSet[Type GongstructSet](stage *Stage) *Type
GongGetSet returns the set staged GongstructType instances it is usefull because it allows refactoring of gong struct identifier
func IntToLetters ¶
func IsStaged ¶
func IsStaged[Type Gongstruct](stage *Stage, instance *Type) (ok bool)
func ParseAstEmbeddedFile ¶
ParseAstEmbeddedFile parses the Go source code from an embedded file specified by pathToFile within the provided embed.FS directory and stages instances declared in the file using the provided Stage.
Parameters:
stage: The staging area to populate. directory: The embedded filesystem containing the file. pathToFile: The path to the Go source file within the embedded filesystem.
Returns:
An error if reading or parsing the file fails, or if ParseAstFileFromAst fails.
func ParseAstFile ¶
ParseAstFile Parse pathToFile and stages all instances declared in the file
func ParseAstFileFromAst ¶
ParseAstFile Parse pathToFile and stages all instances declared in the file
func ReplaceOldDeclarationsInFile ¶
ReplaceOldDeclarationsInFile replaces specific text in a file at the given path.
func Serialize ¶
func Serialize[Type Gongstruct](stage *Stage, tab Tabulator)
func SerializeExcelize ¶
func SerializeExcelize[Type Gongstruct](stage *Stage, f *excelize.File)
func SerializeExcelizePointerToGongstruct ¶
func SerializeExcelizePointerToGongstruct[Type PointerToGongstruct](stage *Stage, f *excelize.File)
func SerializeStage ¶
func SetCallbackAfterCreateFromFront ¶
func SetCallbackAfterCreateFromFront[Type Gongstruct](stage *Stage, callback OnAfterCreateInterface[Type])
func SetCallbackAfterDeleteFromFront ¶
func SetCallbackAfterDeleteFromFront[Type Gongstruct](stage *Stage, callback OnAfterDeleteInterface[Type])
func SetCallbackAfterReadFromFront ¶
func SetCallbackAfterReadFromFront[Type Gongstruct](stage *Stage, callback OnAfterReadInterface[Type])
func SetCallbackAfterUpdateFromFront ¶
func SetCallbackAfterUpdateFromFront[Type Gongstruct](stage *Stage, callback OnAfterUpdateInterface[Type])
SetCallbackAfterUpdateFromFront is a function to set up callback that is robust to refactoring
func SetOrchestratorOnAfterUpdate ¶
func SetOrchestratorOnAfterUpdate[Type Gongstruct](stage *Stage)
func SortGongstructSetByName ¶
func SortGongstructSetByName[T PointerToGongstruct](set map[T]any) (sortedSlice []T)
func StageBranch ¶
func StageBranch[Type Gongstruct](stage *Stage, instance *Type)
StageBranch stages instance and apply StageBranch on all gongstruct instances that are referenced by pointers or slices of pointers of the instance
the algorithm stops along the course of graph if a vertex is already staged
func UnmarshallGongstructStaging ¶
func UnmarshallGongstructStaging(stage *Stage, cmap *ast.CommentMap, assignStmt *ast.AssignStmt, astCoordinate_ string) ( instance any, identifier string, gongstructName string, fieldName string)
UnmarshallGoStaging unmarshall a go assign statement
func UnstageBranch ¶
func UnstageBranch[Type Gongstruct](stage *Stage, instance *Type)
UnstageBranch stages instance and apply UnstageBranch on all gongstruct instances that are referenced by pointers or slices of pointers of the insance
the algorithm stops along the course of graph if a vertex is already staged
Types ¶
type AllModelsStructCreateInterface ¶
type AllModelsStructCreateInterface interface { CreateORMArrow(Arrow *Arrow) CreateORMBar(Bar *Bar) CreateORMGantt(Gantt *Gantt) CreateORMGroup(Group *Group) CreateORMLane(Lane *Lane) CreateORMLaneUse(LaneUse *LaneUse) CreateORMMilestone(Milestone *Milestone) }
swagger:ignore
type Arrow ¶
type Arrow struct { Name string From *Bar To *Bar // if not Zero, is taken into account when drawing the bar OptionnalColor string OptionnalStroke string }
func CopyBranchArrow ¶
insertion point for stage branch per struct
func (*Arrow) CommitVoid ¶
func (*Arrow) CopyBasicFields ¶
func (*Arrow) Stage ¶
insertion point for cumulative sub template with model space calls Stage puts arrow to the model stage
func (*Arrow) UnstageVoid ¶
UnstageVoid removes arrow off the model stage
type BackRepoInterface ¶
type BackRepoInterface interface { Commit(stage *Stage) Checkout(stage *Stage) Backup(stage *Stage, dirPath string) Restore(stage *Stage, dirPath string) BackupXL(stage *Stage, dirPath string) RestoreXL(stage *Stage, dirPath string) // insertion point for Commit and Checkout signatures CommitArrow(arrow *Arrow) CheckoutArrow(arrow *Arrow) CommitBar(bar *Bar) CheckoutBar(bar *Bar) CommitGantt(gantt *Gantt) CheckoutGantt(gantt *Gantt) CommitGroup(group *Group) CheckoutGroup(group *Group) CommitLane(lane *Lane) CheckoutLane(lane *Lane) CommitLaneUse(laneuse *LaneUse) CheckoutLaneUse(laneuse *LaneUse) CommitMilestone(milestone *Milestone) CheckoutMilestone(milestone *Milestone) GetLastCommitFromBackNb() uint GetLastPushFromFrontNb() uint }
type Bar ¶
type Bar struct { Name string Start time.Time End time.Time ComputedDuration time.Duration // if not Zero, is taken into account when drawing the bar OptionnalColor string OptionnalStroke string FillOpacity float64 StrokeWidth float64 StrokeDashArray string }
func (*Bar) CommitVoid ¶
func (*Bar) CopyBasicFields ¶
func (*Bar) UnstageVoid ¶
UnstageVoid removes bar off the model stage
type BarImpl ¶
func (*BarImpl) RectUpdated ¶
func (barImpl *BarImpl) RectUpdated(updatedRect *gongsvg_models.Rect)
type ExcelizeTabulator ¶
type ExcelizeTabulator struct {
// contains filtered or unexported fields
}
func (*ExcelizeTabulator) AddCell ¶
func (tab *ExcelizeTabulator) AddCell(sheetName string, rowId, columnIndex int, value string)
func (*ExcelizeTabulator) AddRow ¶
func (tab *ExcelizeTabulator) AddRow(sheetName string) (rowId int)
func (*ExcelizeTabulator) AddSheet ¶
func (tab *ExcelizeTabulator) AddSheet(sheetName string)
func (*ExcelizeTabulator) SetExcelizeFile ¶
func (tab *ExcelizeTabulator) SetExcelizeFile(f *excelize.File)
type GONG__ExpressionType ¶
type GONG__ExpressionType string
swagger:ignore
const ( GONG__STRUCT_INSTANCE GONG__ExpressionType = "STRUCT_INSTANCE" GONG__FIELD_OR_CONST_VALUE GONG__ExpressionType = "FIELD_OR_CONST_VALUE" GONG__FIELD_VALUE GONG__ExpressionType = "FIELD_VALUE" GONG__ENUM_CAST_INT GONG__ExpressionType = "ENUM_CAST_INT" GONG__ENUM_CAST_STRING GONG__ExpressionType = "ENUM_CAST_STRING" GONG__IDENTIFIER_CONST GONG__ExpressionType = "IDENTIFIER_CONST" )
type GONG__Identifier ¶
type GONG__Identifier struct { Ident string Type GONG__ExpressionType }
type Gantt ¶
type Gantt struct { Name string // dates computed from tasks of the gantt ComputedStart time.Time ComputedEnd time.Time ComputedDuration time.Duration // start and end dates if manual setup is true UseManualStartAndEndDates bool ManualStart time.Time ManualEnd time.Time LaneHeight float64 RatioBarToLaneHeight float64 YTopMargin float64 XLeftText float64 TextHeight float64 XLeftLanes float64 XRightMargin float64 ArrowLengthToTheRightOfStartBar float64 ArrowTipLenght float64 TimeLine_Color string TimeLine_FillOpacity float64 TimeLine_Stroke string TimeLine_StrokeWidth float64 Group_Stroke string Group_StrokeWidth float64 Group_StrokeDashArray string DateYOffset float64 AlignOnStartEndOnYearStart bool // List of Lanes Lanes []*Lane // list of Milestones Milestones []*Milestone // list of Groups Groups []*Group // list of Arrows Arrows []*Arrow }
func CopyBranchGantt ¶
func (*Gantt) CommitVoid ¶
func (*Gantt) ComputeStartAndEndDate ¶
func (gantt *Gantt) ComputeStartAndEndDate()
func (*Gantt) CopyBasicFields ¶
func (*Gantt) UnstageVoid ¶
UnstageVoid removes gantt off the model stage
type GanttSVGMapper ¶
type GanttSVGMapper struct { }
type of the singloton for interception of gantt commit in order to generate the svg
func (*GanttSVGMapper) GenerateSvg ¶
func (ganttSVGMapper *GanttSVGMapper) GenerateSvg( gongganttStage *Stage, gongsvgStage *gongsvg_models.Stage)
type GanttStacksNames ¶
type GanttStacksNames string
GanttStacksNames - enumeration of possible 'type' values for an HTML <input> element swagger:enum GanttStacksNames
const ( SvgStackName GanttStacksNames = "svg" // the gantt application launch a svg stack for visualisation. this is its name GanttStackName GanttStacksNames = "gantt" // the default gantt stack has this name )
values for TableExtraNameEnum
func (GanttStacksNames) CodeValues ¶
func (ganttstacksnames GanttStacksNames) CodeValues() (res []string)
func (GanttStacksNames) Codes ¶
func (ganttstacksnames GanttStacksNames) Codes() (res []string)
func (*GanttStacksNames) FromCodeString ¶
func (ganttstacksnames *GanttStacksNames) FromCodeString(input string) (err error)
func (*GanttStacksNames) FromString ¶
func (ganttstacksnames *GanttStacksNames) FromString(input string) (err error)
func (*GanttStacksNames) ToCodeString ¶
func (ganttstacksnames *GanttStacksNames) ToCodeString() (res string)
func (GanttStacksNames) ToString ¶
func (ganttstacksnames GanttStacksNames) ToString() (res string)
insertion point of enum utility functions Utility function for GanttStacksNames if enum values are string, it is stored with the value if enum values are int, they are stored with the code of the value
type Gantt_WOP ¶
type Gantt_WOP struct { Name string ComputedStart time.Time ComputedEnd time.Time ComputedDuration time.Duration UseManualStartAndEndDates bool ManualStart time.Time ManualEnd time.Time LaneHeight float64 RatioBarToLaneHeight float64 YTopMargin float64 XLeftText float64 TextHeight float64 XLeftLanes float64 XRightMargin float64 ArrowLengthToTheRightOfStartBar float64 ArrowTipLenght float64 TimeLine_Color string TimeLine_FillOpacity float64 TimeLine_Stroke string TimeLine_StrokeWidth float64 Group_Stroke string Group_StrokeWidth float64 Group_StrokeDashArray string DateYOffset float64 AlignOnStartEndOnYearStart bool }
type GongFieldValue ¶
type GongFieldValue struct { GongFieldValueType // contains filtered or unexported fields }
func GetFieldStringValue ¶
func GetFieldStringValue(instance any, fieldName string) (res GongFieldValue)
func GetFieldStringValueFromPointer ¶
func GetFieldStringValueFromPointer(instance any, fieldName string) (res GongFieldValue)
func (*GongFieldValue) GetValueBool ¶
func (gongValueField *GongFieldValue) GetValueBool() bool
func (*GongFieldValue) GetValueFloat ¶
func (gongValueField *GongFieldValue) GetValueFloat() float64
func (*GongFieldValue) GetValueInt ¶
func (gongValueField *GongFieldValue) GetValueInt() int
func (*GongFieldValue) GetValueString ¶
func (gongValueField *GongFieldValue) GetValueString() string
type GongFieldValueType ¶
type GongFieldValueType string
const ( GongFieldValueTypeInt GongFieldValueType = "GongFieldValueTypeInt" GongFieldValueTypeFloat GongFieldValueType = "GongFieldValueTypeFloat" GongFieldValueTypeBool GongFieldValueType = "GongFieldValueTypeBool" GongFieldValueTypeOthers GongFieldValueType = "GongFieldValueTypeOthers" )
type GongStructInterface ¶
type GongStructInterface interface {
GetName() (res string)
}
GongStructInterface is the interface met by GongStructs It allows runtime reflexion of instances (without the hassle of the "reflect" package)
type Gongstruct ¶
type Gongstruct interface { }
Gongstruct is the type parameter for generated generic function that allows - access to staged instances - navigation between staged instances by going backward association links between gongstruct - full refactoring of Gongstruct identifiers / fields
type GongstructEnumIntField ¶
type GongstructMapString ¶
type GongstructSet ¶
type GongtructBasicField ¶
type Group ¶
func CopyBranchGroup ¶
func (*Group) CommitVoid ¶
func (*Group) CopyBasicFields ¶
func (*Group) UnstageVoid ¶
UnstageVoid removes group off the model stage
type Lane ¶
func (*Lane) CommitVoid ¶
func (*Lane) CopyBasicFields ¶
func (*Lane) UnstageVoid ¶
UnstageVoid removes lane off the model stage
type LaneUse ¶
func CopyBranchLaneUse ¶
func (*LaneUse) CommitVoid ¶
func (*LaneUse) CopyBasicFields ¶
func (*LaneUse) UnstageVoid ¶
UnstageVoid removes laneuse off the model stage
type LaneUse_WOP ¶
type LaneUse_WOP struct {
Name string
}
type Milestone ¶
type Milestone struct { Name string Date time.Time // DisplayVerticalBar indicates wether the milestone // has a vertical vertical on the whole gantt DisplayVerticalBar bool // a red diamond a text anchor will be displayed LanesToDisplay []*Lane }
func CopyBranchMilestone ¶
func (*Milestone) CommitVoid ¶
func (*Milestone) CopyBasicFields ¶
func (*Milestone) UnstageVoid ¶
UnstageVoid removes milestone off the model stage
type Milestone_WOP ¶
type NamedStruct ¶
type NamedStruct struct {
// contains filtered or unexported fields
}
func (*NamedStruct) GetName ¶
func (namedStruct *NamedStruct) GetName() string
type OnAfterCreateInterface ¶
type OnAfterCreateInterface[Type Gongstruct] interface { OnAfterCreate(stage *Stage, instance *Type) }
OnAfterCreateInterface callback when an instance is updated from the front
type OnAfterDeleteInterface ¶
type OnAfterDeleteInterface[Type Gongstruct] interface { OnAfterDelete(stage *Stage, staged, front *Type) }
OnAfterDeleteInterface callback when an instance is updated from the front
type OnAfterReadInterface ¶
type OnAfterReadInterface[Type Gongstruct] interface { OnAfterRead(stage *Stage, instance *Type) }
OnAfterReadInterface callback when an instance is updated from the front
type OnAfterUpdateInterface ¶
type OnAfterUpdateInterface[Type Gongstruct] interface { OnAfterUpdate(stage *Stage, old, new *Type) }
OnAfterUpdateInterface callback when an instance is updated from the front
type OnInitCommitInterface ¶
type OnInitCommitInterface interface {
BeforeCommit(stage *Stage)
}
type PointerToGongstruct ¶
type PointerToGongstruct interface { GetName() string CommitVoid(*Stage) UnstageVoid(stage *Stage) comparable }
Gongstruct is the type parameter for generated generic function that allows - access to staged instances - navigation between staged instances by going backward association links between gongstruct - full refactoring of Gongstruct identifiers / fields
type ReverseField ¶
func GetReverseFields ¶
func GetReverseFields[Type Gongstruct]() (res []ReverseField)
type Stage ¶
type Stage struct { // insertion point for definition of arrays registering instances Arrows map[*Arrow]any Arrows_mapString map[string]*Arrow // insertion point for slice of pointers maps OnAfterArrowCreateCallback OnAfterCreateInterface[Arrow] OnAfterArrowUpdateCallback OnAfterUpdateInterface[Arrow] OnAfterArrowDeleteCallback OnAfterDeleteInterface[Arrow] OnAfterArrowReadCallback OnAfterReadInterface[Arrow] Bars map[*Bar]any Bars_mapString map[string]*Bar // insertion point for slice of pointers maps OnAfterBarCreateCallback OnAfterCreateInterface[Bar] OnAfterBarUpdateCallback OnAfterUpdateInterface[Bar] OnAfterBarDeleteCallback OnAfterDeleteInterface[Bar] OnAfterBarReadCallback OnAfterReadInterface[Bar] Gantts map[*Gantt]any Gantts_mapString map[string]*Gantt // insertion point for slice of pointers maps Gantt_Lanes_reverseMap map[*Lane]*Gantt Gantt_Milestones_reverseMap map[*Milestone]*Gantt Gantt_Groups_reverseMap map[*Group]*Gantt Gantt_Arrows_reverseMap map[*Arrow]*Gantt OnAfterGanttCreateCallback OnAfterCreateInterface[Gantt] OnAfterGanttUpdateCallback OnAfterUpdateInterface[Gantt] OnAfterGanttDeleteCallback OnAfterDeleteInterface[Gantt] OnAfterGanttReadCallback OnAfterReadInterface[Gantt] Groups map[*Group]any Groups_mapString map[string]*Group // insertion point for slice of pointers maps Group_GroupLanes_reverseMap map[*Lane]*Group OnAfterGroupCreateCallback OnAfterCreateInterface[Group] OnAfterGroupUpdateCallback OnAfterUpdateInterface[Group] OnAfterGroupDeleteCallback OnAfterDeleteInterface[Group] OnAfterGroupReadCallback OnAfterReadInterface[Group] Lanes map[*Lane]any Lanes_mapString map[string]*Lane // insertion point for slice of pointers maps Lane_Bars_reverseMap map[*Bar]*Lane OnAfterLaneCreateCallback OnAfterCreateInterface[Lane] OnAfterLaneUpdateCallback OnAfterUpdateInterface[Lane] OnAfterLaneDeleteCallback OnAfterDeleteInterface[Lane] OnAfterLaneReadCallback OnAfterReadInterface[Lane] LaneUses map[*LaneUse]any LaneUses_mapString map[string]*LaneUse // insertion point for slice of pointers maps OnAfterLaneUseCreateCallback OnAfterCreateInterface[LaneUse] OnAfterLaneUseUpdateCallback OnAfterUpdateInterface[LaneUse] OnAfterLaneUseDeleteCallback OnAfterDeleteInterface[LaneUse] OnAfterLaneUseReadCallback OnAfterReadInterface[LaneUse] Milestones map[*Milestone]any Milestones_mapString map[string]*Milestone // insertion point for slice of pointers maps Milestone_LanesToDisplay_reverseMap map[*Lane]*Milestone OnAfterMilestoneCreateCallback OnAfterCreateInterface[Milestone] OnAfterMilestoneUpdateCallback OnAfterUpdateInterface[Milestone] OnAfterMilestoneDeleteCallback OnAfterDeleteInterface[Milestone] OnAfterMilestoneReadCallback OnAfterReadInterface[Milestone] AllModelsStructCreateCallback AllModelsStructCreateInterface AllModelsStructDeleteCallback AllModelsStructDeleteInterface BackRepo BackRepoInterface // if set will be called before each commit to the back repo OnInitCommitCallback OnInitCommitInterface OnInitCommitFromFrontCallback OnInitCommitInterface OnInitCommitFromBackCallback OnInitCommitInterface // store the number of instance per gongstruct Map_GongStructName_InstancesNb map[string]int // store meta package import MetaPackageImportPath string MetaPackageImportAlias string // to be removed after fix of [issue](https://github.com/golang/go/issues/57559) // map to enable docLink renaming when an identifier is renamed Map_DocLink_Renaming map[string]GONG__Identifier // store the stage order of each instance in order to // preserve this order when serializing them // insertion point for order fields declaration ArrowOrder uint ArrowMap_Staged_Order map[*Arrow]uint BarOrder uint BarMap_Staged_Order map[*Bar]uint GanttOrder uint GanttMap_Staged_Order map[*Gantt]uint GroupOrder uint GroupMap_Staged_Order map[*Group]uint LaneOrder uint LaneMap_Staged_Order map[*Lane]uint LaneUseOrder uint LaneUseMap_Staged_Order map[*LaneUse]uint MilestoneOrder uint MilestoneMap_Staged_Order map[*Milestone]uint NamedStructs []*NamedStruct // contains filtered or unexported fields }
Stage enables storage of staged instances swagger:ignore
func (*Stage) CommitWithSuspendedCallbacks ¶
func (stage *Stage) CommitWithSuspendedCallbacks()
func (*Stage) ComputeReverseMaps ¶
func (stage *Stage) ComputeReverseMaps()
ComputeReverseMaps computes the reverse map, for all intances, for all slice to pointers field Its complexity is in O(n)O(p) where p is the number of pointers
func (*Stage) GetDigramsEmbededDir ¶
func (*Stage) GetMap_GongStructName_InstancesNb ¶
func (*Stage) GetModelsEmbededDir ¶
func (*Stage) GetNamedStructNamesByOrder ¶
func (*Stage) GetNamedStructsNames ¶
GetNamedStructs implements models.ProbebStage.
func (*Stage) GetProbeFormStageName ¶
func (*Stage) GetProbeSplitStageName ¶
func (*Stage) GetProbeTableStageName ¶
func (*Stage) GetProbeTreeSidebarStageName ¶
func (*Stage) IsStagedArrow ¶
insertion point for stage per struct
func (*Stage) IsStagedBar ¶
func (*Stage) IsStagedGantt ¶
func (*Stage) IsStagedGroup ¶
func (*Stage) IsStagedLane ¶
func (*Stage) IsStagedLaneUse ¶
func (*Stage) IsStagedMilestone ¶
func (*Stage) Marshall ¶
Marshall marshall the stage content into the file as an instanciation into a stage
func (*Stage) Restore ¶
Restore resets Stage & BackRepo and restores their content from the restore files in dirPath
func (*Stage) RestoreXL ¶
Restore resets Stage & BackRepo and restores their content from the restore files in dirPath
func (*Stage) SetGeneratesDiff ¶
func (*Stage) StageBranchArrow ¶
insertion point for stage branch per struct
func (*Stage) StageBranchBar ¶
func (*Stage) StageBranchGantt ¶
func (*Stage) StageBranchGroup ¶
func (*Stage) StageBranchLane ¶
func (*Stage) StageBranchLaneUse ¶
func (*Stage) StageBranchMilestone ¶
func (*Stage) UnstageBranchArrow ¶
insertion point for unstage branch per struct
func (*Stage) UnstageBranchBar ¶
func (*Stage) UnstageBranchGantt ¶
func (*Stage) UnstageBranchGroup ¶
func (*Stage) UnstageBranchLane ¶
func (*Stage) UnstageBranchLaneUse ¶
func (*Stage) UnstageBranchMilestone ¶
type Stager ¶
type Stager struct {
// contains filtered or unexported fields
}
func (*Stager) GetAsSplitArea ¶
func (stager *Stager) GetAsSplitArea() (asSplitArea *split.AsSplitArea)
func (*Stager) GetSvgStage ¶
func (stager *Stager) GetSvgStage() (svgStage *svg_models.Stage)
Source Files
¶
- arrow.go
- bar.go
- bar_impl.go
- docs.go
- gantt.go
- gantt_svg_mapper.go
- gantt_svg_mapper_generate_svg.go
- generate_arrow.go
- group.go
- lane.go
- milestone.go
- note_on_the_model.go
- stack_names_enum.go
- stager.go
- x_to_date.go
- zzz_gong.go
- zzz_gong_ast.go
- zzz_gong_callbacks.go
- zzz_gong_diff.go
- zzz_gong_enum.go
- zzz_gong_graph.go
- zzz_gong_marshall.go
- zzz_gong_orchestrator.go
- zzz_gong_reverse.go
- zzz_gong_serialize.go
- zzz_gong_slices.go
- zzz_gong_wop.go