# Functions
DecodeResponse decodes the HTTP response and returns the response, or error.
IsApiError -- return true if err is/has an *ErrorResponse.
NewHTTPGinPlugin returns a HandlerFuncWrapper (which is a plugin), that delegates gin requests at the path to the given endpoint.
ToApiError given error will return the ErrorResponse that implements err if it is an ErrorResponse, nil otherwise.
# Structs
ErrorResponse is only for errors.
HandlerFuncWrapper wraps a handlerFunc in an HTTPGinPlugin object interface -- it adapts handler functions to the interface.
Message is a message from the API.
OkayResponse is a response with no error (not necessarily just 200).
# Interfaces
GinEndpointHandler is an interface for an object that can deal with GIN endpoints (i.e.
HTTPGinPlugin is an interface to allow for GIN HTTP handlers to be used as plugins.