middleware

package
v3.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package middleware contains specific middleware for Telemetry's server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatabaseFromContext

func DatabaseFromContext(ctx context.Context) *gorm.DB

DatabaseFromContext returns the database instance customized for this request.

func DatabaseMiddleware

func DatabaseMiddleware(con *gorm.DB) middlewareFunc

DatabaseMiddleware returns a middleware that injects the db into the context. This depends on the LoggingMiddleware so this must be applied after the LoggingMiddleware.

func SignatureVerifyMiddleware

func SignatureVerifyMiddleware(next http.Handler) http.Handler

SignatureVerifyMiddleware records timing metrics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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