store

package
v1.2.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JetStreamOTKVName added in v0.10.0

func JetStreamOTKVName(bucketName string) string

func JetStreamProcessorKVName added in v0.10.0

func JetStreamProcessorKVName(bucketName string) string

Types

type WatermarkStore added in v0.10.0

type WatermarkStore interface {
	io.Closer
	HeartbeatStore() kvs.KVStorer
	OffsetTimelineStore() kvs.KVStorer
}

WatermarkStore defines a pair of heartbeat KV store and offset timeline KV store

func BuildInmemWatermarkStore added in v0.10.0

func BuildInmemWatermarkStore(ctx context.Context, bucket string) (WatermarkStore, error)

BuildInmemWatermarkStore returns an in-mem WatermarkStore instance, and the HB, OT entry channels

func BuildJetStreamWatermarkStore added in v0.10.0

func BuildJetStreamWatermarkStore(ctx context.Context, bucket string, client *jsclient.Client) (WatermarkStore, error)

BuildJetStreamWatermarkStore returns a JetStream WatermarkStore instance

func BuildNoOpWatermarkStore added in v0.10.0

func BuildNoOpWatermarkStore() (WatermarkStore, error)

BuildNoOpWatermarkStore returns a NoOp WatermarkStore instance

Jump to

Keyboard shortcuts

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