Files
bifrost/transports/bifrost-http/handlers/devpprof_prod.go
Beyhan Oğur 880f412e2c first commit
2026-04-26 21:52:23 +03:00

24 lines
683 B
Go

//go:build !dev
package handlers
import (
"github.com/fasthttp/router"
"github.com/maximhq/bifrost/core/schemas"
)
// DevPprofHandler is a no-op stub for production builds (built without the "dev" tag).
type DevPprofHandler struct{}
// IsDevMode always returns false in production builds.
func IsDevMode() bool { return false }
// NewDevPprofHandler returns nil in production builds.
func NewDevPprofHandler() *DevPprofHandler { return nil }
// RegisterRoutes is a no-op in production builds.
func (h *DevPprofHandler) RegisterRoutes(_ *router.Router, _ ...schemas.BifrostHTTPMiddleware) {}
// Cleanup is a no-op in production builds.
func (h *DevPprofHandler) Cleanup() {}