Crate oa_gateway

Source
Expand description

Host process: load config, start adapters, wait for Ctrl-C.

This binary owns process lifetime only. Protocol work lives in adapter crates; routing lives in oa_gateway_core. A failed adapter is logged and left down โ€” it does not take the others with it.

Modulesยง

  • adapters ๐Ÿ”’
    Builds each enabled adapter and spawns its run task.
  • addr ๐Ÿ”’
    Resolves configured host:port strings to std::net::SocketAddr.
  • cli ๐Ÿ”’
    Parses argv into help, version, or a config path.
  • config ๐Ÿ”’
    Host TOML: one section per adapter, plus the UCI schema the host compiles.
  • schema ๐Ÿ”’
    Compiles the UCI schema named in the config before any adapter listens.
  • serve ๐Ÿ”’
    Runs the host until Ctrl-C, then cancels every adapter and waits for them.
  • tls ๐Ÿ”’
    Reads the TLS material named in the config before any adapter listens.

Functionsยง

  • main ๐Ÿ”’
    Starts the tokio runtime and exits 1 if the host cannot run.
  • run ๐Ÿ”’
    Dispatches on the command line: help, version, or serve a config.