internal

package
v0.0.0-...-182a182 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 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 Message

type Message struct {
	*kafka.Message
}

func NewMessage

func NewMessage(msg *kafka.Message) *Message

func (*Message) GetHeader

func (m *Message) GetHeader(key string) string

func (*Message) SetHeader

func (m *Message) SetHeader(key, val string)

type MessageCarrier

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

MessageCarrier injects and extracts traces from a types.Message.

func NewMessageCarrier

func NewMessageCarrier(msg *Message) MessageCarrier

NewMessageCarrier returns a new MessageCarrier.

func (MessageCarrier) Get

func (m MessageCarrier) Get(key string) string

Get returns the value associated with the passed key.

func (MessageCarrier) Keys

func (m MessageCarrier) Keys() []string

Keys lists the keys stored in this carrier.

func (MessageCarrier) Set

func (m MessageCarrier) Set(key string, value string)

Set stores the key-value pair.

Jump to

Keyboard shortcuts

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