fullstack

package
v0.0.0-...-589f0e7 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

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
)

Jump to

Keyboard shortcuts

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