producer

package
v0.0.0-...-07ad8dd Latest Latest
Warning

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

Go to latest
Published: May 5, 2018 License: BSD-2-Clause Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProduceFailed    = errors.New("produce failed")
	ErrNoValidPartition = errors.New("no valid partition")
)

Functions

This section is empty.

Types

type P

type P struct {
	RequiredAcks proto.ProduceAckType
	AckTimeout   time.Duration
	Cluster      model.Cluster
	// contains filtered or unexported fields
}

func New

func New(cluster model.Cluster) *P

func (*P) Produce

func (p *P) Produce(topic string, key, value []byte) error

func (*P) ProduceMessageSet

func (p *P) ProduceMessageSet(topic string, messageSet proto.MessageSet) error

func (*P) ProduceWithPartition

func (p *P) ProduceWithPartition(topic string, partition int32, key, value []byte) error

Jump to

Keyboard shortcuts

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