Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Secret string
}
Config represents config values for the webhook parser.
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser represents a service wrapping the github package providing convenience methods for interacting with Push Events.
func NewParser ¶
NewParser creates a Parser struct with injection of options. In production, secure should be true, but for testing and local development it can be false.
func (*Parser) IsPingEvent ¶ added in v0.1.5
IsPingEvent determines if the event is a Ping event by attempting to parse it.
func (*Parser) ValidateAndParsePushEvent ¶
ValidateAndParsePushEvent is a convenience method for receiving an http request, ensuring it is specifically a Push Event payload and returning it as that struct.
Click to show internal directories.
Click to hide internal directories.