sarama

package
v0.0.0-...-a28b157 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

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

func NewConsumer

func NewConsumer(groupID string, addr []string, topic string) (Consumer, error)

func (Consumer) Consume

func (c Consumer) Consume(f func([]byte) bool) error

type Producer

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

func NewProducer

func NewProducer(addrs []string) (Producer, error)

func (Producer) Close

func (p Producer) Close()

func (Producer) SendAsync

func (p Producer) SendAsync(msg []byte, key string, topic string) error

func (Producer) SendSync

func (p Producer) SendSync(msg []byte, key string, topic string) error

Jump to

Keyboard shortcuts

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