Documentation
¶
Overview ¶
Package response providers support for returning http responses
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorCodeToStatusCode ¶
ErrorCodeToStatusCode maps an error code string to a http status code integer.
Types ¶
type Writer ¶
type Writer interface {
RespondWithError(w http.ResponseWriter, err error)
RespondWithJSON(w http.ResponseWriter, model interface{}, statusCode int)
}
Writer provides utility functions for responding to http requests
Click to show internal directories.
Click to hide internal directories.