kafka

package
v0.0.0-...-0d0a0fb Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: GPL-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 Messager

type Messager struct {
	Writer *kafka.Writer
}

Messager interface for sending messages

func NewMessager

func NewMessager(messagingURL, messagingTopic string) *Messager

NewMessager returns a kafka writer to send messages

func (*Messager) Close

func (m *Messager) Close()

Close - shutdown

func (*Messager) Send

func (m *Messager) Send(ctx context.Context, key string, value []byte) error

Send - pushes a new message to kafka

Jump to

Keyboard shortcuts

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