Documentation
¶
Index ¶
- func GenerateSignature(body string, secret string) (string, error)
- func NewGitHubCommitsTransformation(ctx context.Context, uri string) (webhookd.WebhookTransformation, error)
- func NewGitHubReceiver(ctx context.Context, uri string) (webhookd.WebhookReceiver, error)
- func NewGitHubRepoTransformation(ctx context.Context, uri string) (webhookd.WebhookTransformation, error)
- func UnmarshalEvent(event_type string, body []byte) (interface{}, error)
- type GitHubCommitsTransformation
- type GitHubReceiver
- type GitHubRepoTransformation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGitHubReceiver ¶
func UnmarshalEvent ¶
Types ¶
type GitHubCommitsTransformation ¶
type GitHubCommitsTransformation struct {
webhookd.WebhookTransformation
ExcludeAdditions bool
ExcludeModifications bool
ExcludeDeletions bool
}
func (*GitHubCommitsTransformation) Transform ¶
func (p *GitHubCommitsTransformation) Transform(ctx context.Context, body []byte) ([]byte, *webhookd.WebhookError)
type GitHubReceiver ¶
type GitHubReceiver struct {
webhookd.WebhookReceiver
// contains filtered or unexported fields
}
func (GitHubReceiver) Receive ¶
func (wh GitHubReceiver) Receive(ctx context.Context, req *http.Request) ([]byte, *webhookd.WebhookError)
type GitHubRepoTransformation ¶
type GitHubRepoTransformation struct {
webhookd.WebhookTransformation
ExcludeAdditions bool
ExcludeModifications bool
ExcludeDeletions bool
}
func (*GitHubRepoTransformation) Transform ¶
func (p *GitHubRepoTransformation) Transform(ctx context.Context, body []byte) ([]byte, *webhookd.WebhookError)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.