Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrQueueNotFound is returned when a queue is not found. ErrQueueNotFound = fmt.Errorf("queue not found") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
RedisClient *redis.Client
}
Client is used to manage key-value pairs in Redis.
func (*Client) Consume ¶
func (client *Client) Consume(ctx context.Context, queueName string, handler func(data []byte) error) error
Consume starts consuming messages from the given queue. It is non-blocking and will run in a separate goroutine.
func (*Client) GetListeners ¶
GetListeners returns the number of listeners for the given queue.
Click to show internal directories.
Click to hide internal directories.