gomodule/redigo

Add high-level pubsub API

Open

#296 aberto em 22 de nov. de 2017

Ver no GitHub
 (1 comment) (5 reactions) (0 assignees)Go (1.116 forks)batch import
EnhancementHelp wanted

Métricas do repositório

Stars
 (7.782 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Add high-level pubsub API that accomplishes the following goals:

  • Hides receive loop from application, possibly by calling application supplied function to handle notifications.
  • Uses context.Context to cancel subscriptions.
  • Provides way for application to backfill after dialing and subscribing.
  • Uses ping to check for live connection and server.
  • Optional: support using pool to get connections.
  • Optional: subscribe/unsubscribe after running.

Guia do colaborador