cons

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Artistic-2.0 Imports: 6 Imported by: 4

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 New

func New() *Consumer

func (*Consumer) NewConsumer

func (this *Consumer) NewConsumer(servers []string, groupName string) error

func (*Consumer) NewCustomConsumer

func (this *Consumer) NewCustomConsumer(opts ...consumer.Option) error

func (*Consumer) Shutdown

func (this *Consumer) Shutdown() error

func (*Consumer) Start

func (this *Consumer) Start() error

func (*Consumer) Subscribe

func (this *Consumer) Subscribe(topic string, _receiver OnReceiver) error

type OnReceiver

type OnReceiver func(msg *primitive.MessageExt)

Jump to

Keyboard shortcuts

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