func New(cfg Config) *Handler {
	h := &Handler{
		logger: cfg.Logger,
		renderer: render.New(
			render.Options{StreamingJSON: true},
		),
		signer: cfg.Signer,
	}

	router := mux.NewRouter()
	router.Path("/get").
		Methods(http.MethodGet).
		Queries("key", "{key}").
		Handler(ochttp.WithRouteTag(
			http.HandlerFunc(h.get), "get"),
		)
	router.Path("/put").
		Methods(http.MethodGet).
		Handler(ochttp.WithRouteTag(
			http.HandlerFunc(h.put), "put",
		))
	router.Path("/delete").
		Queries("key", "{key}").
		Methods(http.MethodDelete).
		Handler(ochttp.WithRouteTag(
			http.HandlerFunc(h.delete), "delete",
		))
	router.Path("/download").
		Methods(http.MethodGet).
		Queries("key", "{key}", "fileName", "{filename}").
		Handler(ochttp.WithRouteTag(
			http.HandlerFunc(h.download), "download",
		))
	h.Handler = router
	return h
}
// New creates a new sign handler from config.
New creates a new sign handler from config.
// New creates a new sign handler from config .
func New(cfg Config) *Handler {
	h := &Handler{
		logger: cfg.Logger,
		renderer: render.New(
			render.Options{StreamingJSON: true},
		),
		signer: cfg.Signer,
	}
	router := mux.NewRouter()
	router.Path("/get").
		Methods(http.MethodGet).
		Queries("key", "{key}").
		Handler(ochttp.WithRouteTag(
			http.HandlerFunc(h.get), "get"),
		)
	router.Path("/put").
		Methods(http.MethodGet).
		Handler(ochttp.WithRouteTag(
			http.HandlerFunc(h.put), "put",
		))
	router.Path("/delete").
		Queries("key", "{key}").
		Methods(http.MethodDelete).
		Handler(ochttp.WithRouteTag(
			http.HandlerFunc(h.delete), "delete",
		))
	router.Path("/download").
		Methods(http.MethodGet).
		Queries("key", "{key}", "fileName", "{filename}").
		Handler(ochttp.WithRouteTag(
			http.HandlerFunc(h.download), "download",
		))
	h.Handler = router
	return h
}
func New ( cfg Config ) * Handler { h := & Handler { logger : cfg . Logger , renderer : render . New ( render . Options { StreamingJSON : true } , ) , signer : cfg . Signer , } router := mux . NewRouter ( ) router . Path ( " " ) . Methods ( http . MethodGet ) . Queries ( " " , " " ) . Handler ( ochttp . WithRouteTag ( http . HandlerFunc ( h . get ) , " " ) , ) router . Path ( " " ) . Methods ( http . MethodGet ) . Handler ( ochttp . WithRouteTag ( http . HandlerFunc ( h . put ) , " " , ) ) router . Path ( " " ) . Queries ( " " , " " ) . Methods ( http . MethodDelete ) . Handler ( ochttp . WithRouteTag ( http . HandlerFunc ( h . delete ) , " " , ) ) router . Path ( " " ) . Methods ( http . MethodGet ) . Queries ( " " , " " , " " , " " ) . Handler ( ochttp . WithRouteTag ( http . HandlerFunc ( h . download ) , " " , ) ) h . Handler = router return h }
New creates a new sign handler from config.
New creates a new sign handler from config .