Skip to main content

Crate tsoracle_server

Crate tsoracle_server 

Source
Expand description

gRPC server for tsoracle.

Wires four pieces together:

  • tsoracle_core::Allocator — the sync window allocator.
  • A user-supplied tsoracle_consensus::ConsensusDriver — leadership state plus durable high-water persistence.
  • The tonic-generated TsoServiceServer from tsoracle-proto, mounted on GetTs and GetTsBatch.
  • The internal leader-watch pipeline and failover fence, which keep timestamps strictly monotonic across leader transitions.

Followers respond to RPCs with FAILED_PRECONDITION and a tsoracle-leader-hint-bin binary trailer; tsoracle-client consumes the hint to redirect without an extra round-trip.

Use Server::builder to embed in another binary, or use the tsoracle CLI from tsoracle-bin for a standalone process. The docs module contains the docs.rs-rendered operations chapter; the repo’s docs/key-subsystems.md covers the same internals in depth.

Modules§

docs
tsoracle guide

Macros§

failpoint

Structs§

Server
ServerBuilder

Enums§

BuildError
ServerError
ServingState