func init() { var err error internalError, err = bencode.EncodeString(&errorResponse{ MinimumInterval: 60, Interval: 300, Reason: "Internal error. Please try again later.", }) if err != nil { panic("Error setting up internalError: " + err.Error()) } app.Get("/announce", app.CreateHandler(run)) }
func init() { app.Get("/_ah/warmup", app.CreateHandler(warmup)) }
func init() { app.Start() app.Get("/index", index) app.Post("/request", request) app.Get("/request", index) }
func init() { app.Get("/_cron/expire", app.CreateHandler(expire)) }