Bug Fix for ReqPreProcessor plugin

This commit is contained in:
tanyamadaan
2025-04-03 16:18:26 +05:30
parent 87329bfb9d
commit 159ff956d3

View File

@@ -16,8 +16,12 @@ type Config struct {
Role string Role string
} }
const contextKey = "context" type keyType string
const subscriberIDKey = "subscriber_id"
const (
contextKey keyType = "context"
subscriberIDKey keyType = "subscriber_id"
)
func NewPreProcessor(cfg *Config) (func(http.Handler) http.Handler, error) { func NewPreProcessor(cfg *Config) (func(http.Handler) http.Handler, error) {
if err := validateConfig(cfg); err != nil { if err := validateConfig(cfg); err != nil {