Source File
handler.go
Belonging Package
github.com/redis/go-redis/v9/push
package pushimport ()// NotificationHandler defines the interface for push notification handlers.type NotificationHandler interface {// HandlePushNotification processes a push notification with context information.// The handlerCtx provides information about the client, connection pool, and connection// on which the notification was received, allowing handlers to make informed decisions.// Returns an error if the notification could not be handled.HandlePushNotification(ctx context.Context, handlerCtx NotificationHandlerContext, notification []interface{}) error}
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |