reqpreprocessor

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPreProcessor

func NewPreProcessor(cfg *Config) (func(http.Handler) http.Handler, error)

NewPreProcessor returns a middleware that processes the incoming request, extracts the context field from the body, and adds relevant values (like subscriber ID).

Types

type Config

type Config struct {
	Role        string
	ContextKeys []string
}

Config represents the configuration for the request preprocessor middleware.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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