middlewares

package
v0.9.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: AGPL-3.0 Imports: 13 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 log.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) EventsRateLimiter

ProvideEventsRateLimiter is a wire provider for events endpoints rate limiter.

type Logger

type Logger fiber.Handler

func ProvideLogger

func ProvideLogger(logger log.Logger) Logger

ProvideLogger define a wire provider for logger middleware.

type LoggerKey

type LoggerKey struct{}

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