Crate svc_storage
source ·Expand description
svc-storage Service
Overview
svc-storage is responsible for storing and retrieving data from the Arrow database and other storage. It’s meant to be used only by other internal services via gRPC interface.
- svc_storage gRPC server - (bin) target to run gRPC server
- svc_storage_client_grpc gRPC client - (lib) target for other services to import and use
Re-exports
pub use crate::config::Config;
Modules
- Common
- Config
- gRPC provides server implementations for gRPC
- PostgreSQL provides implementations for PostgreSQL
- Provides implementations for Arrow Resources
Macros
- Generates
From
trait implementations forResourceObject<Data>
into and from Grpc defined Resource. - Generates
From
trait implementations forResourceObject<Data>
into and from Grpc defined Resource. - Generates gRPC server implementations
- Generates gRPC server implementations
- Generates gRPC server implementations
- Writes a debug! message to the
app::grpc
logger - Writes a error! message to the
app::grpc
logger - Writes a info! message to the
app::grpc
logger - Writes a warn! message to the
app::grpc
logger - Writes a debug! message to the
backend::psql::psql
logger - Writes a error! message to the
backend::psql::psql
logger - Writes a info! message to the
backend::psql::psql
logger - Writes a warn! message to the
backend::psql::psql
logger
Structs
- struct holding cli configuration options
Statics
- Initialized log4rs handle
Traits
- Parse command-line arguments into
Self
.
Functions
- Initialize a log4rs logger with provided configuration file path
- Tokio signal handler that will wait for a user to press CTRL+C. This signal handler can be used in our
tonic::transport::Server
methodserve_with_shutdown
.
Derive Macros
- Generates the
Parser
implementation.