目录

MoonJournalKit

Install and stream recovery

moon add Sxy11112/moonjournalkit
import {
  "Sxy11112/moonjournalkit" @journal,
}

///|
test {
  let decoder = @journal.StreamJournalDecoder::new(max_buffered=4096)
  let outcome = decoder.feed(b"")
  // Persist only complete records from outcome.records; retain the decoder for
  // its bounded partial tail.
  assert_true(outcome.stop is None)
}

The core accepts byte chunks only. A Native file adapter or browser storage adapter owns reading, writing, flush ordering, and truncation; MoonJournalKit owns portable framing, integrity, sequence, and recovery semantics.

关于
83.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802047560号