package
0.0.0-20221214063633-643a6506ebce
Repository: https://github.com/intel/rsp-sw-toolkit-im-suite-alert-service.git
Documentation: pkg.go.dev

# Functions

Error handles all error responses for the API.
Respond sends JSON to the client.
RespondError sends JSON describing the error.

# Constants

KeyValues is how request values or stored/retrieved.

# Variables

ErrDBNotConfigured occurs when the DB is not initialized.
ErrInvalidID occurs when an ID is not in a valid form.
ErrInvalidInput occurs when the input data is invalid.
ErrNotAuthorized occurs when the call is not authorized.
ErrNotFound is abstracting the mgo not found error.
ErrValidation occurs when there are validation errors.

# Structs

ContextValues used during log.
JSONError is the response for errors that occur within the API.

# Type aliases

Handler is a type that handles a http request.
A Middleware is a type that wraps a handler to remove boilerplate or other concerns not direct to any given Handler.