continuation

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package continuation contains the small durable continuation adapter used by the standard contract tests and local deployments. It owns no goroutines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStore

type FileStore struct {
	// contains filtered or unexported fields
}

FileStore is a synchronous, restart-capable Store backed by one atomically replaced JSON file. It is intentionally not a general database. The file requests mode 0600; Windows ACL inheritance is a deployment responsibility, so this adapter does not claim native-reference confidentiality.

func NewFileStore

func NewFileStore(path string, limits lipcont.StorageLimits) (*FileStore, error)

NewFileStore opens or creates path and loads all previously committed state.

func (*FileStore) Close

func (s *FileStore) Close() error

Close idempotently closes the store and rejects subsequent operations.

func (*FileStore) Delete

func (s *FileStore) Delete(ctx context.Context, scope lipcont.Scope, id lipcont.ResponseID) error

Delete removes committed and reserved state idempotently.

func (*FileStore) Get

Get performs a scoped terminal lookup with lazy expiry cleanup.

func (*FileStore) PutTerminal

func (s *FileStore) PutTerminal(ctx context.Context, record lipcont.ContinuationRecord) error

PutTerminal commits a completed eligible record and consumes its reservation.

func (*FileStore) Reserve

func (s *FileStore) Reserve(ctx context.Context, scope lipcont.Scope, policy lipcont.StoragePolicy) (lipcont.ResponseID, error)

Reserve allocates and durably records a scoped proxy ID.

Jump to

Keyboard shortcuts

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