Versions in this module Expand all Collapse all v1 v1.1.1 Mar 22, 2022 Changes in this version + var ErrEventNotFound = errors.New("event not defined to be parsed") + var ErrEventNotSpecifiedToParse = errors.New("no Event specified to parse") + var ErrInvalidHTTPMethod = errors.New("invalid HTTP Method") + var ErrMissingEventKeyHeader = errors.New("missing X-Event-Key Header") + var ErrMissingHookUUIDHeader = errors.New("missing X-Hook-UUID Header") + var ErrParsingPayload = errors.New("error parsing payload") + var ErrUUIDVerificationFailed = errors.New("UUID verification failed") + var Options = WebhookOptions + type Comment struct + Content struct{ ... } + CreatedOn time.Time + ID int64 + Inline struct{ ... } + Links struct{ ... } + Parent struct{ ... } + UpdatedOn time.Time + type Event string + const IssueCommentCreatedEvent + const IssueCreatedEvent + const IssueUpdatedEvent + const PullRequestApprovedEvent + const PullRequestCommentCreatedEvent + const PullRequestCommentDeletedEvent + const PullRequestCommentUpdatedEvent + const PullRequestCreatedEvent + const PullRequestDeclinedEvent + const PullRequestMergedEvent + const PullRequestUnapprovedEvent + const PullRequestUpdatedEvent + const RepoCommitCommentCreatedEvent + const RepoCommitStatusCreatedEvent + const RepoCommitStatusUpdatedEvent + const RepoForkEvent + const RepoPushEvent + const RepoUpdatedEvent + type Issue struct + Component string + Content struct{ ... } + CreatedOn time.Time + ID int64 + Links struct{ ... } + Milestone struct{ ... } + Priority string + Reporter Owner + State string + Title string + Type string + UpdatedOn time.Time + Version struct{ ... } + type IssueChanges struct + Assignee IssueChangesAssignee + Status IssueChangesStatus + type IssueChangesAssignee struct + New Owner + Old Owner + type IssueChangesStatus struct + New string + Old string + type IssueCommentCreatedPayload struct + Actor Owner + Comment Comment + Issue Issue + Repository Repository + func (pl IssueCommentCreatedPayload) GetActor() Owner + func (pl IssueCommentCreatedPayload) GetRepository() Repository + type IssueCreatedPayload struct + Actor Owner + Issue Issue + Repository Repository + func (pl IssueCreatedPayload) GetActor() Owner + func (pl IssueCreatedPayload) GetRepository() Repository + type IssueUpdatedPayload struct + Actor Owner + Changes IssueChanges + Comment Comment + Issue Issue + Repository Repository + func (pl IssueUpdatedPayload) GetActor() Owner + func (pl IssueUpdatedPayload) GetRepository() Repository + type Option func(*Webhook) error + type Owner struct + AccountID string + DisplayName string + Links struct{ ... } + NickName string + Type string + UUID string + type Payload interface + GetActor func() Owner + GetRepository func() Repository + type Project struct + Key string + Links struct{ ... } + Project string + Type string + UUID string + type PullRequest struct + Author Owner + CloseSourceBranch bool + ClosedBy Owner + CreatedOn time.Time + Description string + Destination struct{ ... } + ID int64 + Links struct{ ... } + MergeCommit struct{ ... } + Participants []Owner + Reason string + Rendered struct{ ... } + Reviewers []Owner + Source struct{ ... } + State string + Title string + UpdatedOn time.Time + type PullRequestApprovedPayload struct + Actor Owner + Approval struct{ ... } + PullRequest PullRequest + Repository Repository + func (pl PullRequestApprovedPayload) GetActor() Owner + func (pl PullRequestApprovedPayload) GetRepository() Repository + type PullRequestCommentCreatedPayload struct + Actor Owner + Comment Comment + PullRequest PullRequest + Repository Repository + func (pl PullRequestCommentCreatedPayload) GetActor() Owner + func (pl PullRequestCommentCreatedPayload) GetRepository() Repository + type PullRequestCommentDeletedPayload struct + Actor Owner + Comment Comment + PullRequest PullRequest + Repository Repository + func (pl PullRequestCommentDeletedPayload) GetActor() Owner + func (pl PullRequestCommentDeletedPayload) GetRepository() Repository + type PullRequestCommentUpdatedPayload struct + Actor Owner + Comment Comment + PullRequest PullRequest + Repository Repository + func (pl PullRequestCommentUpdatedPayload) GetActor() Owner + func (pl PullRequestCommentUpdatedPayload) GetRepository() Repository + type PullRequestCreatedPayload struct + Actor Owner + PullRequest PullRequest + Repository Repository + func (pl PullRequestCreatedPayload) GetActor() Owner + func (pl PullRequestCreatedPayload) GetRepository() Repository + type PullRequestDeclinedPayload struct + Actor Owner + PullRequest PullRequest + Repository Repository + func (pl PullRequestDeclinedPayload) GetActor() Owner + func (pl PullRequestDeclinedPayload) GetRepository() Repository + type PullRequestMergedPayload struct + Actor Owner + PullRequest PullRequest + Repository Repository + func (pl PullRequestMergedPayload) GetActor() Owner + func (pl PullRequestMergedPayload) GetRepository() Repository + type PullRequestUnapprovedPayload struct + Actor Owner + Approval struct{ ... } + PullRequest PullRequest + Repository Repository + func (pl PullRequestUnapprovedPayload) GetActor() Owner + func (pl PullRequestUnapprovedPayload) GetRepository() Repository + type PullRequestUpdatedPayload struct + Actor Owner + PullRequest PullRequest + Repository Repository + func (pl PullRequestUpdatedPayload) GetActor() Owner + func (pl PullRequestUpdatedPayload) GetRepository() Repository + type RepoCommitCommentCreatedPayload struct + Actor Owner + Comment Comment + Commit struct{ ... } + Repository Repository + func (pl RepoCommitCommentCreatedPayload) GetActor() Owner + func (pl RepoCommitCommentCreatedPayload) GetRepository() Repository + type RepoCommitStatusCreatedPayload struct + Actor Owner + CommitStatus struct{ ... } + Repository Repository + func (pl RepoCommitStatusCreatedPayload) GetActor() Owner + func (pl RepoCommitStatusCreatedPayload) GetRepository() Repository + type RepoCommitStatusUpdatedPayload struct + Actor Owner + CommitStatus struct{ ... } + Repository Repository + func (pl RepoCommitStatusUpdatedPayload) GetActor() Owner + func (pl RepoCommitStatusUpdatedPayload) GetRepository() Repository + type RepoForkPayload struct + Actor Owner + Fork Repository + Repository Repository + func (pl RepoForkPayload) GetActor() Owner + func (pl RepoForkPayload) GetRepository() Repository + type RepoPushChange struct + Closed bool + Commits []RepoPushChangeCommit + Created bool + Forced bool + Links RepoPushChangeLinks + New RepoPushChangeState + Old RepoPushChangeState + Truncated bool + type RepoPushChangeCommit struct + Author struct{ ... } + Hash string + Links struct{ ... } + Message string + Type string + type RepoPushChangeLinks struct + Commits struct{ ... } + Diff struct{ ... } + HTML struct{ ... } + type RepoPushChangeState struct + Links RepoPushChangeStateLinks + Name string + Target struct{ ... } + Type string + type RepoPushChangeStateLinks struct + Commits struct{ ... } + HTML struct{ ... } + Self struct{ ... } + type RepoPushPayload struct + Actor Owner + Push struct{ ... } + Repository Repository + func (pl RepoPushPayload) GetActor() Owner + func (pl RepoPushPayload) GetRepository() Repository + type RepoUpdatedPayload struct + Actor Owner + Changes struct{ ... } + Repository Repository + func (pl RepoUpdatedPayload) GetActor() Owner + func (pl RepoUpdatedPayload) GetRepository() Repository + type Repository struct + FullName string + IsPrivate bool + Links struct{ ... } + Name string + Owner Owner + Project Project + Scm string + Type string + UUID string + Website string + type Webhook struct + func New(options ...Option) (*Webhook, error) + func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error) + type WebhookOptions struct + func (WebhookOptions) UUID(uuid string) Option