probe

package
v0.0.0-...-a0af7a8 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

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

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

This section is empty.

Functions

func AssociationFieldToForm

func AssociationFieldToForm[FieldType models.PointerToGongstruct](
	fieldName string, field FieldType, formGroup *form.FormGroup, probe *Probe,
)

AssociationFieldToForm will append a div to the form with the values of options equal to the name of each possible instances in the association type

func AssociationReverseFieldToForm

func AssociationReverseFieldToForm[OwnerType models.PointerToGongstruct, FieldType models.PointerToGongstruct](
	owner OwnerType,
	fieldName string,
	instance FieldType,
	formGroup *form.FormGroup,
	probe *Probe,
)

func AssociationSliceToForm

func AssociationSliceToForm[InstanceType models.PointerToGongstruct, FieldType models.PointerToGongstruct](
	fieldName string,
	instance InstanceType,
	field *[]FieldType,
	formGroup *form.FormGroup,
	probe *Probe,
)

AssociationSliceToForm add a form div with 2 buttons - one for selection - one for sorting

func BasicFieldtoForm

func BasicFieldtoForm[T models.PointerToGongstruct, TF models.GongtructBasicField](
	fieldName string, field TF, instance T, formStage *form.StageStruct, formGroup *form.FormGroup,
	isTextArea bool, isBespokeWidth bool, bespokeWidth int, isBespokeHeight bool, bespokeHeight int,
)

func EnumTypeIntToForm

func EnumTypeIntToForm[T models.PointerToGongstruct, TF models.GongstructEnumIntField](
	fieldName string, field TF, instance T, formStage *form.StageStruct, formGroup *form.FormGroup,
)

func EnumTypeStringToForm

func EnumTypeStringToForm[T models.PointerToGongstruct, TF models.GongstructEnumStringField](
	fieldName string, field TF, instance T, formStage *form.StageStruct, formGroup *form.FormGroup,
)

func FillUpForm

func FillUpForm[T models.Gongstruct](
	instance *T,
	formGroup *form.FormGroup,
	probe *Probe,
)

func FillUpFormFromGongstruct

func FillUpFormFromGongstruct[T models.Gongstruct](instance *T, probe *Probe)

func FillUpFormFromGongstructName

func FillUpFormFromGongstructName(
	probe *Probe,
	gongstructName string,
	isNewInstance bool,
)

func FillUpNamedFormFromGongstruct

func FillUpNamedFormFromGongstruct[T models.Gongstruct](instance *T, probe *Probe, formStage *gongtable.StageStruct, formName string)

func FormDivBasicFieldToField

func FormDivBasicFieldToField[TF models.GongtructBasicField](field *TF, formDiv *form.FormDiv)

func FormDivEnumIntFieldToField

func FormDivEnumIntFieldToField[TF models.PointerToGongstructEnumIntField](field TF, formDiv *form.FormDiv)

func FormDivEnumStringFieldToField

func FormDivEnumStringFieldToField[TF models.PointerToGongstructEnumStringField](field TF, formDiv *form.FormDiv)

func FormDivSelectFieldToField

func FormDivSelectFieldToField[TF models.PointerToGongstruct](field *TF, stageOfInterest *models.StageStruct, formDiv *form.FormDiv)

Types

type AllFormCallback

type AllFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*AllFormCallback) OnSave

func (allFormCallback *AllFormCallback) OnSave()

type AnnotationFormCallback

type AnnotationFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*AnnotationFormCallback) OnSave

func (annotationFormCallback *AnnotationFormCallback) OnSave()

type AttributeFormCallback

type AttributeFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*AttributeFormCallback) OnSave

func (attributeFormCallback *AttributeFormCallback) OnSave()

type AttributeGroupFormCallback

type AttributeGroupFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*AttributeGroupFormCallback) OnSave

func (attributegroupFormCallback *AttributeGroupFormCallback) OnSave()

type ButtonImplGongstruct

type ButtonImplGongstruct struct {
	Icon gongtree_buttons.ButtonType
	// contains filtered or unexported fields
}

func NewButtonImplGongstruct

func NewButtonImplGongstruct(
	gongStruct *gong_models.GongStruct,
	icon gongtree_buttons.ButtonType,
	probe *Probe,
) (buttonImplGongstruct *ButtonImplGongstruct)

func (*ButtonImplGongstruct) ButtonUpdated

func (buttonImpl *ButtonImplGongstruct) ButtonUpdated(
	gongtreeStage *gongtree_models.StageStruct,
	stageButton, front *gongtree_models.Button)

type ButtonImplRefresh

type ButtonImplRefresh struct {
	// contains filtered or unexported fields
}

func NewButtonImplRefresh

func NewButtonImplRefresh(
	probe *Probe,
) (buttonImplRefresh *ButtonImplRefresh)

func (*ButtonImplRefresh) ButtonUpdated

func (buttonImpl *ButtonImplRefresh) ButtonUpdated(
	gongtreeStage *gongtree_models.StageStruct,
	stageButton, front *gongtree_models.Button)

type CellDeleteIconImpl

type CellDeleteIconImpl[T models.Gongstruct] struct {
	Instance *T
	// contains filtered or unexported fields
}

func NewCellDeleteIconImpl

func NewCellDeleteIconImpl[T models.Gongstruct](
	Instance *T,
	probe *Probe,
) (cellDeleteIconImpl *CellDeleteIconImpl[T])

func (*CellDeleteIconImpl[T]) CellIconUpdated

func (cellDeleteIconImpl *CellDeleteIconImpl[T]) CellIconUpdated(stage *gongtable.StageStruct,
	row, updatedCellIcon *gongtable.CellIcon)

type ChoiceFormCallback

type ChoiceFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*ChoiceFormCallback) OnSave

func (choiceFormCallback *ChoiceFormCallback) OnSave()

type ComplexContentFormCallback

type ComplexContentFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*ComplexContentFormCallback) OnSave

func (complexcontentFormCallback *ComplexContentFormCallback) OnSave()

type ComplexTypeFormCallback

type ComplexTypeFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*ComplexTypeFormCallback) OnSave

func (complextypeFormCallback *ComplexTypeFormCallback) OnSave()

type DocumentationFormCallback

type DocumentationFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*DocumentationFormCallback) OnSave

func (documentationFormCallback *DocumentationFormCallback) OnSave()

type ElementFormCallback

type ElementFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*ElementFormCallback) OnSave

func (elementFormCallback *ElementFormCallback) OnSave()

type EnumerationFormCallback

type EnumerationFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*EnumerationFormCallback) OnSave

func (enumerationFormCallback *EnumerationFormCallback) OnSave()

type ExtensionFormCallback

type ExtensionFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*ExtensionFormCallback) OnSave

func (extensionFormCallback *ExtensionFormCallback) OnSave()

type GroupFormCallback

type GroupFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*GroupFormCallback) OnSave

func (groupFormCallback *GroupFormCallback) OnSave()

type InstanceNodeCallback

type InstanceNodeCallback[T models.Gongstruct] struct {
	Instance *T
	// contains filtered or unexported fields
}

func NewInstanceNodeCallback

func NewInstanceNodeCallback[T models.Gongstruct](
	instance *T,
	gongstructName string,
	probe *Probe) (
	instanceNodeCallback *InstanceNodeCallback[T],
)

func (*InstanceNodeCallback[T]) OnAfterUpdate

func (instanceNodeCallback *InstanceNodeCallback[T]) OnAfterUpdate(
	gongtreeStage *tree.StageStruct,
	stagedNode, frontNode *tree.Node)

type LengthFormCallback

type LengthFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*LengthFormCallback) OnSave

func (lengthFormCallback *LengthFormCallback) OnSave()

type MaxInclusiveFormCallback

type MaxInclusiveFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*MaxInclusiveFormCallback) OnSave

func (maxinclusiveFormCallback *MaxInclusiveFormCallback) OnSave()

type MaxLengthFormCallback

type MaxLengthFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*MaxLengthFormCallback) OnSave

func (maxlengthFormCallback *MaxLengthFormCallback) OnSave()

type MinInclusiveFormCallback

type MinInclusiveFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*MinInclusiveFormCallback) OnSave

func (mininclusiveFormCallback *MinInclusiveFormCallback) OnSave()

type MinLengthFormCallback

type MinLengthFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*MinLengthFormCallback) OnSave

func (minlengthFormCallback *MinLengthFormCallback) OnSave()

type OnAssocEditon

type OnAssocEditon[InstanceType models.PointerToGongstruct, FieldType models.PointerToGongstruct] struct {
	// contains filtered or unexported fields
}

func NewOnAssocEditon

func NewOnAssocEditon[InstanceType models.PointerToGongstruct, FieldType models.PointerToGongstruct](
	instance InstanceType,
	field *[]FieldType,
	fieldName string,
	probe *Probe,
) (onAssocEdition *OnAssocEditon[InstanceType, FieldType])

func (*OnAssocEditon[InstanceType, FieldType]) OnButtonPressed

func (onAssocEditon *OnAssocEditon[InstanceType, FieldType]) OnButtonPressed()

type OnSortingEditon

type OnSortingEditon[InstanceType models.PointerToGongstruct, FieldType models.PointerToGongstruct] struct {
	// contains filtered or unexported fields
}

func NewOnSortingEditon

func NewOnSortingEditon[InstanceType models.PointerToGongstruct, FieldType models.PointerToGongstruct](
	instance InstanceType,
	field *[]FieldType,
	probe *Probe,
) (onSortingEdition *OnSortingEditon[InstanceType, FieldType])

func (*OnSortingEditon[InstanceType, FieldType]) OnButtonPressed

func (onSortingEditon *OnSortingEditon[InstanceType, FieldType]) OnButtonPressed()

type PatternFormCallback

type PatternFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*PatternFormCallback) OnSave

func (patternFormCallback *PatternFormCallback) OnSave()

type Probe

type Probe struct {
	// contains filtered or unexported fields
}

func NewProbe

func NewProbe(
	r *gin.Engine,
	goModelsDir embed.FS,
	goDiagramsDir embed.FS,
	embeddedDiagrams bool,
	stackPath string,
	stageOfInterest *models.StageStruct,
	backRepoOfInterest *orm.BackRepoStruct) (probe *Probe)

func (*Probe) GetFormStage

func (probe *Probe) GetFormStage() *form.StageStruct

func (*Probe) Refresh

func (probe *Probe) Refresh()

type RestrictionFormCallback

type RestrictionFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*RestrictionFormCallback) OnSave

func (restrictionFormCallback *RestrictionFormCallback) OnSave()

type RowUpdate

type RowUpdate[T models.Gongstruct] struct {
	Instance *T
	// contains filtered or unexported fields
}

func NewRowUpdate

func NewRowUpdate[T models.Gongstruct](
	Instance *T,
	probe *Probe,
) (rowUpdate *RowUpdate[T])

func (*RowUpdate[T]) RowUpdated

func (rowUpdate *RowUpdate[T]) RowUpdated(stage *gongtable.StageStruct, row, updatedRow *gongtable.Row)

type SchemaFormCallback

type SchemaFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*SchemaFormCallback) OnSave

func (schemaFormCallback *SchemaFormCallback) OnSave()

type SequenceFormCallback

type SequenceFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*SequenceFormCallback) OnSave

func (sequenceFormCallback *SequenceFormCallback) OnSave()

type SimpleContentFormCallback

type SimpleContentFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*SimpleContentFormCallback) OnSave

func (simplecontentFormCallback *SimpleContentFormCallback) OnSave()

type SimpleTypeFormCallback

type SimpleTypeFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*SimpleTypeFormCallback) OnSave

func (simpletypeFormCallback *SimpleTypeFormCallback) OnSave()

type TablePickSaver

type TablePickSaver[InstanceType models.PointerToGongstruct, FieldType models.PointerToGongstruct] struct {
	// contains filtered or unexported fields
}

func NewTablePickSaver

func NewTablePickSaver[InstanceType models.PointerToGongstruct, FieldType models.PointerToGongstruct](
	instance InstanceType,
	field *[]FieldType,
	fieldName string,
	probe *Probe,

) (tablePickSaver *TablePickSaver[InstanceType, FieldType])

func (*TablePickSaver[InstanceType, FieldType]) TableUpdated

func (tablePickSaver *TablePickSaver[InstanceType, FieldType]) TableUpdated(
	stage *form.StageStruct,
	table, updatedTable *form.Table)

type TableSortSaver

type TableSortSaver[InstanceType models.PointerToGongstruct, FieldType models.PointerToGongstruct] struct {
	// contains filtered or unexported fields
}

func NewTableSortSaver

func NewTableSortSaver[InstanceType models.PointerToGongstruct, FieldType models.PointerToGongstruct](
	instance InstanceType,
	field *[]FieldType,
	probe *Probe,
	map_RowID_instance *map[*gongtable_models.Row]FieldType,
) (tableSortSaver *TableSortSaver[InstanceType, FieldType])

func (*TableSortSaver[InstanceType, FieldType]) TableUpdated

func (tableSortSaver *TableSortSaver[InstanceType, FieldType]) TableUpdated(stage *form.StageStruct, table, updatedTable *form.Table)

type TotalDigitFormCallback

type TotalDigitFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*TotalDigitFormCallback) OnSave

func (totaldigitFormCallback *TotalDigitFormCallback) OnSave()

type TreeNodeImplGongstruct

type TreeNodeImplGongstruct struct {
	// contains filtered or unexported fields
}

func NewTreeNodeImplGongstruct

func NewTreeNodeImplGongstruct(
	gongStruct *gong_models.GongStruct,
	probe *Probe,
) (nodeImplGongstruct *TreeNodeImplGongstruct)

func (*TreeNodeImplGongstruct) OnAfterUpdate

func (nodeImplGongstruct *TreeNodeImplGongstruct) OnAfterUpdate(
	gongtreeStage *gongtree_models.StageStruct,
	stagedNode, frontNode *gongtree_models.Node)

type UnionFormCallback

type UnionFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*UnionFormCallback) OnSave

func (unionFormCallback *UnionFormCallback) OnSave()

type WhiteSpaceFormCallback

type WhiteSpaceFormCallback struct {

	// If the form call is called on the creation of a new instnace
	CreationMode bool
	// contains filtered or unexported fields
}

func (*WhiteSpaceFormCallback) OnSave

func (whitespaceFormCallback *WhiteSpaceFormCallback) OnSave()

Jump to

Keyboard shortcuts

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