Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Plugins Plugin `yaml:"plugins"` RescheduleEvery int `yaml:"reschedule_seconds" validate:"min=60,max=1200"` Database string `yaml:"database"` Size int64 `yaml:"num_notifications" validate:"min=5,max=60"` }
representing the configuration file
func NewConfigFromBytes ¶
NewConfigFromBytes returns a Config object, read from the YAML byte stream
func (*Config) ProcessPlugins ¶
func (c *Config) ProcessPlugins()
processPlugins runs through the plugins, storing outputs in the database
type GitHubConfig ¶
type GitHubConfig struct { Token string `yaml:"token" validate:"required"` Subscriptions GitHubSubscription `yaml:"subscriptions" validate:"required"` }
type GitHubSubscription ¶
type GitHubSubscription struct { Issues []githubIssueConfig `yaml:"issues,omitempty"` PullRequests []githubPRConfig `yaml:"pullrequests,omitempty"` Actions []githubActionConfig `yaml:"actions,omitempty"` Releases []githubReleaseConfig `yaml:"releases,omitempty"` }
type JiraConfig ¶
type JiraIssue ¶
type JiraIssue struct { Query string `yaml:"query"` PluginBase }
type Plugin ¶
type Plugin struct { GitHub GitHubConfig `yaml:"github,omitempty"` URLs []URLConfig `yaml:"webpages,omitempty"` Jira JiraConfig `yaml:"jira,omitempty"` }
plugins
type PluginBase ¶
type PluginBase struct {
Name string `yaml:"name" validate:"required"`
}
Click to show internal directories.
Click to hide internal directories.