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.Get("/_cron/expire", app.CreateHandler(expire)) }