Skip to main content

Module input

Module input 

Source
Expand description

Boundary validation and safe endpoint formatting.

Constants§

MAX_PAYLOAD_JSON_BYTES
Maximum serialized JSON payload size in bytes.
MAX_TOPIC_NAME_BYTES
Maximum accepted topic name length in bytes.

Functions§

map_broker_connect_err
Broker connect failure labeled with a redacted endpoint and redacted source text.
redact_credentials_in_text
Redact scheme://userinfo@host substrings embedded in free-form error text.
redact_endpoint
Remove URL userinfo before placing an endpoint in an error or log message.
validate_payload_size
Reject payloads whose serialized JSON representation exceeds the transport limit.
validate_topic_name
Validate a Photon topic name before it reaches a storage adapter.