Skip to main content

query_handler

Function query_handler 

Source
pub async fn query_handler(
    __arg0: State<AppState>,
    __arg1: Query<QueryParams>,
) -> Result<Response, AppError>
Expand description

GET /query?q=<expr>&limit=<n>

Returns matching log entries as newline-delimited JSON, one entry per line. A missing limit defaults to 1000; limit=0 means unlimited.