Skip to content

Commit fdfe928

Browse files
committed
Fix exports.
1 parent 4cc4c13 commit fdfe928

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

src/comm/monitor.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ use std::{thread, time};
99
use crate::cmd;
1010

1111
#[derive(Debug, Deserialize, Serialize)]
12-
pub(crate) struct Action {
13-
pub(crate) actionid: Option<String>,
14-
pub(crate) body: Option<String>,
15-
pub(crate) target: Option<String>,
16-
pub(crate) created_at: u64, // milliseconds
12+
pub struct Action {
13+
pub actionid: Option<String>,
14+
pub body: Option<String>,
15+
pub target: Option<String>,
16+
pub created_at: u64, // milliseconds
1717
}
1818

1919
#[derive(Debug, Serialize, Deserialize)]
@@ -25,9 +25,9 @@ pub struct ExecResponse {
2525

2626
#[allow(dead_code)]
2727
#[derive(Debug, Deserialize, Serialize)]
28-
pub(crate) struct Log {
29-
pub(crate) body: String,
30-
pub(crate) created_at: u64, // milliseconds
28+
pub struct Log {
29+
pub body: String,
30+
pub created_at: u64, // milliseconds
3131
}
3232

3333
#[derive(Debug, Deserialize, Serialize)]
@@ -50,9 +50,9 @@ pub struct Session {
5050

5151
#[allow(dead_code)]
5252
#[derive(Serialize, Deserialize)]
53-
pub(crate) struct SessionRequest {
54-
pub(crate) sessionid: String,
55-
pub(crate) since: u64, // milliseconds
53+
pub struct SessionRequest {
54+
pub sessionid: String,
55+
pub since: u64, // milliseconds
5656
}
5757

5858
#[derive(Debug, Default, Deserialize, Serialize)]
@@ -62,7 +62,7 @@ pub struct SessionResponse {
6262
}
6363

6464
/* Initialize constants. */
65-
pub(crate) const L1_ENDPOINT: &str = "https://l1.run/v1/";
65+
pub const L1_ENDPOINT: &str = "https://l1.run/v1/";
6666

6767
/* Initialize globals. */
6868
static LAST_SINCE: AtomicU64 = AtomicU64::new(1);
@@ -73,7 +73,7 @@ static LAST_SINCE: AtomicU64 = AtomicU64::new(1);
7373
* Constructs the full URL for a session request.
7474
*/
7575
#[cfg(test)]
76-
pub(crate) fn build_request_url(since: u64) -> String {
76+
pub fn build_request_url(since: u64) -> String {
7777
build_request_url_with_base(L1_ENDPOINT, since)
7878
}
7979

@@ -82,7 +82,7 @@ pub(crate) fn build_request_url(since: u64) -> String {
8282
*
8383
* Constructs the full URL for a session request using a custom base URL.
8484
*/
85-
pub(crate) fn build_request_url_with_base(base_url: &str, since: u64) -> String {
85+
pub fn build_request_url_with_base(base_url: &str, since: u64) -> String {
8686
format!("{}{}/{}", base_url, "session", since)
8787
}
8888

@@ -91,7 +91,7 @@ pub(crate) fn build_request_url_with_base(base_url: &str, since: u64) -> String
9191
*
9292
* Constructs the bearer authorization header value.
9393
*/
94-
pub(crate) fn build_auth_header(sessionid: &str) -> String {
94+
pub fn build_auth_header(sessionid: &str) -> String {
9595
format!("{} {}", "Bearer", sessionid)
9696
}
9797

@@ -101,7 +101,7 @@ pub(crate) fn build_auth_header(sessionid: &str) -> String {
101101
* Constructs the full URL for a session response post.
102102
*/
103103
#[cfg(test)]
104-
pub(crate) fn build_response_url() -> String {
104+
pub fn build_response_url() -> String {
105105
build_response_url_with_base(L1_ENDPOINT)
106106
}
107107

@@ -110,7 +110,7 @@ pub(crate) fn build_response_url() -> String {
110110
*
111111
* Constructs the full URL for a session response post using a custom base URL.
112112
*/
113-
pub(crate) fn build_response_url_with_base(base_url: &str) -> String {
113+
pub fn build_response_url_with_base(base_url: &str) -> String {
114114
format!("{}{}", base_url, "session")
115115
}
116116

0 commit comments

Comments
 (0)