Skip to main content

Module server

Module server 

Source
Expand description

Reusable authenticated server for shared Tact memory.

MemoryServer authenticates each request before binding its namespace to a concrete crate::MemoryStore. It owns HTTP parsing, authorization, stable protocol errors, tracing, request timeouts, and concurrency limits. Backend implementations own durable transactions, indexing, capacity, telemetry, and stable export pagination.

Production deployments can bind PlanetScale, Cloudflare, PostgreSQL, or another store through the same crate::MemoryStore contract. The workspace’s tact-memory-cloudflare package demonstrates a Cloudflare Worker backed by D1.

Modules§

protocol
Versioned wire types shared by the remote client and reference server.

Structs§

Credential
A startup credential consumed by MemoryServer::new.
MemoryServer
A cloneable authenticated server for a concrete namespace-bound store type.

Enums§

CredentialError
Failure to construct a startup credential.
ServerBuildError
Failure to assemble the server’s authentication table.