Docs.rs
  • sozu-command-lib-1.0.0
    • sozu-command-lib 1.0.0
    • Docs.rs crate page
    • LGPL-3.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • Geal
    • github:sozu-proxy:owners
    • github:sozu-proxy:maintainers
    • Dependencies
      • hex ^0.4.3 normal
      • libc ^0.2.153 normal
      • log ^0.4.21 normal
      • memchr ^2.7.2 normal
      • mio ^0.8.11 normal
      • nix ^0.28.0 normal
      • nom ^7.1.3 normal
      • pool ^0.1.4 normal
      • poule ^0.3.2 normal
      • prettytable-rs ^0.10.0 normal
      • prost ^0.12.4 normal
      • rand ^0.8.5 normal
      • rusty_ulid ^2.0.0 normal
      • serde ^1.0.197 normal
      • serde_json ^1.0.116 normal
      • sha2 ^0.10.8 normal
      • thiserror ^1.0.58 normal
      • time ^0.3.36 normal
      • toml ^0.8.12 normal
      • trailer ^0.1.2 normal
      • x509-parser ^0.16.0 normal
      • prost-build ^0.12.4 build
    • Versions
    • 37.89% of the crate is documented
  • Go to latest version
  • Platform
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate sozu_command_lib

sozu_command_lib1.0.0

  • All Items
  • Modules
  • Macros
  • Enums
  • Traits

Crates

  • sozu_command_lib
?
Settings

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

Results

Query parser error: "Unexpected - (did you mean ->?)".