rsiot/components/cmp_http_server/mod.rs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
//! Компонент для получения данных через HTTP server.
//!
//! Ссылки:
//!
//! - [Документация docs.rs](https://docs.rs/rsiot-http-server/latest/)
//!
//! - [Репозиторий GitHub](https://github.com/Konstantin-Dudersky/rsiot/tree/main/rsiot-http-server)
//!
//! - [Примеры](https://github.com/Konstantin-Dudersky/rsiot/tree/main/rsiot-http-server/examples)
//!
#![doc = include_str!("../../../doc/api_description.md")]
//!
//! Данные возвращаются в виде структур Json. Для более удобного просмотра можно использовать расширения к браузеру, например [JSON Beautifier & Editor](https://chromewebstore.google.com/detail/json-beautifier-editor/lpopeocbeepakdnipejhlpcmifheolpl)
//!
//!
//!
//! ## Пример
//!
//! ```rust
#![doc = include_str!("../../../examples/cmp_http_server/cmp_http_server.rs")]
//! ```
//!
//! ## Тестирование
//!
//! См. папку .bruno
//!
mod component;
mod config;
mod error;
mod fn_process;
mod routes;
mod shared_state;
mod tasks;
pub use component::Cmp;
pub use config::{Config, ConfigCmpPlcData};
pub use error::Error;
type Result<T> = std::result::Result<T, Error>;