package valkey

  1. Overview
  2. Docs

Module Valkey.Resp3_parserSource

RESP3 parser. Streamed aggregates raise Parse_error for now.

Sourceexception Parse_error of string
Sourcetype byte_source = {
  1. any_char : unit -> char;
  2. line : unit -> string;
  3. take : int -> string;
}

Abstract byte producer. The parser is agnostic over the source: a plain Eio.Buf_read.t (see of_buf_read) or a cross-domain byte channel fed by a separate IO fiber.

Sourceval of_buf_read : Eio.Buf_read.t -> byte_source