message

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 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 Header struct {
	// contains filtered or unexported fields
}

KafkaHeader es un adaptador para kafka.Header que implementa types.Header

func NewHeader

func NewHeader(header kafka.Header) *Header

func NewHeaderFromKV

func NewHeaderFromKV(key string, value string) *Header

func (*Header) Key

func (h *Header) Key() string

func (*Header) Value

func (h *Header) Value() string

type Message

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

func NewMessage

func NewMessage(msg *kafka.Message) *Message

func (*Message) Headers

func (m *Message) Headers() []types.Header

func (*Message) Key

func (m *Message) Key() []byte

func (*Message) Offset

func (m *Message) Offset() int64

func (*Message) Partition

func (m *Message) Partition() int

func (*Message) Topic

func (m *Message) Topic() string

func (*Message) Value

func (m *Message) Value() []byte

Jump to

Keyboard shortcuts

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