haproxy_api/
lib.rs

1//! # HAProxy 2.x Lua API
2//!
3//! Intended to be used together with [mlua] in a module mode.
4//!
5//! Please see the [Lua API] documentation for details.
6//!
7//! [Lua API]: http://www.arpalert.org/src/haproxy-lua-api/2.2/index.html
8//! [mlua]: https://crates.io/crates/mlua
9
10#[cfg(feature = "async")]
11mod r#async;
12mod channel;
13mod converters;
14mod core;
15mod fetches;
16mod filter;
17mod http;
18mod http_message;
19mod listener;
20mod proxy;
21mod server;
22mod stick_table;
23mod txn;
24
25pub use crate::channel::Channel;
26pub use crate::converters::Converters;
27pub use crate::core::{Action, Core, LogLevel, ServiceMode, Time};
28pub use crate::fetches::Fetches;
29pub use crate::filter::{FilterMethod, FilterResult, UserFilter};
30pub use crate::http::{Headers, Http};
31pub use crate::http_message::HttpMessage;
32pub use crate::proxy::Proxy;
33pub use crate::server::Server;
34pub use crate::stick_table::StickTable;
35pub use crate::txn::Txn;
36
37#[cfg(feature = "async")]
38pub use crate::r#async::{create_async_function, runtime};