]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/config.go
Extensive refactor, quality of life enhancements
[rbdr/mobius] / hotline / config.go
index a30bbf77465c1a21dd6a9e04fb2ef5bfc0a6b45b..1ad0ec2ccb45a58cb1ac8eb52f9113a4abf2cbbc 100644 (file)
@@ -1,15 +1,9 @@
 package hotline
 
 package hotline
 
-const (
-       userIdleSeconds        = 300 // time in seconds before an inactive user is marked idle
-       idleCheckInterval      = 10  // time in seconds to check for idle users
-       trackerUpdateFrequency = 300 // time in seconds between tracker re-registration
-)
-
 type Config struct {
        Name                      string   `yaml:"Name" validate:"required,max=50"`         // Name used for Tracker registration
        Description               string   `yaml:"Description" validate:"required,max=200"` // Description used for Tracker registration
 type Config struct {
        Name                      string   `yaml:"Name" validate:"required,max=50"`         // Name used for Tracker registration
        Description               string   `yaml:"Description" validate:"required,max=200"` // Description used for Tracker registration
-       BannerFile                string   `yaml:"BannerFile"`                              // Path to banner jpg
+       BannerFile                string   `yaml:"BannerFile"`                              // Path to Banner jpg
        FileRoot                  string   `yaml:"FileRoot" validate:"required"`            // Path to Files
        EnableTrackerRegistration bool     `yaml:"EnableTrackerRegistration"`               // Toggle Tracker Registration
        Trackers                  []string `yaml:"Trackers" validate:"dive,hostname_port"`  // List of trackers that the server should register with
        FileRoot                  string   `yaml:"FileRoot" validate:"required"`            // Path to Files
        EnableTrackerRegistration bool     `yaml:"EnableTrackerRegistration"`               // Toggle Tracker Registration
        Trackers                  []string `yaml:"Trackers" validate:"dive,hostname_port"`  // List of trackers that the server should register with