messaging

package
v0.0.0-...-fe50809 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MIT Imports: 2 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 struct {
	Topic       string
	Key         string
	Payload     []byte
	Headers     map[string]string
	PublishTime time.Time
	EventTime   time.Time
}

type MessageConsumer

type MessageConsumer interface {
	Connect(topic string) error
	Consume(ctx context.Context) (
		Message,
		MessageProcessedCallback,
		MessageFailedCallback,
		error)
	Close()
}

type MessageFailedCallback

type MessageFailedCallback func()

type MessageProcessedCallback

type MessageProcessedCallback func()

type MessageProducer

type MessageProducer interface {
	Connect(topic string) error
	Produce(
		ctx context.Context,
		key string,
		data []byte) error
	Close()
}

Directories

Path Synopsis
Package mock_messaging is a generated GoMock package.
Package mock_messaging is a generated GoMock package.

Jump to

Keyboard shortcuts

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