-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement pull-based logs collector (#37)
- Loading branch information
1 parent
9aefa09
commit 4e43990
Showing
11 changed files
with
402 additions
and
408 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
use std::time::UNIX_EPOCH; | ||
|
||
mod cli; | ||
mod storage; | ||
mod utils; | ||
|
||
pub use crate::cli::ClickhouseArgs; | ||
pub use crate::storage::{ClickhouseStorage, PingRow, QueryExecutedRow, Storage}; | ||
|
||
pub fn timestamp_now_ms() -> u64 { | ||
UNIX_EPOCH | ||
.elapsed() | ||
.expect("We're after 1970") | ||
.as_millis() | ||
.try_into() | ||
.expect("But not that far") | ||
} | ||
pub use crate::utils::*; |
Oops, something went wrong.