restcontrollers

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserPathAdd               = "/add-user"
	UserPathGetByID           = "/get-user-by-id"
	UserPathGetByEmail        = "/get-user-by-email"
	UserPathGetMultiple       = "/get-users"
	UserPathUpdateSettings    = "/update-user-settings"
	UserPathUpdateAssets      = "/update-user-assets"
	UserPathDeleteByID        = "/delete-user"
	UserPathAuthenticate      = "/authenticate"
	UserPathAddProductUser    = "/add-product-user"
	UserPathDeleteProductUser = "/delete-product-user"
)
View Source
const (
	ProductPathAdd           = "/add-product"
	ProductPathGetByID       = "/get-product-by-id"
	ProductPathGetMultiple   = "/get-products"
	ProductPathUpdateDetails = "/update-product-details"
	ProductPathUpdateAssets  = "/update-product-assets"
	ProductPathDeleteByID    = "/delete-product"
)
View Source
const (
	ProjectPathAdd                  = "/add-project"
	ProjectPathGetByID              = "/get-project"
	ProjectPathGetMultiple          = "/get-projects"
	ProjectPathUpdateDetails        = "/update-project-details"
	ProjectPathUpdateAssets         = "/update-project-assets"
	ProjectPathGetProductProject    = "/get-product-projects"
	ProjectPathDelete               = "/delete-project"
	ProjectPathAddViewer            = "/add-project-viewer"
	ProjectPathGetViewerByUser      = "/get-project-viewer-by-user"
	ProjectPathGetViewerByViewer    = "/get-project-viewer-by-viewer"
	ProjectPathDeleteViewerByUser   = "/delete-project-viewer-by-user"
	ProjectPathDeleteViewerByViewer = "/delete-project-viewer-by-viewer"
)
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 Request added in v0.0.17

type Request struct {
	*http.Request
}

type ResponseData added in v0.0.20

type ResponseData struct {
	Error string      `json:"error" validation:"required"`
	Data  interface{} `json:"data" validation:"required"`
}

type ResponseWriter added in v0.0.17

type ResponseWriter struct {
	http.ResponseWriter
}

Jump to

Keyboard shortcuts

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