jetstream

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package jetstream package implements the watermark progression using Jetstream as the KV store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKVJetStreamKVStore

func NewKVJetStreamKVStore(ctx context.Context, pipelineName string, bucketName string, client *jsclient.NATSClient, opts ...JSKVStoreOption) (store.WatermarkKVStorer, error)

NewKVJetStreamKVStore returns KVJetStreamStore.

func NewKVJetStreamKVWatch

func NewKVJetStreamKVWatch(ctx context.Context, pipelineName string, kvBucketName string, client *jsclient.NATSClient, opts ...Option) (store.WatermarkKVWatcher, error)

NewKVJetStreamKVWatch returns KVJetStreamWatch specific to JetStream which implements the WatermarkKVWatcher interface.

Types

type JSKVStoreOption

type JSKVStoreOption func(*jetStreamStore) error

JSKVStoreOption is to pass in JetStream options.

type Option added in v0.9.0

type Option func(*options)

Option is a function on the options kv watcher

func WithWatcherCreationThreshold added in v0.9.0

func WithWatcherCreationThreshold(d time.Duration) Option

WithWatcherCreationThreshold sets the watcherCreationThreshold

Jump to

Keyboard shortcuts

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