webhook

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPHandler

func NewHTTPHandler(cfg config.WebhookConfig, integrationCfg config.GitHubIntegrationConfig, logger *zap.Logger) (http.HandlerFunc, error)

Types

type GitHubIntegrationsClientFunc

type GitHubIntegrationsClientFunc func(installationID int) (*github.Client, error)

type Handler

type Handler interface {
	HandleEvent(w http.ResponseWriter, eventObject interface{}, f GitHubIntegrationsClientFunc) error
}

Jump to

Keyboard shortcuts

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