kafka

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Heartbeater

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

func NewHeartbeater

func NewHeartbeater(client heartbeatProvider) Heartbeater

func (Heartbeater) Heartbeat

func (h Heartbeater) Heartbeat(ctx context.Context, req *kafka.HeartbeatRequest, invoker string) (*kafka.HeartbeatResponse, error)

type Reader

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

func NewReader

func NewReader(reader readerProvider) Reader

func (Reader) Close

func (r Reader) Close(invoker string) error

func (Reader) ReadMessage

func (r Reader) ReadMessage(ctx context.Context, invoker string) (kafka.Message, error)

type Writer

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

func NewWriter

func NewWriter(writer writerProvider) Writer

func (Writer) Close

func (w Writer) Close(invoker string) error

func (Writer) WriteMessages

func (w Writer) WriteMessages(ctx context.Context, msgs []kafka.Message, invoker string) error

Jump to

Keyboard shortcuts

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