gh

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitHubClientCreator

func NewGitHubClientCreator(cfg config.Config) githubapp.ClientCreator

NewGitHubClientCreator creates a GitHub client creator

func NewGitHubConfig

func NewGitHubConfig(cfg config.Config) githubapp.Config

NewGitHubConfig creates a GitHub config out of total config

Types

type InstallationHandler

type InstallationHandler struct {
	githubapp.ClientCreator
}

InstallationHandler is a webhook handler for dealing with installation events from the GitHub v3 API More info: https://developer.github.com/v3/apps/installations/

func NewInstallationHandler

func NewInstallationHandler(clientCreator githubapp.ClientCreator) InstallationHandler

NewInstallationHandler creates a new installation handler

func (InstallationHandler) Handle

func (h InstallationHandler) Handle(ctx context.Context, eventType, deliveryID string, payload []byte) error

Handle is the handler that reacts to an installation webhook event

func (InstallationHandler) Handles

func (h InstallationHandler) Handles() []string

Handles is an array of event types that this handler can respond to

Jump to

Keyboard shortcuts

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