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
}
const contextKey = "context"
const subscriberIDKey = "subscriber_id"
type keyType string
const (
contextKey keyType = "context"
subscriberIDKey keyType = "subscriber_id"
)
func NewPreProcessor(cfg *Config) (func(http.Handler) http.Handler, error) {
if err := validateConfig(cfg); err != nil {