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 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`.
Click to show internal directories.
Click to hide internal directories.