change for the context keys

This commit is contained in:
MohitKatare-protean
2025-04-03 12:35:13 +05:30
parent a2c27b4fbf
commit 0ee2010338
3 changed files with 12 additions and 7 deletions

View File

@@ -38,10 +38,13 @@ const (
UnaAuthorizedHeaderGateway string = "Proxy-Authenticate"
)
type contextKey string
type ContextKey string
// MsgIDKey is the context key used to store and retrieve the message ID in a request context.
const MsgIDKey = contextKey("message_id")
const MsgIDKey = ContextKey("message_id")
// SubscriberIDKey is the context key used to store and retrieve the subscriber ID in a request context.
const SubscriberIDKey = ContextKey("subscriber_id")
// Role defines the type of participant in the network.
type Role string