message_queue

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageQueueClient

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

func NewMessageQueueClient

func NewMessageQueueClient(client *redis.Client) *MessageQueueClient

func (*MessageQueueClient) Options added in v1.1.0

func (mq *MessageQueueClient) Options() *redis.Options

func (*MessageQueueClient) Publish

func (mq *MessageQueueClient) Publish(channel string, message any) error

func (*MessageQueueClient) Subscribe

func (mq *MessageQueueClient) Subscribe(ctx context.Context, onMessage func(*redis.Message), channels ...string) (string, error)

func (*MessageQueueClient) UnSubscribe

func (mq *MessageQueueClient) UnSubscribe(subscribeId string)

Jump to

Keyboard shortcuts

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