mirror of
https://github.com/mayanayza/netvisor.git
synced 2025-12-10 08:24:08 -06:00
Merge pull request #117 from vhsdream/feat/new-service
Add Karakeep service definition
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
use crate::server::hosts::r#impl::ports::PortBase;
|
||||
use crate::server::services::definitions::{ServiceDefinitionFactory, create_service};
|
||||
use crate::server::services::r#impl::categories::ServiceCategory;
|
||||
use crate::server::services::r#impl::definitions::ServiceDefinition;
|
||||
use crate::server::services::r#impl::patterns::Pattern;
|
||||
|
||||
#[derive(Default, Clone, Eq, PartialEq, Hash)]
|
||||
pub struct Karakeep;
|
||||
|
||||
impl ServiceDefinition for Karakeep {
|
||||
fn name(&self) -> &'static str {
|
||||
"Karakeep"
|
||||
}
|
||||
fn description(&self) -> &'static str {
|
||||
"The Bookmark Everything App"
|
||||
}
|
||||
fn category(&self) -> ServiceCategory {
|
||||
ServiceCategory::Media
|
||||
}
|
||||
|
||||
fn discovery_pattern(&self) -> Pattern<'_> {
|
||||
Pattern::Endpoint(PortBase::new_tcp(3000), "/manifest.json", "Karakeep")
|
||||
}
|
||||
|
||||
fn logo_url(&self) -> &'static str {
|
||||
"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/karakeep.svg"
|
||||
}
|
||||
}
|
||||
|
||||
inventory::submit!(ServiceDefinitionFactory::new(create_service::<Karakeep>));
|
||||
@@ -99,6 +99,7 @@ pub mod jellyfin;
|
||||
pub mod jellyseerr;
|
||||
pub mod jellystat;
|
||||
pub mod jump;
|
||||
pub mod karakeep;
|
||||
pub mod komga;
|
||||
pub mod kubernetes;
|
||||
pub mod lidarr;
|
||||
|
||||
Reference in New Issue
Block a user