Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RESTError ¶
type RESTError struct { Message string `json:"message"` Description string `json:"description,omitempty"` Details string `json:"details"` }
RESTError is the standard structure for rest api errors
type RESTServer ¶
type RESTServer struct {
// contains filtered or unexported fields
}
func NewRestServer ¶
func (*RESTServer) Router ¶
func (rs *RESTServer) Router() *httprouter.Router
func (*RESTServer) SaveFiles ¶
func (rs *RESTServer) SaveFiles(r *http.Request, ps httprouter.Params) *RouteReply
func (*RESTServer) Status ¶
func (rs *RESTServer) Status(r *http.Request, ps httprouter.Params) *RouteReply
func (*RESTServer) Stop ¶
func (rs *RESTServer) Stop() error
type RouteHandler ¶
type RouteHandler func(*http.Request, httprouter.Params) *RouteReply
type RouteReply ¶
Click to show internal directories.
Click to hide internal directories.