Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAuthToken ¶
func CheckAuthToken(logger golog.Logger, cfg config.Config, r *http.Request) (*auth.AuthToken, resp.Responder)
CheckAuthToken ensures an API authentication token is provided via the "Authorization" header. If present the auth token will be returned. Otherwise a response which sends an error will be returned.
func DecodeJSON ¶
DecodeJSON decodes a JSON formatted request body. Returns an ErrorResponder if an error occurs while decoding the body.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.