kafka

package
v1.9.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 4 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) 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(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