Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
func Error(w http.ResponseWriter, status int, message string, err error)
Sends an error response without notifying new relic
func Success ¶
func Success(w http.ResponseWriter)
Sends a standard 200 response with a generic body
func SuccessWithBody ¶
func SuccessWithBody(w http.ResponseWriter, body interface{})
Sends a 200 response with JSON representation of provided body
Types ¶
type StatusStruct ¶
type StatusStruct struct {
Status string `json:"status"`
}
Click to show internal directories.
Click to hide internal directories.