redis

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const Name = "redis"

Name is the name registered for redis

Variables

This section is empty.

Functions

func MustNewProducer

func MustNewProducer(c *queue.Conf) queue.Pusher

func MustNewQueue

func MustNewQueue(c *queue.Conf) queue.MessageQueue

func NewConsumer

func NewConsumer(c *queue.Conf) (queue.MessageQueue, error)

func NewProducer

func NewProducer(c *queue.Conf) (queue.Pusher, error)

Types

type Consumer

type Consumer struct {
	// contains filtered or unexported fields
}

func (*Consumer) Close

func (c *Consumer) Close() error

func (*Consumer) Name

func (c *Consumer) Name() string

func (*Consumer) Subscribe

func (c *Consumer) Subscribe(topic string, handler queue.ConsumeHandle, opts ...queue.SubscribeOption) (queue.Subscriber, error)

type Producer

type Producer struct {
	// contains filtered or unexported fields
}

Producer 生产者

func (*Producer) Close

func (p *Producer) Close() error

func (*Producer) Name

func (p *Producer) Name() string

func (*Producer) Push

func (p *Producer) Push(ctx context.Context, topic string, key, value []byte) error

func (*Producer) PushWithPartition

func (p *Producer) PushWithPartition(ctx context.Context, topic string, key, value []byte, partition int32) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL