2021-08-31 23:01:46 +08:00
|
|
|
pub mod future;
|
2021-10-03 14:05:15 +08:00
|
|
|
pub mod retry;
|
2021-07-11 00:07:37 +08:00
|
|
|
|
2022-02-08 14:57:16 +08:00
|
|
|
#[cfg(feature = "pb_gen")]
|
2022-02-09 09:57:03 +08:00
|
|
|
pub mod pb;
|
|
|
|
|
|
|
|
#[cfg(feature = "proto_gen")]
|
2022-02-09 18:17:06 +08:00
|
|
|
pub mod proto_gen;
|
2022-02-08 14:36:59 +08:00
|
|
|
|
2021-09-14 16:22:44 +08:00
|
|
|
#[allow(dead_code)]
|
2022-01-23 12:14:00 +08:00
|
|
|
pub fn uuid_string() -> String {
|
|
|
|
uuid::Uuid::new_v4().to_string()
|
|
|
|
}
|
2021-09-14 16:22:44 +08:00
|
|
|
|
|
|
|
#[allow(dead_code)]
|
2022-01-23 12:14:00 +08:00
|
|
|
pub fn timestamp() -> i64 {
|
|
|
|
chrono::Utc::now().timestamp()
|
|
|
|
}
|