Help us shape the future of Go! Take the 2026 Go Developer Survey

cfg

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Metrics         metrics.AppMetrics
	PrNotifications []PrNotification
}

AppConfig is the main app runtime config

func (*AppConfig) LoadConfig

func (config *AppConfig) LoadConfig(cf string) error

LoadConfig loads config file

type Notification

type Notification struct {
	Slack SlackNotification `yaml:"slack"`
}

Notification struct describes desired notification routes

type PrNotification

type PrNotification struct {
	Owner                  string       `yaml:"gh_owner"`
	Labels                 []string     `yaml:"gh_pr_labels"`
	Repo                   string       `yaml:"gh_repo"`
	Schedule               string       `yaml:"schedule"`
	IncludeDrafts          bool         `yaml:"gh_pr_include_drafts"`
	IgnoreApproved         bool         `yaml:"gh_pr_ignore_approved"`
	IgnoreChangesRequested bool         `yaml:"gh_pr_ignore_changes_requested"`
	Notifications          Notification `yaml:"notify"`
}

PrNotification is a struct for a single GH repo PRs notifications

type SlackNotification

type SlackNotification struct {
	ChannelID string `yaml:"channel_id"`
	Header    string `yaml:"message_header"`
}

SlackNotification struct describes slack notification config

Jump to

Keyboard shortcuts

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