Versions in this module Expand all Collapse all v2 v2.0.0 May 14, 2026 Changes in this version + const LatestVersion + var CfgCtxKey contextKey = "config" + var LogHelpCtxKey contextKey = "loghelp" + func AppendToHandlers(apiHandlers map[string]map[string]fiber.Handler, ...) + func ExtractVersion(header string) string + func GetErrorCode(err error) int + func HandleResponse(c *fiber.Ctx, obj any, err error) error + func Init[T any](app *fiber.App, ctx context.Context, cfg T, log *zerolog.Logger) + func MountVersionedRoutes(app *fiber.App, apiHandlers map[string]map[string]fiber.Handler, ...) + func RegisterAPIVersion[TRepo any, TController any, THandler any](app *fiber.App, repo TRepo, version string, ...) + func SetAnyResponse[T any](c *fiber.Ctx, err T, status int) error + func SetResponse(c *fiber.Ctx, body any, status int) error + func VersionPathMiddleware(defaultVersion string, skipPaths ...string) fiber.Handler + func VersionRouter(c *fiber.Ctx, apiHandlers map[string]map[string]fiber.Handler) error + type Error struct + Code int + Message string + type InternalServer struct + Err error + func (t InternalServer) Error() string + type InvalidInput struct + Err error + func (t InvalidInput) Error() string + type NotFound struct + Err error + func (t NotFound) Error() string + type Response struct + Data any + Error *Error + type TransientError struct + Err error + func (t TransientError) Error() string + type Unauthorized struct + Err error + func (t Unauthorized) Error() string