Added test case for the contextKeys

This commit is contained in:
MohitKatare-protean
2025-04-03 15:17:02 +05:30
parent 0ee2010338
commit 01588fc866
2 changed files with 59 additions and 4 deletions

View File

@@ -40,11 +40,13 @@ const (
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 is the context key used to store and retrieve the message ID in a request context.
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")
// SubscriberIDKey is the context key used to store and retrieve the subscriber ID in a request context.
SubscriberIDKey = ContextKey("subscriber_id")
)
// Role defines the type of participant in the network.
type Role string