Skip to main content

Module protocol

Module protocol 

Source
Expand description

Native binary wire protocol types.

Shared between the server (nodedb) and the client (nodedb-client). All types derive Serialize/Deserialize for MessagePack encoding.

Structs§

AuthResponse
Successful auth response payload.
BatchDocument
A single document in a batch insert.
BatchVector
A single vector in a batch insert.
ErrorPayload
Error details in a response.
NativeRequest
A request sent from client to server over the native protocol.
NativeResponse
A response sent from server to client over the native protocol.
TextFields
Catch-all text fields used by most operations.

Enums§

AuthMethod
Authentication method in an Auth request.
OpCode
Operation codes for the native binary protocol.
RequestFields
Operation-specific request fields.
ResponseStatus
Status code in response frames.

Constants§

DEFAULT_NATIVE_PORT
Default server port for the native protocol.
FRAME_HEADER_LEN
Length of the frame header (4-byte big-endian u32 payload length).
MAX_FRAME_SIZE
Maximum frame payload size (16 MiB).