From c5e9b48de70b4bd4e271a9c269346fb73fec7acd Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 7 Feb 2022 04:47:26 +0400 Subject: [PATCH] Changed config struct. --- internal/configuration/configuration.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/configuration/configuration.go b/internal/configuration/configuration.go index 8ace238..b905b2b 100644 --- a/internal/configuration/configuration.go +++ b/internal/configuration/configuration.go @@ -11,12 +11,14 @@ import ( // Configuration holds a list of process names to be tracked and a listen address. type Configuration struct { ListenOn string `yaml:"listen_on"` + HashSalt string `yaml:"hash_salt"` + WebDir string `yaml:"web_dir"` Uploads struct { Directory string `yaml:"directory"` Limits struct { - FileSize string `yaml:"file_size"` - KeepForHours int `yaml:"keep_for_hours"` - Storage string `yaml:"storage"` + FileSize int64 `yaml:"file_size"` + KeepForHours int `yaml:"keep_for_hours"` + Storage int64 `yaml:"storage"` } `yaml:"limits"` } `yaml:"uploads"` }