store

package
v1.0.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

The memory store provides a store that can be used for testing and single-threaded applications. DO NOT USE this in a production application where persistence beyond a single application lifecycle is necessary or when there are multiple consumers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	sync.Map
}

func New

func New() *Store

func (*Store) GetCheckpoint

func (c *Store) GetCheckpoint(streamName, shardID string) (string, error)

func (*Store) SetCheckpoint

func (c *Store) SetCheckpoint(streamName, shardID, sequenceNumber string) error

Jump to

Keyboard shortcuts

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