kafka

package
v1.10.7 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKafka

func NewKafka(logger logger.Logger) pubsub.PubSub

NewKafka returns a new kafka pubsub instance.

Types

type PubSub added in v1.8.0

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

func (*PubSub) BulkPublish added in v1.10.1

BatchPublish messages to Kafka cluster.

func (*PubSub) BulkSubscribe added in v1.10.1

func (p *PubSub) BulkSubscribe(ctx context.Context, req pubsub.SubscribeRequest,
	handler pubsub.BulkHandler,
) error

func (*PubSub) Close added in v1.8.0

func (p *PubSub) Close() (err error)

func (*PubSub) Features added in v1.8.0

func (p *PubSub) Features() []pubsub.Feature

func (*PubSub) Init added in v1.8.0

func (p *PubSub) Init(metadata pubsub.Metadata) error

func (*PubSub) Publish added in v1.8.0

func (p *PubSub) Publish(ctx context.Context, req *pubsub.PublishRequest) error

Publish message to Kafka cluster.

func (*PubSub) Subscribe added in v1.8.0

func (p *PubSub) Subscribe(ctx context.Context, req pubsub.SubscribeRequest, handler pubsub.Handler) error

Jump to

Keyboard shortcuts

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