producer

package
v0.0.0-...-2a61a3c Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Types

type MessagePayload

type MessagePayload struct {
	MessageNumber int    `json:"message_number"`
	Timestamp     string `json:"timestamp"`
}

MessagePayload the JSON representation of the produced messages

type SeqProducer

type SeqProducer struct {
	Producer kafkaProducer
	// contains filtered or unexported fields
}

SeqProducer concrete ordered producer

func NewProducer

func NewProducer(cfg *config.Config) (*SeqProducer, error)

NewProducer returns a new and configured SeqProducer

func (*SeqProducer) Run

func (sp *SeqProducer) Run() error

Run runs the producer for sending configured messages

Jump to

Keyboard shortcuts

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