Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Version string `yaml:"version"` Platforms struct { Slack struct { Use bool `yaml:"use"` WebHookURL string `yaml:"webhook_url"` } `yaml:"slack"` } `yaml:"platforms"` }
Configuration is a
func UnmarshalRead ¶
func UnmarshalRead(file string) (Configuration, error)
UnmarshalRead reads the unmarshalled config yaml file from disk
func (*Configuration) MarshalWrite ¶
func (c *Configuration) MarshalWrite(file string) error
MarshalWrite writes the marshaled yaml config to disk
type Notify ¶
type Notify struct {
// contains filtered or unexported fields
}
Notify handles the notification engine
func (*Notify) SendNotification ¶
SendNotification to registered webhooks
Click to show internal directories.
Click to hide internal directories.