aboutsummaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2021-07-28 18:21:52 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2021-07-28 14:21:52 -0700
commit22c599abc18895f73e96095f35b71cf3357d41b4 (patch)
tree482ef57d386c955692ea43c43e4655b3c3763499 /config.go
parent71c56068adca18f76ebee86355f000a3e51d3127 (diff)
Move code to hotline dir
Diffstat (limited to 'config.go')
-rw-r--r--config.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/config.go b/config.go
deleted file mode 100644
index e0c20cf..0000000
--- a/config.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package hotline
-
-const (
- defaultAgreement = "This is an agreement. Say you agree.\r"
- defaultMessageBoard = "Welcome to Hotline\r"
- defaultThreadedNews = "Categories:\n"
-)
-
-type Config struct {
- Name string `yaml:"Name"` // Name used for Tracker registration
- Description string `yaml:"Description"` // Description used for Tracker registration
- BannerID int `yaml:"BannerID"` // Unimplemented
- FileRoot string `yaml:"FileRoot"` // Path to Files
- EnableTrackerRegistration bool `yaml:"EnableTrackerRegistration"` // Toggle Tracker Registration
- Trackers []string `yaml:"Trackers"` // List of trackers that the server should register with
- NewsDelimiter string `yaml:"NewsDelimiter"` // String used to separate news posts
- NewsDateFormat string `yaml:"NewsDateFormat"` // Go template string to customize news date format
- MaxDownloads int `yaml:"MaxDownloads"` // Global simultaneous download limit
- MaxDownloadsPerClient int `yaml:"MaxDownloadsPerClient"` // Per client simultaneous download limit
- MaxConnectionsPerIP int `yaml:"MaxConnectionsPerIP"` // Max connections per IP
-}