Crate limlog

source ·
Expand description

LIMLOG

Rust

High-performance log storage system for storing sequential messages and providing query functions, 64bit optimized.

Two log formats are available:

  1. <start_uuid>.limlog and <start_uuid>.idx are used to store sequential messages.
  2. TODO

Files Format

.limlog

  • header
FieldSize
magic_number8 bytes
attributes8 bytes
  • log
FieldSize
uuid16 bytes
body_len (u64 LE)8 bytes
bodybody_len bytes

.idx

  • header
FieldSize
magic_number8 bytes
attributes8 bytes
  • index item
FieldSize
uuid16 bytes
offset (u64 LE)8 bytes

Modules

Structs

  • A reader to read logs from a topic with [Stream] interface.
  • The topic which is used to read and write logs. Background task will keep running even if this struct is dropped. To stop the task, call stop or abort.
  • Builds Topic with custom configuration values.
  • A writer to write logs to a topic.

Enums

Functions

  • Try to decode from stream of bytes with bincode. Notice that this takes &[u8] instead of &mut &[u8], so cursor won’t be updated. Instead, bytes read will be returned along with the deserialized value.

Type Definitions