kafka

package
v0.0.0-...-acbaf2f Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKafkaReceiver

func NewKafkaReceiver(address []string, topic string) (event.Receiver, error)

func NewKafkaSender

func NewKafkaSender(address []string, topic string) (event.Sender, error)

func NewMessage

func NewMessage(key string, value []byte, header map[string]string) event.Message

Types

type Message

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

func (*Message) Header

func (m *Message) Header() map[string]string

func (*Message) Key

func (m *Message) Key() 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