MCPcopy
hub / github.com/redis/go-redis / pushNotificationHandlerContext

Method pushNotificationHandlerContext

redis.go:1776–1782  ·  view source on GitHub ↗

pushNotificationHandlerContext creates a handler context for push notification processing

(cn *pool.Conn)

Source from the content-addressed store, hash-verified

1774
1775// pushNotificationHandlerContext creates a handler context for push notification processing
1776func (c *baseClient) pushNotificationHandlerContext(cn *pool.Conn) push.NotificationHandlerContext {
1777 return push.NotificationHandlerContext{
1778 Client: c,
1779 ConnPool: c.connPool,
1780 Conn: cn, // Wrap in adapter for easier interface access
1781 }
1782}

Calls

no outgoing calls

Tested by

no test coverage detected