mq

package
v1.7.10 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message interface {
	Body() []byte
	Ack() error
	NoAck() error
	ID() string
}

type Publisher

type Publisher interface {
	Publish(ctx context.Context, body []byte) error
}

type PublisherFactory

type PublisherFactory interface {
	NewPublisher(topic string) (Publisher, error)
}

type SubscriberRegister

type SubscriberRegister interface {
	Subscribe(ctx context.Context, subscription string, onMessage func(message Message) error) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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