Crate svc_assets
source ·Expand description

svc-assets Service
Overview
The svc-assets micro-service provides a comprehensive asset management
solution for operators. It enables clients to perform various actions such as
registering, updating, and grouping assets. Additionally, it facilitates the
delegation of grouped assets from one operator to another. This service is
accessible to existing systems through a REST API interface.
Re-exports
pub use crate::config::Config;
Modules
- Config
- gRPC provides client and server implementations for gRPC
- rest implementation module REST provides server implementations for REST API
Macros
- Writes a debug! message to the
app::grpclogger - Writes a error! message to the
app::grpclogger - Writes a info! message to the
app::grpclogger - Writes a warn! message to the
app::grpclogger - Writes a debug! message to the
app::restlogger - Writes a error! message to the
app::restlogger - Writes a info! message to the
app::restlogger - Writes a warn! message to the
app::restlogger
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 [
axum::Server] methodwith_graceful_shutdownand in ourtonic::transport::Servermethodserve_with_shutdown.
Derive Macros
- Generates the
Parserimplementation.