kafka

package
v1.14.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 10 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) GetComponentMetadata added in v1.11.0

func (p *PubSub) GetComponentMetadata() (metadataInfo metadata.MetadataMap)

GetComponentMetadata returns the metadata of the component.

func (*PubSub) Init added in v1.8.0

func (p *PubSub) Init(ctx context.Context, 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