Documentation
¶
Index ¶
Constants ¶
View Source
const ( ResourceURIAdd = "/add-resource" ResourceURIGetByID = "/get-resource-by-id" ResourceURIGetMultipleByIDs = "/get-resources-by-ids" ResourceURIGetMultipleByCategory = "/get-resources-by-category" ResourceURIUpdate = "/update-resource" ResourceURIDelete = "/delete-resource" ResourceURIGetCategories = "/get-categories" )
View Source
const ( POST = "POST" GET = "GET" )
Variables ¶
View Source
var DataOK = "OK"
Functions ¶
This section is empty.
Types ¶
type RESTController ¶
type RESTController struct {
DBController *dbcontrollers.MYSQLController
}
func NewRESTController ¶
func NewRESTController() (*RESTController, error)
type ResponseData ¶
type ResponseData struct { Error string `json:"error" validation:"required"` Data interface{} `json:"data" validation:"required"` }
type ResponseWriter ¶
type ResponseWriter struct {
http.ResponseWriter
}
Click to show internal directories.
Click to hide internal directories.