Skip to content

Commit 8b73d42

Browse files
nikhilsinhaparseablenitishtde-sh
authored
chore: make utils public (#1083)
Signed-off-by: Nitish Tiwari <[email protected]> Co-authored-by: Nitish Tiwari <[email protected]> Co-authored-by: Devdutt Shenoi <[email protected]>
1 parent 176c150 commit 8b73d42

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/handlers/http/modal/ingest_server.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ impl ParseableServer for IngestServer {
151151
}
152152

153153
impl IngestServer {
154-
fn analytics_factory() -> Scope {
154+
pub fn analytics_factory() -> Scope {
155155
web::scope("/analytics").service(
156156
// GET "/analytics" ==> Get analytics data
157157
web::resource("").route(
@@ -163,7 +163,7 @@ impl IngestServer {
163163
}
164164

165165
// get the role webscope
166-
fn get_user_role_webscope() -> Scope {
166+
pub fn get_user_role_webscope() -> Scope {
167167
web::scope("/role")
168168
// GET Role List
169169
.service(resource("").route(web::get().to(role::list).authorize(Action::ListRole)))
@@ -185,7 +185,7 @@ impl IngestServer {
185185
)
186186
}
187187
// get the user webscope
188-
fn get_user_webscope() -> Scope {
188+
pub fn get_user_webscope() -> Scope {
189189
web::scope("/user")
190190
.service(
191191
web::resource("/{username}/sync")
@@ -224,7 +224,7 @@ impl IngestServer {
224224
),
225225
)
226226
}
227-
fn logstream_api() -> Scope {
227+
pub fn logstream_api() -> Scope {
228228
web::scope("/logstream").service(
229229
web::scope("/{logstream}")
230230
.service(

src/handlers/http/modal/query_server.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ impl ParseableServer for QueryServer {
158158

159159
impl QueryServer {
160160
// get the role webscope
161-
fn get_user_role_webscope() -> Scope {
161+
pub fn get_user_role_webscope() -> Scope {
162162
web::scope("/role")
163163
// GET Role List
164164
.service(resource("").route(web::get().to(role::list).authorize(Action::ListRole)))
@@ -178,7 +178,7 @@ impl QueryServer {
178178
}
179179

180180
// get the user webscope
181-
fn get_user_webscope() -> Scope {
181+
pub fn get_user_webscope() -> Scope {
182182
web::scope("/user")
183183
.service(
184184
web::resource("")
@@ -233,7 +233,7 @@ impl QueryServer {
233233
}
234234

235235
// get the logstream web scope
236-
fn get_logstream_webscope() -> Scope {
236+
pub fn get_logstream_webscope() -> Scope {
237237
web::scope("/logstream")
238238
.service(
239239
// GET "/logstream" ==> Get list of all Log Streams on the server
@@ -351,7 +351,7 @@ impl QueryServer {
351351
)
352352
}
353353

354-
fn get_cluster_web_scope() -> actix_web::Scope {
354+
pub fn get_cluster_web_scope() -> actix_web::Scope {
355355
web::scope("/cluster")
356356
.service(
357357
// GET "/cluster/info" ==> Get info of the cluster

src/handlers/http/modal/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ impl Server {
469469
}
470470

471471
// get the user webscope
472-
fn get_user_webscope() -> Scope {
472+
pub fn get_user_webscope() -> Scope {
473473
web::scope("/user")
474474
.service(
475475
web::resource("")

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
*/
1818

19-
mod about;
19+
pub mod about;
2020
mod alerts;
2121
pub mod analytics;
2222
pub mod audit;

0 commit comments

Comments
 (0)