Documentation ¶
Overview ¶
Package redis is a wrapper of the original "github.com/redis/go-redis" library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is redis pubsub client.
func NewFromGoRedis ¶
func NewFromGoRedis(client *redis.Client) *Client
NewFromGoRedis to create pubsub from go-redis client.
func NewWithConfig ¶
NewWithConfig to create pubsub from go-redis options.
func (*Client) Subscribe ¶
func (c *Client) Subscribe(ctx context.Context, channel string, handlerFunc pubsub.HandlerFunc) error
Subscribe to subscribe channel.
func (*Client) Use ¶ added in v0.24.0
func (c *Client) Use(middlewares ...func(pubsub.HandlerFunc) pubsub.HandlerFunc)
Use to add pubsub middlewares.
Click to show internal directories.
Click to hide internal directories.