Documentation
¶
Overview ¶
Package event parses github webhooks and converts their data to a manageable Event type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
Signature string
Type string
Received time.Time
Payload []byte
RepoInfo *RepoInfo `json:"-"` // Do not want to encode this in PubSub
}
Event is a parsed representation of an Event from GitHub.
func ParseFromRequest ¶
ParseFromRequest returns a parsed Event from the incoming HTTP webhook payload.
Click to show internal directories.
Click to hide internal directories.