middleware

package
v0.27.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// HeaderUserID is the HTTP header where the user ID is stored.
	HeaderUserID = "X-ID"
	// HeaderTenantID is the HTTP header where the tenant ID is stored.
	HeaderTenantID = "X-Tenant-ID"
)

Variables

This section is empty.

Functions

func Log

func Log(next echo.HandlerFunc) echo.HandlerFunc

func NewSlogLogger

func NewSlogLogger(logger *logrus.Entry) *slog.Logger

NewSlogLogger returns the logger Echo writes its internals to, backed by logrus so the framework's own messages land in the same stream and format as everything else ShellHub logs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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