Documentation ¶
Index ¶
- func AddRoutes(m *mux.Router)
- func CurrentVisitors(w http.ResponseWriter, r *http.Request)
- func E505(w http.ResponseWriter, err error)
- func JSON(w http.ResponseWriter, body interface{}, code int)
- func Ok(w http.ResponseWriter, body interface{})
- func Respond(w http.ResponseWriter, body []byte, code int)
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentVisitors ¶
func CurrentVisitors(w http.ResponseWriter, r *http.Request)
func E505 ¶
func E505(w http.ResponseWriter, err error)
func JSON ¶
func JSON(w http.ResponseWriter, body interface{}, code int)
func Ok ¶
func Ok(w http.ResponseWriter, body interface{})
Types ¶
Click to show internal directories.
Click to hide internal directories.