Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondHttpJson ¶
func RespondHttpJson(out interface{}, httpCode int, w http.ResponseWriter)
Types ¶
type GenericResponse ¶
type GenericResponse struct { Status string `json:"status"` ErrorCode string `json:"error_code"` ErrorDescription string `json:"error_description"` }
func GenericError ¶
func GenericError(code string, err error) *GenericResponse
func GenericSuccess ¶
func GenericSuccess() *GenericResponse
Click to show internal directories.
Click to hide internal directories.