mq

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer interface {
	Start(ctx context.Context) error
	Close(ctx context.Context) error
	Subscribe(ctx context.Context, topic string, tag string, f func(context.Context, ...*ConsumerMessage) bool) error
	Unsubscribe(ctx context.Context, topic string) error
}

func NewConsumerRocket

func NewConsumerRocket(ctx context.Context, nameServer []string, namespace string, groupId string, options ...option.ConsumerFunc) (Consumer, error)

type ConsumerMessage

type ConsumerMessage = message.Consumer

type Producer

type Producer interface {
	Start(ctx context.Context) error
	Close(ctx context.Context) error
	SendMsg(ctx context.Context, topic string, msg *ProducerMessage) error
}

func NewProducerRocket

func NewProducerRocket(ctx context.Context, nameServer []string, namespace string, groupId string, options ...option.ProducerFunc) (Producer, error)

type ProducerMessage

type ProducerMessage = message.Producer

Directories

Path Synopsis
client

Jump to

Keyboard shortcuts

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