middlewares

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessLog

type AccessLog fiber.Handler

func ProvideAccessLog

func ProvideAccessLog(cfg config.Server, logger zerolog.Logger) AccessLog

ProvideAccessLog define a wire provider for AccessLog middleware.

type ErrorHandler

type ErrorHandler fiber.Handler

func ProvideErrorHandler

func ProvideErrorHandler() ErrorHandler

ProvideErrorHandler is a wire provider for a simple error handler middleware.

type EventsCors

type EventsCors fiber.Handler

Cors middleware for /events handlers.

func ProvideEventsCors

func ProvideEventsCors() EventsCors

ProvideEventsCors is a wire provider for /events cors middleware.

type EventsRateLimiter

type EventsRateLimiter fiber.Handler

func ProvideEventsRateLimiter

func ProvideEventsRateLimiter(cfg config.Server, storage storage.Storage) EventsRateLimiter

ProvideEventsRateLimiter is a wire provider for events endpoints rate limiter.

type Metrics added in v0.15.0

type Metrics fiber.Handler

func ProvideMetrics added in v0.15.0

func ProvideMetrics(promRegistry *prometheus.Registry) Metrics

ProvideMetrics is a wire provider for HTTP metrics middleware.

type NonRegisteredOriginFilter added in v0.14.0

type NonRegisteredOriginFilter fiber.Handler

func ProvideNonRegisteredOriginFilter added in v0.14.0

func ProvideNonRegisteredOriginFilter(originRegistry originregistry.Service) NonRegisteredOriginFilter

ProvideNonRegisteredOriginFilter is wire provider for middleware that filter request with non registered origins.

type RequestId

type RequestId fiber.Handler

func ProvideRequestId

func ProvideRequestId(cfg config.Server) RequestId

ProvideRequestId define a wire provider for request id middleware.

type RequestIdKey

type RequestIdKey struct{}

type Static

type Static fiber.Handler

func ProvideStatic

func ProvideStatic(cfg config.Server) Static

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL