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 ¶
Handler is the base for the application
func (*Handler) DeleteApplication ¶
DeleteApplication removes the application identified by the :app_id
func (*Handler) ErrorHandler ¶
ErrorHandler implements the default error handling for the application
func (*Handler) GetApplication ¶
GetApplication returns an Application object
func (*Handler) StoreApplication ¶
StoreApplication creates ou updates the Application with the object received on the body
Click to show internal directories.
Click to hide internal directories.