Documentation ¶
Overview ¶
Package event contains all the needed parsing for several repository provider's hooks
Currently it supports Github and Bitbucket
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepoEvent ¶
RepoEvent stores relevant information about a repository when an event is received
func NewBitbucketEvent ¶
NewBitbucketEvent takes an http.Request object and parses it corresponding to Bitbucket webhook syntax into an RepoEvent object. It returns a RepoEvent object and an error in case of error
func NewGithubEvent ¶
NewGithubEvent takes an http.Request object and parses it corresponding to Github webhook syntax into an RepoEvent object. It returns a RepoEvent object and an error in case of error
Click to show internal directories.
Click to hide internal directories.