Documentation
¶
Index ¶
- func DeviceRoutes(store store.Store, parent logging.Logger) routing.Matcher
- func InternalRoutes(parent logging.Logger) routing.Matcher
- func SendError(logger logging.Logger, err *HTTPError) routing.Matcher
- func TotalsRoutes(store store.Store, parent logging.Logger) routing.Matcher
- type HTTPError
- type HealthVO
- type Server
- type StatusVO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPError ¶
type HTTPError struct {
Code int `json:"code"`
Message string `json:"message"`
Details string `json:"details,omitempty"`
}
func BadRequest ¶
func BadRequest() *HTTPError
func MethodNotAllowed ¶
func MethodNotAllowed() *HTTPError
func Unauthorized ¶
func Unauthorized() *HTTPError
Click to show internal directories.
Click to hide internal directories.