Structs§
- LogHeader
- Decoded header for one xlog block.
- SeqGenerator
- Async sequence generator matching Mars xlog semantics.
Enums§
- Append
Mode - Append path encoded into the xlog magic byte.
- Compression
Kind - Compression family encoded into the xlog magic byte.
- Protocol
Error - Errors returned by header decode/mutation helpers.
Constants§
- HEADER_
CLIENT_ PUBKEY_ OFFSET - Byte offset of the encoded client public key field.
- HEADER_
END_ HOUR_ OFFSET - Byte offset of the encoded end-hour field.
- HEADER_
LEN - Byte length of one encoded xlog header.
- HEADER_
LEN_ OFFSET - Byte offset of the encoded payload-length field.
- MAGIC_
ASYNC_ NO_ CRYPT_ ZLIB_ START - Magic byte for async + zlib + plaintext blocks.
- MAGIC_
ASYNC_ NO_ CRYPT_ ZSTD_ START - Magic byte for async + zstd + plaintext blocks.
- MAGIC_
ASYNC_ ZLIB_ START - Magic byte for async + zlib + encrypted blocks.
- MAGIC_
ASYNC_ ZSTD_ START - Magic byte for async + zstd + encrypted blocks.
- MAGIC_
END - Tail marker terminating a complete xlog block.
- MAGIC_
SYNC_ NO_ CRYPT_ ZLIB_ START - Magic byte for sync + zlib + plaintext blocks.
- MAGIC_
SYNC_ NO_ CRYPT_ ZSTD_ START - Magic byte for sync + zstd + plaintext blocks.
- MAGIC_
SYNC_ ZLIB_ START - Magic byte for sync + zlib + encrypted blocks.
- MAGIC_
SYNC_ ZSTD_ START - Magic byte for sync + zstd + encrypted blocks.
- TAILER_
LEN - Byte length of the trailing end marker.
Functions§
- magic_
start_ is_ valid - Return whether
magicis one of the supported xlog start markers. - select_
magic - Select the xlog magic byte for a
(compression, append mode, crypto)tuple. - update_
end_ hour_ in_ place - Update the encoded end-hour field inside an existing header.
- update_
log_ len_ in_ place - Add
add_lento the payload length stored in an encoded header.