config

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2017 License: Apache-2.0 Imports: 0 Imported by: 3

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"`
	GitHubIntegration GitHubIntegrationConfig `mapstructure:"github"`
}

func NewWithDefaults

func NewWithDefaults() Config

type GitHubIntegrationConfig

type GitHubIntegrationConfig struct {
	IntegrationID  int    `mapstructure:"integrationId"`
	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