1
0

Added Service* constants.

This commit is contained in:
Alexander Andreev 2023-02-05 06:25:38 +04:00
parent fb38f13262
commit 7a1c984750
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -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 {