config

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertConfig

type AlertConfig struct {
	Slack *SlackAlertConfig `yaml:"slack"`
}

type Config

type Config struct {
	Integrations Integrations `yaml:"integrations"`
	Alerts       AlertConfig  `yaml:"alert"`
}

func Load

func Load(path string) (*Config, error)

type GitLabIntegrationConfig

type GitLabIntegrationConfig struct {
	Enabled string                  `yaml:"enabled"`
	Type    string                  `yaml:"type"`
	BaseURL string                  `yaml:"baseURL"`
	Token   string                  `yaml:"token"`
	Listen  IntegrationListenConfig `yaml:"listen"`
}

type IntegrationAreaConfig

type IntegrationAreaConfig struct {
	Type string `yaml:"type"`
}

type IntegrationListenConfig

type IntegrationListenConfig struct {
	Areas  []IntegrationAreaConfig
	Groups []int
}

type Integrations added in v0.0.3

type Integrations struct {
	GitLab *GitLabIntegrationConfig `yaml:"gitlab"`
	RSS    *RSSIntegrationConfig    `yaml:"rss"`
}

type RSSIntegrationConfig added in v0.0.3

type RSSIntegrationConfig struct {
	Enabled string            `yaml:"enabled"`
	Sources []RSSSourceConfig `yaml:"sources"`
}

type RSSMatchConfig added in v0.0.3

type RSSMatchConfig struct {
	Regexes  []string `yaml:"regexes"`
	Contains []string `yaml:"contains"`
}

type RSSSourceConfig added in v0.0.3

type RSSSourceConfig struct {
	URL        string         `yaml:"url"`
	Since      string         `yaml:"since"`
	MatchTitle RSSMatchConfig `yaml:"matchTitle"`
}

type SlackAlertConfig

type SlackAlertConfig struct {
	Enabled  string `yaml:"enabled"`
	Webhook  string `yaml:"webhook"`
	Channel  string `yaml:"channel"`
	Username string `yaml:"username"`
	Icon     string `yaml:"icon"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL