use std::net::SocketAddr; pub mod config; mod grpc_server; use crate::{api, state::SharedState}; pub async fn execute( host: impl Into, grpc_host: impl Into, config: config::ServerConfig, ) -> anyhow::Result<()> { let state = SharedState::new(config).await?; notmad::Mad::builder() .add(api::Api::new(&state, host)) .add(grpc_server::GrpcServer::new(grpc_host.into())) .run() .await?; Ok(()) }