probe

package
v0.0.0-...-2eede98 Latest Latest
Warning

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

Go to latest
Published: May 8, 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 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 DummyAgentFormCallback

type DummyAgentFormCallback struct {

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

func (*DummyAgentFormCallback) OnSave

func (dummyagentFormCallback *DummyAgentFormCallback) OnSave()

type EngineFormCallback

type EngineFormCallback struct {

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

func (*EngineFormCallback) OnSave

func (engineFormCallback *EngineFormCallback) OnSave()

type EventFormCallback

type EventFormCallback struct {

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

func (*EventFormCallback) OnSave

func (eventFormCallback *EventFormCallback) OnSave()

type GongsimCommandFormCallback

type GongsimCommandFormCallback struct {

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

func (*GongsimCommandFormCallback) OnSave

func (gongsimcommandFormCallback *GongsimCommandFormCallback) OnSave()

type GongsimStatusFormCallback

type GongsimStatusFormCallback struct {

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

func (*GongsimStatusFormCallback) OnSave

func (gongsimstatusFormCallback *GongsimStatusFormCallback) 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 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 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 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 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 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)

Jump to

Keyboard shortcuts

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