Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReceiverFromConfig ¶
func NewReceiverFromConfig(cfg *config.WebhookReceiverConfig) (webhookd.WebhookReceiver, error)
Types ¶
type GitHubReceiver ¶
type GitHubReceiver struct {
webhookd.WebhookReceiver
// contains filtered or unexported fields
}
func NewGitHubReceiver ¶
func NewGitHubReceiver(secret string, ref string) (GitHubReceiver, error)
func (GitHubReceiver) Receive ¶
func (wh GitHubReceiver) Receive(req *http.Request) ([]byte, *webhookd.WebhookError)
type InsecureReceiver ¶
type InsecureReceiver struct {
webhookd.WebhookReceiver
}
func NewInsecureReceiver ¶
func NewInsecureReceiver() (InsecureReceiver, error)
func (InsecureReceiver) Receive ¶
func (wh InsecureReceiver) Receive(req *http.Request) ([]byte, *webhookd.WebhookError)
type SlackReceiver ¶
type SlackReceiver struct {
webhookd.WebhookReceiver
}
func NewSlackReceiver ¶
func NewSlackReceiver() (SlackReceiver, error)
func (SlackReceiver) Receive ¶
func (sl SlackReceiver) Receive(req *http.Request) ([]byte, *webhookd.WebhookError)
Click to show internal directories.
Click to hide internal directories.