Function svc_storage::grpc::server::grpc_server
source · pub async fn grpc_server(config: Config, shutdown_rx: Option<Receiver<()>>)
Expand description
Starts the grpc servers for this microservice using the provided configuration
Examples
use svc_storage::common::ArrErr;
use svc_storage::grpc::server::grpc_server;
use svc_storage::Config;
async fn example() -> Result<(), tokio::task::JoinError> {
let config = Config::default();
tokio::spawn(grpc_server(config, None)).await
}