Versions in this module Expand all Collapse all v0 v0.6.0 Jan 20, 2025 v0.5.0 Jan 15, 2025 v0.4.0 Jan 14, 2025 v0.3.0 Aug 28, 2024 v0.2.0 Dec 6, 2023 v0.1.0 Jul 13, 2023 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 + State string + Title string + Type string + UpdatedOn time.Time + Version struct{ ... } + type IssueCommentCreatedPayload struct + Actor Owner + Comment Comment + Issue Issue + Repository Repository + type IssueCreatedPayload struct + Actor Owner + Issue Issue + Repository Repository + type IssueUpdatedPayload struct + Actor Owner + Changes struct{ ... } + Comment Comment + Issue Issue + Repository Repository + type Option func(*Webhook) error + type Owner struct + AccountID string + DisplayName string + Links struct{ ... } + NickName string + Type string + UUID string + 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 + Reviewers []Owner + Source struct{ ... } + State string + Title string + UpdatedOn time.Time + type PullRequestApprovedPayload struct + Actor Owner + Approval struct{ ... } + PullRequest PullRequest + Repository Repository + type PullRequestCommentCreatedPayload struct + Actor Owner + Comment Comment + PullRequest PullRequest + Repository Repository + type PullRequestCommentDeletedPayload struct + Actor Owner + Comment Comment + PullRequest PullRequest + Repository Repository + type PullRequestCommentUpdatedPayload struct + Actor Owner + Comment Comment + PullRequest PullRequest + Repository Repository + type PullRequestCreatedPayload struct + Actor Owner + PullRequest PullRequest + Repository Repository + type PullRequestDeclinedPayload struct + Actor Owner + PullRequest PullRequest + Repository Repository + type PullRequestMergedPayload struct + Actor Owner + PullRequest PullRequest + Repository Repository + type PullRequestUnapprovedPayload struct + Actor Owner + Approval struct{ ... } + PullRequest PullRequest + Repository Repository + type PullRequestUpdatedPayload struct + Actor Owner + PullRequest PullRequest + Repository Repository + type RepoCommitCommentCreatedPayload struct + Actor Owner + Comment Comment + Commit struct{ ... } + Repository Repository + type RepoCommitStatusCreatedPayload struct + Actor Owner + CommitStatus struct{ ... } + Repository Repository + type RepoCommitStatusUpdatedPayload struct + Actor Owner + CommitStatus struct{ ... } + Repository Repository + type RepoForkPayload struct + Actor Owner + Fork Repository + Repository Repository + type RepoPushPayload struct + Actor Owner + Push struct{ ... } + Repository Repository + type RepoUpdatedPayload struct + Actor Owner + Changes struct{ ... } + Repository 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