From 7a1c984750ef5deaf5d07c28534dc21ed68e9ba4 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 5 Feb 2023 06:25:38 +0400 Subject: [PATCH] Added Service* constants. --- pkg/util/util.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/util/util.go b/pkg/util/util.go index b138014..5912e5c 100644 --- a/pkg/util/util.go +++ b/pkg/util/util.go @@ -6,6 +6,14 @@ import ( "time" ) +const ( + ServiceRadio = "radio" + ServiceFiles = "files" + ServiceUpload = "upload" + ServiceGit = "git" + ServiceHome = "home" +) + // GetServiceByHost returns a service's URL depending on what type of network // is accessed (www, i2p, yggdrasil). func GetServiceByHost(host, service string) string {