kafka

package
v0.0.0-...-86dbffa Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 4 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) (event.Sender, error)

func NewMessage

func NewMessage(topic string, key string, value []byte) event.Event

Types

type Message

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

func (*Message) Key

func (m *Message) Key() string

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