botconfig

package
v0.8.24 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBotCfg = "/etc/solo-github-app/config.yml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationConfig

type ApplicationConfig struct {
	InstallationId     int                `yaml:"installation_id" json:"installationId"`
	SlackNotifications SlackNotifications `yaml:"slack_notifications" json:"slackNotifications"`
}

type Config

type Config struct {
	Server baseapp.HTTPConfig `yaml:"server"`
	Github githubapp.Config   `yaml:"github"`

	AppConfig ApplicationConfig `yaml:"app_configuration" json:"appConfiguration"`
}

func ReadConfig

func ReadConfig() (*Config, error)

type SlackNotifications

type SlackNotifications struct {
	DefaultUrl string            `yaml:"default_url" json:"defaultUrl"`
	RepoUrls   map[string]string `yaml:"repo_urls" json:"repoUrls"`
}

Jump to

Keyboard shortcuts

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