aboutsummaryrefslogtreecommitdiff
path: root/pkg/config/config.go
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-10-08 03:43:08 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-10-08 03:50:53 +0300
commite849e705c30cceec3cf7336a21bed96c8a911e90 (patch)
tree93f559bcd4cf3e53193930d112e564a2b7462ac8 /pkg/config/config.go
parent3ee654f6fb3cdf119630bfba8066c96ec26428c3 (diff)
Добавил рейтинг
Добавил страницу топа Добавил rss/xml/json feed
Diffstat (limited to 'pkg/config/config.go')
-rw-r--r--pkg/config/config.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go
index 342012e..8e7402a 100644
--- a/pkg/config/config.go
+++ b/pkg/config/config.go
@@ -8,10 +8,12 @@ import (
)
type Config struct {
- Debug bool `yaml:"debug"`
- DB *db.Config `yaml:"db"`
- Listen string `yaml:"listen"`
- Admins map[string]string `yaml:"admins"`
+ Debug bool `yaml:"debug"`
+ DB *db.Config `yaml:"db"`
+ Listen string `yaml:"listen"`
+ Host string `yaml:"host"`
+ Admins map[string]string `yaml:"admins"`
+ Keypairs []string `yaml:"keys"`
}
func New(file string) (*Config, error) {