publish

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublishOption

type PublishOption func(*publishOptions)

func IsSink added in v0.5.6

func IsSink() PublishOption

IsSink indicates it's a sink publisher

func IsSource added in v0.5.6

func IsSource() PublishOption

IsSource indicates it's a source publisher

func WithAutoRefreshHeartbeatDisabled added in v0.5.2

func WithAutoRefreshHeartbeatDisabled() PublishOption

func WithDelay added in v0.5.6

func WithDelay(t time.Duration) PublishOption

WithDelay sets the watermark delay

func WithPodHeartbeatRate

func WithPodHeartbeatRate(rate int64) PublishOption

type Publisher

type Publisher interface {
	// PublishWatermark publishes the watermark.
	PublishWatermark(processor.Watermark, isb.Offset)
	// GetLatestWatermark returns the latest published watermark.
	GetLatestWatermark() processor.Watermark
	// StopPublisher stops the publisher
	StopPublisher()
}

Publisher interface defines how to publish Watermark for a ProcessorEntity.

func NewPublish

func NewPublish(ctx context.Context, processorEntity processor.ProcessorEntitier, watermarkStores store.WatermarkStorer, inputOpts ...PublishOption) Publisher

NewPublish returns `Publish`.

Jump to

Keyboard shortcuts

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