Added test case for the contextKeys
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user