Documentation
¶
Index ¶
- type WebhookDaemon
- func (d *WebhookDaemon) AddWebhook(ctx context.Context, wh webhook.Webhook) error
- func (d *WebhookDaemon) AddWebhooksFromConfig(ctx context.Context, cfg *config.WebhookConfig) error
- func (d *WebhookDaemon) HandlerFunc() (http.HandlerFunc, error)
- func (d *WebhookDaemon) Start(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookDaemon ¶
type WebhookDaemon struct {
AllowDebug bool
// contains filtered or unexported fields
}
func NewWebhookDaemon ¶
func NewWebhookDaemon(ctx context.Context, uri string) (*WebhookDaemon, error)
func NewWebhookDaemonFromConfig ¶
func NewWebhookDaemonFromConfig(ctx context.Context, cfg *config.WebhookConfig) (*WebhookDaemon, error)
func (*WebhookDaemon) AddWebhook ¶
func (*WebhookDaemon) AddWebhooksFromConfig ¶
func (d *WebhookDaemon) AddWebhooksFromConfig(ctx context.Context, cfg *config.WebhookConfig) error
func (*WebhookDaemon) HandlerFunc ¶
func (d *WebhookDaemon) HandlerFunc() (http.HandlerFunc, error)
Click to show internal directories.
Click to hide internal directories.