cfg

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HttpListenAddr            string   `toml:"http_server_listen_addr"`
	HttpGithubWebhookEndpoint string   `toml:"http_github_webhook_endpoint"`
	GithubWebHookSecret       string   `toml:"github_webhook_secret"`
	LogFormat                 string   `toml:"log_format"`
	LogTimeKey                string   `toml:"log_time_key"`
	Rules                     []*Rules `toml:"rule"`
}

func Load

func Load(reader io.Reader) (*Config, error)

func (*Config) Marshal

func (r *Config) Marshal(writer io.Writer) error

type Rules

type Rules struct {
	Name        string                   `toml:"name"`
	EventSource string                   `toml:"event_source"`
	FilterQuery string                   `toml:"filter_query"`
	Actions     []map[string]interface{} `toml:"action"`
}

Jump to

Keyboard shortcuts

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