Crate sozu_command_lib

Source
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 in command.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§

ObjectKind
Used only when returning errors

Traits§

AsStr
AsString