redismq

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

func WithRedisGroup

func WithRedisGroup(group string) Option

type Options

type Options struct {
	Group string
}

type Queue

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

func New

func New(topic string, opts ...Option) *Queue

func (*Queue) Consume

func (q *Queue) Consume(ctx context.Context) (string, error)

Consume 消费队列中的信息.

func (*Queue) Produce

func (q *Queue) Produce(ctx context.Context, messages []string) error

Produce 生产消息到队列.

Jump to

Keyboard shortcuts

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