Skip to main content

Module keypos

Module keypos 

Source
Expand description

Per-token position records collected by the protocol parsers.

The Redis and Memcached parsers identify keys and other argument tokens inside the wire bytes and surface them on Msg for the cluster, fragmenter, and repair layers to consume. This module defines the two record shapes those parsers emit.

KeyPos carries a full key plus an inner sub-range that identifies the routing tag (the portion between the optional hash-tag delimiters). ArgPos carries a single non-key argument or response token.

Structsยง

ArgPos
Position record for one non-key argument or response token.
KeyPos
Position record for one parsed key.