Crate nanoservices_utils
source ·Expand description
This crate is a basic utils crate that helps glue nanoservices together.
Modules§
- Defines extracting config variables based on the method to enable testing as well as production use. A good is API views. Wehn when defining an API view function, we can use the
GetConfigVariable
trait to to enable config variables from different sources be applied to the API view function by having the following outline: NanoServiceError
structs are the way in which nanoservices can pass errors between each other and to the client if theResponseError
trait is implemented for the specific web-framework being used. TheNanoServiceErrorStatus
enum is used to define the status of the error.