src/coordinator/OwnerCursorCodec.bend checks
raw source on the hub · import mylsm-lsm-store@0.6.0.0/src/coordinator/OwnerCursorCodec.bend as OwnerCursorCodec
4 imports
import Base import ./Protocol.bend as Protocol import ./CursorCodec.bend as CursorCodec import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
Types
type OpenDecision source · line 7 · raw
Type
Reports one owner-issued cursor identifier or a rejected open response.
Opened@cursor_id:U32 -> OpenDecision
OpenRejected@status:0x8f9a5c58059f5db5361cb2eddb73ec7f/src/coordinator/Protocol.ResponseStatus -> OpenDecision
OpenMalformedOpenDecision
type NextDecision source · line 13 · raw
Type
Reports one decoded cursor frame or a rejected next response.
NextFrame@frame:0x8f9a5c58059f5db5361cb2eddb73ec7f/src/coordinator/CursorCodec.Frame -> NextDecision
NextRejected@status:0x8f9a5c58059f5db5361cb2eddb73ec7f/src/coordinator/Protocol.ResponseStatus -> NextDecision
NextMalformedNextDecision
type CloseDecision source · line 19 · raw
Data
Reports whether an owner acknowledged cursor closure with an exact body.
CloseSucceededCloseDecision
CloseRejected@status:0x8f9a5c58059f5db5361cb2eddb73ec7f/src/coordinator/Protocol.ResponseStatus -> CloseDecision
CloseMalformedCloseDecision
Definitions
def open.parsed source · line 26 · raw
@parsed:Maybe<&2, U32> -> OpenDecision
Decodes the owner cursor ID only from a successful exact token payload. Converts an exact token parse into a typed cursor-open decision.
def open source · line 32 · raw
@status:0x8f9a5c58059f5db5361cb2eddb73ec7f/src/coordinator/Protocol.ResponseStatus -> @payload:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> OpenDecision
Decodes a successful owner cursor-open response or preserves its rejection.
def next.decoded source · line 39 · raw
@decision:0x8f9a5c58059f5db5361cb2eddb73ec7f/src/coordinator/CursorCodec.Decision -> NextDecision
Converts one exact cursor frame decode into a typed client decision.
def next source · line 45 · raw
@status:0x8f9a5c58059f5db5361cb2eddb73ec7f/src/coordinator/Protocol.ResponseStatus -> @payload:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> NextDecision
Decodes a raw-byte cursor frame only from a successful owner response.
def close.measured source · line 52 · raw
@measured:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, U32) -> CloseDecision
Accepts one close payload only when its measured length is zero.
def close source · line 58 · raw
@status:0x8f9a5c58059f5db5361cb2eddb73ec7f/src/coordinator/Protocol.ResponseStatus -> @payload:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> CloseDecision
Accepts cursor close only when success carries no trailing payload.