}, "mp4": func(cfg *config.Handler, l *types.Location, next types.RequestHandler) (types.RequestHandler, error) { return mp4.New(cfg, l, next) }, "pprof": func(cfg *config.Handler, l *types.Location, next types.RequestHandler) (types.RequestHandler, error) { return pprof.New(cfg, l, next) }, "proxy": func(cfg *config.Handler, l *types.Location, next types.RequestHandler) (types.RequestHandler, error) { return proxy.New(cfg, l, next) }, "purge": func(cfg *config.Handler, l *types.Location, next types.RequestHandler) (types.RequestHandler, error) { return purge.New(cfg, l, next) }, "status": func(cfg *config.Handler, l *types.Location, next types.RequestHandler) (types.RequestHandler, error) { return status.New(cfg, l, next) }, "throttle": func(cfg *config.Handler, l *types.Location, next types.RequestHandler) (types.RequestHandler, error) { return throttle.New(cfg, l, next) }, "via": func(cfg *config.Handler, l *types.Location, next types.RequestHandler) (types.RequestHandler, error) { return via.New(cfg, l, next) }, }
// This file is generated with go generate. Any changes to it will be lost after // subsequent generates. // If you want to edit it go to types.go.template package handler import ( "github.com/ironsmile/nedomi/handler/proxy" "github.com/ironsmile/nedomi/handler/status" "github.com/ironsmile/nedomi/types" ) type newHandlerFunc func() types.RequestHandler var handlerTypes = map[string]newHandlerFunc{ "proxy": func() types.RequestHandler { return proxy.New() }, "status": func() types.RequestHandler { return status.New() }, }