config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2017 License: Apache-2.0 Imports: 0 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 {
	HTTP      HTTPConfig      `mapstructure:"http"`
	Webhook   WebhookConfig   `mapstructure:"webhook"`
	GitHubApp GitHubAppConfig `mapstructure:"github"`
}

func NewWithDefaults

func NewWithDefaults() Config

type GitHubAppConfig added in v0.2.0

type GitHubAppConfig struct {
	AppID          int    `mapstructure:"appId"`
	PrivateKeyFile string `mapstructure:"privateKey"`
}

type HTTPConfig

type HTTPConfig struct {
	Address string `mapstructure:"address"`
	Port    int    `mapstructure:"port"`
	TLSCert string `mapstructure:"tlsCert"`
	TLSKey  string `mapstructure:"tlsKey"`
}

type WebhookConfig

type WebhookConfig struct {
	Secret string `mapstructure:"secret"`
}

Jump to

Keyboard shortcuts

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