types

package
v0.0.0-...-dc792b0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 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 {
	Offset    int64
	Key       []byte
	Value     []byte
	Timestamp time.Time
	Headers   []sarama.RecordHeader
}

A Message is used internally within naffka to store messages. It is converted to a sarama.ConsumerMessage when exposed to the public APIs to maintain API compatibility with sarama.

func (*Message) ConsumerMessage

func (m *Message) ConsumerMessage(topic string) *sarama.ConsumerMessage

Jump to

Keyboard shortcuts

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