Documentation
¶
Overview ¶
Package githubhook implements handling and verification of github webhooks
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hook ¶
type Hook struct {
// Id specifies the Id of a github webhook request.
//
// Id is extracted from the inbound request's `X-Github-Delivery` header.
Id string
// Event specifies the event name of a github webhook request.
//
// Event is extracted from the inbound request's `X-GitHub-Event` header.
// See: https://developer.github.com/webhooks/#events
Event string
// Signature specifies the signature of a github webhook request.
//
// Signature is extracted from the inbound request's `X-Hub-Signature` header.
Signature string
// Payload contains the raw contents of the webhook request.
//
// Payload is extracted from the JSON-formatted body of the inbound request.
Payload []byte
}
Hook is an inbound github webhook
Click to show internal directories.
Click to hide internal directories.