-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.go
32 lines (30 loc) · 1.48 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package models
import (
"github.com/hashicorp/go-hclog"
)
// Config struct
type Config struct {
Version string
Logger hclog.Logger
Admins string `json:"admins" yaml:"admins"`
ACL string `json:"acl" yaml:"acl"`
PluginsDir string `json:"plugins_dir" yaml:"plugins_dir"`
RulesDir string `json:"rules_dir" yaml:"rules_dir"`
LogFile string `json:"log_file" yaml:"log_file"`
Debug bool `json:"debug" yaml:"debug"`
Trace bool `json:"trace" yaml:"trace"`
Quiet bool `json:"quiet" yaml:"quiet"`
BotName string `json:"bot_name" yaml:"bot_name"`
CLI bool `json:"cli" yaml:"cli"`
Auditing bool `json:"auditing" yaml:"auditing"`
AuditingFile string `json:"auditing_file" yaml:"auditing_file"`
Slack bool `json:"slack" yaml:"slack"`
SlackToken string `json:"slack_token" yaml:"slack_token"`
SlackIcon string `json:"slack_icon" yaml:"slack_icon"`
SlackDebug bool `json:"slack_debug" yaml:"slack_debug"`
Scheduler bool `json:"scheduler" yaml:"scheduler"`
Webhook bool `json:"webhook" yaml:"webhook"`
WebhookPort int `json:"webhook_port" yaml:"webhook_port"`
Command string `json:"command" yaml:"command"`
Vars map[string]string `json:"vars" yaml:"vars"`
}