type Val

bend-kit-redis@0.3.0.0 · redis.bend:7

import bend-kit-redis@0.3.0.0/redis.bend as Redis
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

7# A RESP3 value (RESP2 replies decode into the same type). Text fields hold the raw
8# bytes of the line. Dict (a RESP3 map) and Attr keep their pairs flat, key then value, as
9# on the wire and in hiredis. Attr holds the attribute pairs, then the reply they annotate, last.
10# Int is a signed 64-bit integer as two's-complement words.
11type Val is Type:
12  Simple{text: Bytes.Bytes}
13  Error{text: Bytes.Bytes}
14  Int{hi: U32, lo: U32}
15  Bulk{data: Bytes.Bytes}
16  Arr{items: List<&1, Val>}
17  Null{}
18  Boolean{value: Bool}
19  Double{text: Bytes.Bytes}
20  BigNum{text: Bytes.Bytes}
21  BulkError{text: Bytes.Bytes}
22  Verbatim{format: Bytes.Bytes, text: Bytes.Bytes}
23  Dict{items: List<&1, Val>}
24  Set{items: List<&1, Val>}
25  Attr{items: List<&1, Val>}
26  Push{items: List<&1, Val>}

Uses (4)

Used by (38)