mq

package
v0.0.0-...-a88cfdc Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PushMessageStreamKey = "push_message_stream"
	PushMessageGroupKey  = "push_message_group"
)

Variables

This section is empty.

Functions

func InitConsumer

func InitConsumer(
	ctx context.Context,
	redisClient *redis.Client,
	logger *zap.Logger,
	stream, group string,
	consumerFunc redisqueue.ConsumerFunc,
) (*redisqueue.Consumer, error)

func InitProducer

func InitProducer(ctx context.Context, client *redis.Client) (*redisqueue.Producer, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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