API Reference
Public API lookup for client authors and second-party developers.
Status: Placeholder — this directory is generated by
moon docin CI once the client surfaces freeze. TheOpand frame-boundary codec surfaces are live and locked bymoon info.
Current Public Surface (manual quick view)
protocolpackage: wire-protocol constants (9 items such asMAX_FRAME_LENandMAX_OK_RESULT_LEN) and the segmentedErrCoderegistry (ErrCode::from_uint16/ErrCode#to_uint16).protocolpackage:Opmaps the fifteen assigned operation bytes throughOp::from_byte/Op#to_byte; every reserved byte returnsNone.protocolpackage:decode_framereturnsNeed, a borrowingFrame, orDecodeError; unknown operations are rejected as soon as the five-byte header is visible.protocolpackage:WirePayloadcovers request, response, and server-push payloads for all fifteen operations;decode_wire_payload/encode_wire_payloadcheck field order, bounds, trailing bytes, and op matching.protocolpackage:decode_ws_messagedecodes the websocket frame subset -- binary data frames only, checked againstWsPeerdirection -- and returnsNeed, a borrowingMessage,PeerClose, orWsError;encode_ws_binary_frameandencode_ws_close_frameemit the server-side frames.storagepackage: the v0 record header uses the frozen 56-byte layout;decode_record_headerchecks length consistency, value bounds, reserved bytes, and replication kind.storagepackage:validate_segment_identitychecksMMQS, format version, and header version.storagepackage:encode_record_headercalculates CRC32C;decode_record_headerverifies CRC, key-present consistency, lengths, value bounds, reserved bits, and replication kind.harnesspackage: deterministicFakeClock,FakeNet,FakeDisk, andSplitMix64seams for virtual time, FIFO delivery, capability-aware faults, and reproducible randomness.harnesspackage:SimEnvbundles one clock, network, disk, and random stream under a single seed;reproducibleruns a scenario twice on fresh same-seed environments and reports agreement.brokerpackage:TopicRegistryholds the in-memory topic metadata behind DECLARE;declare_topicreplays an identical declaration idempotently and refuses a partition-count mismatch.netpackage: theConntrait (read_exact/write_all/close) is the byte-pipe seam for broker and cluster; thenet/tcppackage adds the nativeTcpConntransport withconnect.- Client, broker, storage-runtime, cluster, tooling, and benchmark surfaces are filled in by
moon doconce implemented.