Documentation ¶
Index ¶
- func Start(listenAddress, version string) (*http.Server, error)
- func WriteErrorJSON(statusCode int, msg string, w http.ResponseWriter)
- func WriteJSON(statusCode int, data interface{}, w http.ResponseWriter)
- func WriteSuccessJSON(statusCode int, msg string, w http.ResponseWriter)
- type API
- type ResponseJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteErrorJSON ¶
func WriteErrorJSON(statusCode int, msg string, w http.ResponseWriter)
func WriteJSON ¶
func WriteJSON(statusCode int, data interface{}, w http.ResponseWriter)
func WriteSuccessJSON ¶
func WriteSuccessJSON(statusCode int, msg string, w http.ResponseWriter)
Types ¶
Click to show internal directories.
Click to hide internal directories.