Crate svc_pricing

source ·
Expand description

Arrow Banner

svc-pricing Service

GitHub stable release (latest by date) GitHub release (latest by date including pre-releases) Coverage Status Sanity Checks Python PEP8 Rust Checks Arrow DAO Discord

Overview

provides the ticket price (in USD) for a given trip. The pricing model currently supports three use cases: cargo, rideshare, and charter. The price supplied and presented to the customers through GUI clients should be the definitive charge to be billed.

Modules

gRPC provides client and server implementations for gRPC

Macros

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

Structs

struct holding configuration options

Functions

Tokio signal handler that will wait for a user to press CTRL+C. This signal handler can be used in our [axum::Server] method with_graceful_shutdown and in our tonic::transport::Server method serve_with_shutdown.