package
1.0.0-rc.5
Repository: https://github.com/beneath-hq/beneath.git
Documentation: pkg.go.dev

# README

services/middleware/

This service creates and implements HTTP and GRPC server middleware for authentication, logging, rate limiting and more.

# Functions

GetSecret extracts the auth object from ctx.
GetTags extracts the tags object from ctx.
New creates a new middleware service.
SetTagsPayload sets the Payload field of middleware.GetTags(ctx).

# Structs

Service provides various useful HTTP and GRPC middlewares, eg.
Tags represents annotations on a request made available both up and down the middleware/interceptor chain (e.g., secrets set down the chain becomes available to logging middleware at the top of the chain).
TagsContextKey is the request context key for the request's Tags object.