Skip to main content

Module protocol

Module protocol 

Source
Expand description

AimX Protocol Types and Utilities

This module re-exports protocol types from aimdb-core and adds CLI-specific utilities for NDJSON serialization and convenience methods.

Structs§

ErrorObject
Error object in response
Event
Event message from server (subscription push)
EventMessage
Event message wrapper from subscription (for NDJSON parsing)
HelloMessage
Client hello message
RecordMetadata
Metadata about a registered record type
Request
Request message from client
WelcomeMessage
Server welcome message

Enums§

Response
Response message from server

Constants§

CLIENT_NAME
Client identifier
PROTOCOL_VERSION
Protocol version supported by this client

Traits§

RequestExt
CLI-specific convenience methods for Request
ResponseExt
CLI-specific convenience methods for Response

Functions§

cli_hello
Create default CLI hello message
parse_message
Helper to parse NDJSON line into message
serialize_message
Helper to serialize a message as NDJSON line