Documentation
¶
Overview ¶
Package utils has common utility methods that components can use for structuring http responses of their endpoints
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConnection ¶
GetConnection returns the connection for the request
func SetJSONError ¶
func SetJSONError(w http.ResponseWriter, err error, errorCode int)
SetJSONError writes a server error as JSON with the correct http error code
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.