producer

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marshaller

type Marshaller interface {
	MarshalKFK() ([]byte, error)
}

Marshaller is an interface to serialize messages to kfkTopics.

type Producer

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

Producer.

func New

func New(kafkaBrokers []string) (*Producer, error)

New.

func (Producer) HealthCheck

func (p Producer) HealthCheck(_ context.Context) bool

func (*Producer) Send

func (p *Producer) Send(topic, key string, message interface{}) error

Send a message to a topic to be scattered using the key.

Jump to

Keyboard shortcuts

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