local

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package local provides filesystem and in-memory implementations of the application package's infrastructure ports for local SDD deployments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilesystemGraphStore

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

FilesystemGraphStore is the local canonical graph authority. It owns its revision cache and never requires callers to invalidate snapshots.

func NewFilesystemGraphStore

func NewFilesystemGraphStore(options FilesystemGraphStoreOptions) (*FilesystemGraphStore, error)

func (*FilesystemGraphStore) Apply

func (s *FilesystemGraphStore) Apply(ctx context.Context, expectedRevision string, batch app.MutationBatch, blobs app.StagedBlobReader) (app.ApplyResult, error)

func (*FilesystemGraphStore) Current

func (s *FilesystemGraphStore) Current(ctx context.Context) (*app.Snapshot, error)

func (*FilesystemGraphStore) ReadAttachmentPage

func (s *FilesystemGraphStore) ReadAttachmentPage(_ context.Context, entryID, filename string, offset int64, maxBytes int) (app.AttachmentPage, error)

func (*FilesystemGraphStore) Reconcile

func (s *FilesystemGraphStore) Reconcile(_ context.Context, mutationID, batchDigest string) (app.ApplyResult, error)

type FilesystemGraphStoreOptions

type FilesystemGraphStoreOptions struct {
	Project  app.ProjectID
	GraphDir string
}

type FilesystemSessionStore

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

FilesystemSessionStore persists each session as append-only JSONL. Events stay opaque and every append is version-CAS protected.

func NewFilesystemSessionStore

func NewFilesystemSessionStore(dir string) (*FilesystemSessionStore, error)

func (*FilesystemSessionStore) Append

func (s *FilesystemSessionStore) Append(_ context.Context, id app.SessionID, expectedVersion uint64, appendData app.SessionAppend) (uint64, error)

func (*FilesystemSessionStore) Create

func (*FilesystemSessionStore) List

func (*FilesystemSessionStore) Load

type FilesystemStagedBlobStore

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

func NewFilesystemStagedBlobStore

func NewFilesystemStagedBlobStore(dir string) (*FilesystemStagedBlobStore, error)

func (*FilesystemStagedBlobStore) Open

func (*FilesystemStagedBlobStore) Release

func (s *FilesystemStagedBlobStore) Release(_ context.Context, owner app.BlobOwner, retentionID string) error

func (*FilesystemStagedBlobStore) Retain

func (s *FilesystemStagedBlobStore) Retain(_ context.Context, owner app.BlobOwner, retentionID string, ids []string) error

func (*FilesystemStagedBlobStore) Stage

func (s *FilesystemStagedBlobStore) Stage(_ context.Context, owner app.BlobOwner, filename string, content io.Reader) (app.StagedBlob, error)

func (*FilesystemStagedBlobStore) Stat

type MemorySearchIndexStore

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

MemorySearchIndexStore is a process-local mechanical vector index. It is useful for embedded compositions that want root-owned lazy reconciliation without operating a separate persistent index service.

func NewMemorySearchIndexStore

func NewMemorySearchIndexStore() *MemorySearchIndexStore

func (*MemorySearchIndexStore) Manifest

func (*MemorySearchIndexStore) Nearest

func (s *MemorySearchIndexStore) Nearest(_ context.Context, namespaces []app.IndexNamespace, vector []float32, limit int) ([]app.ScoredChunkHit, error)

func (*MemorySearchIndexStore) Reconcile

func (s *MemorySearchIndexStore) Reconcile(_ context.Context, namespace app.IndexNamespace, _ string, upserts []app.IndexedChunk, deletes []string) error

Jump to

Keyboard shortcuts

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