Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Mux *mux.Router
)
Mux contains all the HTTP handlers
Functions ¶
func Danger ¶
func Danger(args ...interface{})
Danger will log information with "ERROR" prefix to logger
func ReportStatus ¶
func ReportStatus(w http.ResponseWriter, success bool, err *data.APIError)
ReportStatus is a helper function to return a JSON response indicating outcome success/failure
Types ¶
type Configuration ¶
type Configuration struct { Address string RedisURL string ReadTimeout int64 WriteTimeout int64 Static string }
Configuration stores config info of server
var Config Configuration
Config captures parsed input from config.json
Click to show internal directories.
Click to hide internal directories.