app

package
Version: v0.0.0-...-e35976d Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	AppID int    `json:"app-id" gorm:"primary_key;column:app_id"`
	Name  string `json:"name" gorm:"type:varchar(80)"`
}

Application represents and application instance

func (Application) TableName

func (a Application) TableName() string

TableName specifies the name of the table to be created

type Handler

type Handler struct {
	DB *gorm.DB
}

Handler is the base for the application

func (*Handler) DeleteApplication

func (h *Handler) DeleteApplication(c echo.Context) error

DeleteApplication removes the application identified by the :app_id

func (*Handler) GetApplication

func (h *Handler) GetApplication(c echo.Context) error

GetApplication returns an Application object

func (*Handler) StoreApplication

func (h *Handler) StoreApplication(c echo.Context) error

StoreApplication creates ou updates the Application with the object received on the body

Source Files

Jump to

Keyboard shortcuts

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