mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Signed-off-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: npub1k766u8wq088nkr9vy94uqlh9kmw5956g593a7xk7cks7frhgctmsr00p27 <b7b5ae1dc079cf3b0cac216bc07ee5b6dd42d348a163df1adec5a1e48ee8c2f7@sprout-oss.stage.blox.sqprod.co> Co-authored-by: npub1k766u8wq088nkr9vy94uqlh9kmw5956g593a7xk7cks7frhgctmsr00p27 <b7b5ae1dc079cf3b0cac216bc07ee5b6dd42d348a163df1adec5a1e48ee8c2f7@sprout-oss.stage.blox.sqprod.co> Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
50 lines
1.7 KiB
Rust
50 lines
1.7 KiB
Rust
#![deny(unsafe_code)]
|
|
#![warn(missing_docs)]
|
|
//! NIP-01 WebSocket relay for Buzz private team communication.
|
|
|
|
/// REST API route handlers.
|
|
pub mod api;
|
|
/// WebSocket audio relay for huddle voice channels.
|
|
pub mod audio;
|
|
/// Relay configuration from environment variables.
|
|
pub mod config;
|
|
/// Runtime conformance harness — abstract trace emission at the
|
|
/// ingest/read accept-reject boundary, replayed against
|
|
/// `docs/spec/MultiTenantRelay.tla` by the independent `buzz-conformance`
|
|
/// checker.
|
|
pub mod conformance;
|
|
/// WebSocket connection lifecycle and state.
|
|
pub mod connection;
|
|
/// Relay error types.
|
|
pub mod error;
|
|
/// WebSocket message handlers for NIP-01 client commands.
|
|
pub mod handlers;
|
|
/// Stateless HMAC-signed relay invite tokens (mint/verify).
|
|
pub mod invite_token;
|
|
/// Relay-signed mesh-LLM status publisher.
|
|
pub mod mesh_status_publisher;
|
|
/// Prometheus metrics: recorder, upkeep, HTTP middleware.
|
|
pub mod metrics;
|
|
/// NIP-11 relay information document.
|
|
pub mod nip11;
|
|
/// NIP-01 client/relay message parsing.
|
|
pub mod protocol;
|
|
/// Axum router construction.
|
|
pub mod router;
|
|
/// Shared application state.
|
|
pub mod state;
|
|
/// Subscription registry with (channel, kind) fan-out index.
|
|
pub mod subscription;
|
|
/// OpenTelemetry tracing initialisation (tracer provider + OTLP exporter).
|
|
pub mod telemetry;
|
|
/// Row-zero host binding: resolve the request community from the connection host.
|
|
pub mod tenant;
|
|
/// Webhook secret generation and constant-time comparison.
|
|
pub mod webhook_secret;
|
|
/// Workflow action sink — relay-side implementation of [`buzz_workflow::ActionSink`].
|
|
pub mod workflow_sink;
|
|
|
|
pub use config::Config;
|
|
pub use error::{RelayError, Result};
|
|
pub use state::AppState;
|