xavierSrv/config/struct_error.go

22 lines
761 B
Go

package config
// ErrorList : Define struct for error list configuration file
type ErrorList struct {
Team map[string]struct {
Report []struct {
Process string `toml:"process"`
Encrypt string `toml:"encrypt"`
Host string `toml:"host,omitempty"`
From string `toml:"from,omitempty"`
User string `toml:"user,omitempty"`
Passwd string `toml:"passwd,omitempty"`
Recipients []string `toml:"recipients,omitempty"`
Subject string `toml:"subject,omitempty"`
Body string `toml:"body"`
Methods string `toml:"methods,omitempty"`
URL string `toml:"url,omitempty"`
ContentType string `toml:"Content-Type,omitempty"`
} `toml:"report"`
} `toml:"team"`
}