aboutsummaryrefslogtreecommitdiff
path: root/hotline/config.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2022-09-15 13:51:37 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2022-09-15 13:51:37 -0700
commit043c00da52efd5b7d9ef15750945ee55e6f78e7a (patch)
tree49f0e2c05ef9d28bc64419b799da99dcef8b206d /hotline/config.go
parent60df5f3a64e21d79ace622d87d1feef0d619c42f (diff)
Clean up some linter warnings
Diffstat (limited to 'hotline/config.go')
-rw-r--r--hotline/config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/hotline/config.go b/hotline/config.go
index aeae275..a30bbf7 100644
--- a/hotline/config.go
+++ b/hotline/config.go
@@ -1,5 +1,11 @@
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