Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultErrorMessage = "Unexpected error."
Variables ¶
This section is empty.
Functions ¶
func ResponseHandler ¶
func ResponseHandler(f ServerFunc) http.HandlerFunc
Types ¶
type Response ¶
type Response struct { Error *Error `json:"error,omitempty"` Data interface{} `json:"data,omitempty"` }
type ServerFunc ¶
Click to show internal directories.
Click to hide internal directories.