config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultIconFile = "icon_webhookrc_512x512.png"
)

Variables

View Source
var (
	//GLIP_ACTIVITY_INCLUDE_INTEGRATION_NAME = true
	DocHandlersDir = "../docs/handlers"
)
View Source
var Icons = map[string]string{
	"appsignal":  "icon_appsignal_400x400.png",
	"apteligent": "icon_apteligent_496x496.png",
	"circleci":   "icon_circleci_128x128.png",
	"codeship":   "icon_codeship_512x512.png",
	"confluence": "icon_confluence_256x256.png",
	"datadog":    "icon_datadog_512x512.png",
	"deskdotcom": "icon_deskdotcom_400x400.png",
	"enchant":    "icon_enchant_400x400.png",
	"gosquared":  "icon_gosquared_128x128.png",
	"heroku":     "icon_heroku_512x512.png",
	"librato":    "icon_librato_128x128.png",
	"magnumci":   "icon_magnumci_400x400.png",
	"marketo":    "icon_marketo_250x250.png",
	"opsgenie":   "icon_opsgenie_128x128.png",
	"papertrail": "icon_papertrail_128x128.png",
	"pingdom":    "icon_pingdom_512x512.png",
	"raygun":     "icon_raygun_512x512.png",
	"runscope":   "icon_runscope_400x400.png",
	"semaphore":  "icon_semaphore_512x512.png",
	"statuspage": "icon_statuspage_512x512.png",
	"travisci":   "icon_travisci_225x225.png",
	"userlike":   "icon_userlike_512x512.png",
	"victorops":  "icon_victorops_225x225.png"}

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Port           int
	EmojiURLFormat string
	LogLevel       log.Level
	IconBaseURL    string
}

Configuration is the webhook proxy configuration struct.

func (*Configuration) Address

func (c *Configuration) Address() string

Address returns the port address as a string with a `:` prefix

func (*Configuration) GetAppIconURL

func (c *Configuration) GetAppIconURL(appSlug string) (*url.URL, error)

Jump to

Keyboard shortcuts

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