forked from asklyphe-public/asklyphe
24 lines
No EOL
1.1 KiB
Rust
24 lines
No EOL
1.1 KiB
Rust
/*
|
|
* asklyphe-common nats/vorebot.rs
|
|
* - nats structs for the asklyphe crawler "vorebot"
|
|
*
|
|
* Copyright (C) 2025 Real Microsoft, LLC
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
pub const VOREBOT_SERVICE: &str = "websiteparse";
|
|
pub const VOREBOT_NEWHOSTNAME_SERVICE: &str = "websiteparse_highpriority";
|
|
pub const VOREBOT_SUGGESTED_SERVICE: &str = "websiteparse_highestpriority";
|
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
|
pub struct WebParseRequest {
|
|
pub url: String,
|
|
pub damping_factor: f32,
|
|
} |