Documentation
¶
Index ¶
Constants ¶
View Source
const ConfigFileName = "xodbox.yaml"
View Source
const DefaultNotifyFilter = "^/l"
Variables ¶
View Source
var EmbeddedConfig embed.FS
Functions ¶
func EmbeddedConfigReadFile ¶ added in v0.0.7
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) GetTemplateData ¶
func (*App) RegisterNotificationHandler ¶
type Config ¶
type Config struct {
TemplateData map[string]string `yaml:"template_data"`
Handlers []types.Handler
Notifiers []types.Notifier
}
Config used by App for bootstrapping
func LoadConfig ¶
LoadConfig creates a Config from the yaml contents in configFile
type ConfigFile ¶
type ConfigFile struct {
Defaults map[string]string `yaml:"defaults"`
Handlers []map[string]string `yaml:"handlers"`
Notifiers []map[string]string `yaml:"notifiers"`
}
ConfigFile defines th structure of the YAML config files This allows us to generalize the config
func (*ConfigFile) ToConfig ¶
func (conf *ConfigFile) ToConfig() *Config
ToConfig creates a Config struct based on the ConfigFile
Click to show internal directories.
Click to hide internal directories.