Documentation ¶ Index ¶ func WriteJSON(data interface{}, w http.ResponseWriter) bool type Service Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func WriteJSON ¶ func WriteJSON(data interface{}, w http.ResponseWriter) bool WriteJSON data to a response writer returns false in case it wrote an error instead of the data Types ¶ type Service ¶ type Service interface { // Serve an endpoint and return if it was successfull Serve(path string, w http.ResponseWriter, r *http.Request) bool // Close any open connections Close() error } Service defines a simplistic per-endpoint service Source Files ¶ View all Source files service.go Directories ¶ Show internal Expand all Path Synopsis hourly-logs Click to show internal directories. Click to hide internal directories.