jetstream

package
v1.2.1 Latest Latest
Warning

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

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

Documentation

Overview

Package jetstream package implements the kv store and watcher using Jetstream.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKVJetStreamKVStore

func NewKVJetStreamKVStore(ctx context.Context, kvName string, client *jsclient.Client, opts ...Option) (kvs.KVStorer, error)

NewKVJetStreamKVStore returns KVJetStreamStore.

Types

type Option

type Option func(*options)

Option is a function on the options kv watcher

func WithWatcherCreationThreshold

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