Expand description
Tools and types used to communicate with Sōzu.
Modules§
- buffer
- Custom buffer used for parsing within the Sōzu codebase.
- certificate
- TLS certificates
- channel
- channels used for communication between main process and workers
- config
- parse TOML config and generate requests from it
- logging
- custom made logging macros Sōzu logs, optimized for performance
- parser
- parse Requests
- proto
- Contains Rust types generated by
prost
using the protobuf definition incommand.proto
. - ready
- File descriptor readiness
- request
- Helper functions around types received by Sōzu
- response
- Helper functions around types sent by Sōzu
- scm_
socket - sockets used to pass file descriptors
- state
- A representation of Sōzu’s state
- writer
- A writer used for logging
Macros§
- _log
- _log_
access - _log_
enabled - _prompt_
log - _structured_
access_ log - debug
- log a debug with Sōzu’s custom log stack
- error
- log an error with Sōzu’s custom log stack
- error_
access - log a failure concerning an HTTP or TCP request
- fixme
- write a log with a “FIXME” prefix on an info level
- info
- log an info with Sōzu’s custom log stack
- info_
access - log the success of an HTTP or TCP request
- log_
access - dynamically chose between info_access and error_access
- setup_
test_ logger - start a logger used in test environment
- trace
- log a trace with Sōzu’s custom log stack
- warn
- log a warning with Sōzu’s custom log stack
Enums§
- Object
Kind - Used only when returning errors