flowstore

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

README

flowstore

github.com/looprig/flow/store is the optional adapter from the neutral storage.Ledger interface to Flow's durable CheckpointStore. It persists a versioned, bounded JSON envelope under the canonical ledger name flow/runs/<graph-run-id> and translates definite ledger conflicts into Flow revision conflicts.

Construction is backend-neutral:

checkpoints := flowstore.New(ledger)

Policy53 supplies an fsstore.Ledger; a distributed deployment may supply a different conforming ledger. This module does not import or recommend NATS.

The adapter rejects unknown JSON fields, trailing data, oversized records, excessive nesting, run-identity mismatches, and sequence/revision mismatches.

Documentation

Overview

Package flowstore adapts the neutral storage.Ledger contract to Flow's append-only checkpoint store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ledger storage.Ledger) flow.CheckpointStore

New constructs a Flow checkpoint store over exactly one neutral Ledger. Concrete backends such as fsstore are supplied by the caller.

Types

This section is empty.

Jump to

Keyboard shortcuts

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