Example #1
0
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))
}
Example #2
0
func init() {
	app.Get("/_ah/warmup", app.CreateHandler(warmup))
}
Example #3
0
func init() {
	app.Get("/_cron/expire", app.CreateHandler(expire))
}