hook2xmpp/runtime/config.go

35 lines
955 B
Go

package runtime
import "dev.sum7.eu/genofire/golang-lib/database"
type Config struct {
LogLevel logger.Level `toml:"log_level"`
WebserverBind string `toml:"webserver_bind"`
XMPP struct {
Host string `toml:"host"`
Username string `toml:"username"`
Resource string `toml:"resource"`
Password string `toml:"password"`
Debug bool `toml:"debug"`
NoTLS bool `toml:"no_tls"`
StartTLS bool `toml:"start_tls"`
Session bool `toml:"session"`
Status string `toml:"status"`
StatusMessage string `toml:"status_message"`
} `toml:"xmpp"`
Nickname string `toml:"nickname"`
StartupNotifyUser []string `toml:"startup_notify_user"`
StartupNotifyMuc []string `toml:"startup_notify_muc"`
Hooks map[string][]Hook `toml:"hooks"`
}
type Hook struct {
URL string `toml:"url"`
NotifyUser []string `toml:"notify_user"`
NotifyMuc []string `toml:"notify_muc"`
}