~/bend-docscommunity

src/coordinator/OwnerCursorCodec.bend checks

raw source on the hub · import mylsm-lsm-store@0.6.0.2/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.

type NextDecision source · line 13 · raw

Type

Reports one decoded cursor frame or a rejected next response.

type CloseDecision source · line 19 · raw

Data

Reports whether an owner acknowledged cursor closure with an exact body.

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:0x7586b743ff7fd05e412d5115859629b6/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:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/CursorCodec.Decision -> NextDecision

Converts one exact cursor frame decode into a typed client decision.

def next source · line 45 · raw

@status:0x7586b743ff7fd05e412d5115859629b6/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:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Protocol.ResponseStatus -> @payload:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> CloseDecision

Accepts cursor close only when success carries no trailing payload.