controller

package
v0.0.0-...-ae86d3b Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppController

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

AppController is the controller of the application. It contains the database connection.

func NewAppController

func NewAppController(db *gorm.DB) *AppController

NewAppController returns a new AppController instance.

func (*AppController) ClientNames

func (app *AppController) ClientNames(c *gin.Context)

ClientNames is the handler function of the /clients endpoint. It returns the list of the clients for the select component.

func (*AppController) ClientNamesWithQuery

func (app *AppController) ClientNamesWithQuery(c *gin.Context)

ClientNamesWithQuery is the handler function of the /clients endpoint. It returns the list of the projects for the select component.

func (*AppController) ProjectDatabases

func (app *AppController) ProjectDatabases(c *gin.Context)

ProjectDatabases is the handler function of the /databases endpoint. It returns the list of the databases for the select component.

func (*AppController) ProjectEnvironments

func (app *AppController) ProjectEnvironments(c *gin.Context)

ProjectEnvironments is the handler function of the /environments endpoint. It returns the list of the environments for the select component.

func (*AppController) ProjectNames

func (app *AppController) ProjectNames(c *gin.Context)

ProjectNames is the handler function of the /projects endpoint. It returns the list of the projects for the select component.

func (*AppController) ProjectNamesWithQuery

func (app *AppController) ProjectNamesWithQuery(c *gin.Context)

ProjectNamesWithQuery is the handler function of the /projects endpoint. It returns the list of the projects for the select component.

func (*AppController) ProjectRuntimes

func (app *AppController) ProjectRuntimes(c *gin.Context)

ProjectRuntimes is the handler function of the /runtimes endpoint. It returns the list of the runtimes for the select component.

func (*AppController) WsHandler

func (app *AppController) WsHandler(w http.ResponseWriter, r *http.Request)

WsHandler is the handler function of the /ws endpoint.

Jump to

Keyboard shortcuts

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