Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseInt64 ¶
ParseInt64 helper to avoid code repetition
func WriteErrorJSON ¶
func WriteErrorJSON(w http.ResponseWriter, status int, message string)
WriteErrorJSON writes a json error
func WriteJSON ¶
func WriteJSON(w http.ResponseWriter, status int, v interface{})
WriteJSON writes json value
Types ¶
type StatusResponse ¶
type StatusResponse struct { Status string `json:"status"` Message string `json:"message,omitempty"` }
StatusResponse is a status response model
Click to show internal directories.
Click to hide internal directories.