apachepulsar

package
v0.0.0-...-94945d6 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PulsarSource

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

func NewPulsarSource

func NewPulsarSource(client pulsar.Client, adminClient pulsaradmin.Client, consumer pulsar.Consumer) *PulsarSource

func (*PulsarSource) Ack

func (ps *PulsarSource) Ack(ctx context.Context, request sourcesdk.AckRequest)

func (*PulsarSource) Partitions

func (ps *PulsarSource) Partitions(ctx context.Context) []int32

func (*PulsarSource) Pending

func (ps *PulsarSource) Pending(_ context.Context) int64

func (*PulsarSource) Read

func (ps *PulsarSource) Read(_ context.Context, readRequest sourcesdk.ReadRequest, messageCh chan<- sourcesdk.Message)

Jump to

Keyboard shortcuts

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