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
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
Click to show internal directories.
Click to hide internal directories.