Documentation
¶
Index ¶
Constants ¶
View Source
const FullstackNewStackInstanceTemplate = FullstackNewStackInstanceTemplatePart1 + FullstackNewStackInstanceTemplatePart2 + FullstackNewStackInstanceTemplatePart3
View Source
const FullstackNewStackInstanceTemplateLevel1 = FullstackNewStackInstanceTemplatePart1 + FullstackNewStackInstanceTemplatePart2Level1 + FullstackNewStackInstanceTemplatePart3
View Source
const FullstackNewStackInstanceTemplatePart1 = `` /* 404-byte string literal not displayed */
View Source
const FullstackNewStackInstanceTemplatePart2 = `
_ "{{PkgPathAboveRoot}}/{{NgWorkspaceName}}"
)`
View Source
const FullstackNewStackInstanceTemplatePart2Level1 = `` /* 216-byte string literal not displayed */
View Source
const FullstackNewStackInstanceTemplatePart3 = ` // NewStackInstance creates a new stack instance from the Stack Model // and returns the backRepo of the stack instance (you can get the stage from backRepo.GetStage() // // - the stackPath is the unique identifier of the stack // - the optional parameter filenames is for the name of the database filename // if filenames is omitted, the database is persisted in memory func NewStackInstance( r *gin.Engine, stackPath string, // filesnames is an optional parameter for the name of the database filenames ...string) ( stage *models.Stage, backRepo *orm.BackRepoStruct) { stage = models.NewStage(stackPath) if len(filenames) == 0 { filenames = append(filenames, ":memory:") } backRepo = orm.NewBackRepo(stage, filenames[0]) controllers.GetController().AddBackRepo(backRepo, stackPath) controllers.Register(r) // add orchestration // insertion point{{` + string(rune(ModelGongNewStackInstanceSet)) + `}} return } `
Variables ¶
View Source
var ModelGongNewStackInstanceStructSubTemplateCode map[string]string = map[string]string{ string(rune(ModelGongNewStackInstanceSet)): ` models.SetOrchestratorOnAfterUpdate[models.{{Structname}}](stage) models.SetOrchestratorOnAfterUpdateWithMouseEvent[models.{{Structname}}](stage)`, }
Functions ¶
This section is empty.
Types ¶
type ModelGongNewStackInstanceStructInsertionId ¶
type ModelGongNewStackInstanceStructInsertionId int
const (
ModelGongNewStackInstanceSet ModelGongNewStackInstanceStructInsertionId = iota
)
Click to show internal directories.
Click to hide internal directories.