middleware

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package middleware contains saddle-level related middleware which utilizes the Echo framework.

Index

Constants

View Source
const (
	// CTXRequest contains the key in which the request payload is attached and referenced to the request context.
	CTXRequest = "ctxRequest"
	// CTXRequestID contains the key in which the request id is attached and referenced to the request context.
	CTXRequestID = "ctxRequestID"
)

Variables

This section is empty.

Functions

func RequestID

func RequestID() fiber.Handler

RequestID handles any referenced request ID attached to an incoming request; will construct and attach a new ID to the incoming request if it does not already exist.

func RequestLog

func RequestLog(logger *log.Logger) fiber.Handler

RequestLog creates a middleware that logs request start and end times, along with latency.

func Validate

func Validate(v *validator.Validate) fiber.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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