rivet_envoy_client/
lib.rs1pub mod actor;
2pub mod async_counter;
3pub mod callbacks;
4pub mod commands;
5pub mod config;
6pub mod connection;
7pub mod context;
8pub mod envoy;
9pub mod events;
10pub mod handle;
11pub mod http;
12pub mod kv;
13pub mod latency_channel;
14pub mod metrics;
15pub mod sqlite;
16pub mod stringify;
17pub(crate) mod time {
18 #[cfg(not(target_arch = "wasm32"))]
19 pub use std::time::Instant;
20 #[cfg(target_arch = "wasm32")]
21 pub use web_time::Instant;
22
23 pub fn now_millis() -> i64 {
24 #[cfg(not(target_arch = "wasm32"))]
25 {
26 std::time::SystemTime::now()
27 .duration_since(std::time::UNIX_EPOCH)
28 .expect("system clock should be after UNIX epoch")
29 .as_millis() as i64
30 }
31
32 #[cfg(target_arch = "wasm32")]
33 {
34 js_sys::Date::now() as i64
35 }
36 }
37}
38pub mod tunnel;
39pub mod utils;
40pub mod websocket;
41
42pub use rivet_envoy_protocol as protocol;