factory

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package factory builds vMCP-specific rate-limit middleware.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMiddleware

func NewMiddleware(
	_ context.Context,
	cfg Config,
) (func(http.Handler) http.Handler, func(context.Context) error, error)

NewMiddleware creates Redis-backed rate-limit middleware for vMCP.

Types

type Config

type Config struct {
	Namespace      string
	ServerName     string
	RateLimiting   *ratelimittypes.RateLimitConfig
	SessionStorage *vmcpconfig.SessionStorageConfig
}

Config contains the vMCP rate-limit middleware inputs.

Jump to

Keyboard shortcuts

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