hook2xmpp/runtime/config.go

28 lines
644 B
Go
Raw Permalink Normal View History

2019-02-13 03:24:38 +01:00
package runtime
2017-06-09 10:55:47 +02:00
2019-02-14 01:32:27 +01:00
import "github.com/bdlm/std/logger"
2017-06-09 10:55:47 +02:00
type Config struct {
2019-02-14 01:32:27 +01:00
LogLevel logger.Level `toml:"log_level"`
WebserverBind string `toml:"webserver_bind"`
2017-06-09 10:55:47 +02:00
XMPP struct {
2019-07-15 23:57:26 +02:00
Address string `toml:"address"`
JID string `toml:"jid"`
Password string `toml:"password"`
2017-06-09 10:55:47 +02:00
} `toml:"xmpp"`
2019-02-13 04:52:00 +01:00
2019-02-13 03:55:07 +01:00
Nickname string `toml:"nickname"`
2017-06-09 10:55:47 +02:00
2019-02-13 03:24:38 +01:00
StartupNotifyUser []string `toml:"startup_notify_user"`
StartupNotifyMuc []string `toml:"startup_notify_muc"`
Hooks map[string][]Hook `toml:"hooks"`
2017-06-09 10:55:47 +02:00
}
type Hook struct {
Secret string `toml:"secret"`
2017-06-09 10:55:47 +02:00
NotifyUser []string `toml:"notify_user"`
NotifyMuc []string `toml:"notify_muc"`
}