Documentation ¶
Index ¶
- type AppController
- func (app *AppController) ClientNames(c *gin.Context)
- func (app *AppController) ClientNamesWithQuery(c *gin.Context)
- func (app *AppController) ProjectDatabases(c *gin.Context)
- func (app *AppController) ProjectEnvironments(c *gin.Context)
- func (app *AppController) ProjectNames(c *gin.Context)
- func (app *AppController) ProjectNamesWithQuery(c *gin.Context)
- func (app *AppController) ProjectRuntimes(c *gin.Context)
- func (app *AppController) WsHandler(w http.ResponseWriter, r *http.Request)
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.