rocket

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: 9 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 struct {
	// contains filtered or unexported fields
}

func NewConsumer

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

func (*Consumer) Close

func (c *Consumer) Close(ctx context.Context) error

func (*Consumer) Start

func (c *Consumer) Start(ctx context.Context) error

func (*Consumer) Subscribe

func (c *Consumer) Subscribe(ctx context.Context, topic string, tag string, f func(context.Context, ...*message.Consumer) bool) error

func (*Consumer) Unsubscribe

func (c *Consumer) Unsubscribe(ctx context.Context, topic string) error

type Producer

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

func NewProducer

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

func (*Producer) Close

func (p *Producer) Close(ctx context.Context) error

func (*Producer) SendMsg

func (p *Producer) SendMsg(ctx context.Context, topic string, msg *message.Producer) error

func (*Producer) Start

func (p *Producer) Start(ctx context.Context) error

type ProducerHashSelector

type ProducerHashSelector struct {
	RoundRobin producer.QueueSelector
}

func NewProducerHashSelector

func NewProducerHashSelector() *ProducerHashSelector

func (*ProducerHashSelector) Select

Jump to

Keyboard shortcuts

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