Documentation
¶
Index ¶
- type WebhookApp
- func (app *WebhookApp) CreateWebhook(input dto.CreateWebhookInput) (*dto.CreateWebhookOutput, error)
- func (app *WebhookApp) DeleteWebhook(input dto.DeleteWebhookInput) error
- func (app *WebhookApp) GetDeliveries(input dto.GetDeliveriesInput) (*dto.GetDeliveriesOutput, error)
- func (app *WebhookApp) GetWebhook(input dto.GetWebhookInput) (*dto.GetWebhookOutput, error)
- func (app *WebhookApp) ListWebhooks(input dto.ListWebhooksInput) (*dto.ListWebhooksOutput, error)
- func (app *WebhookApp) TriggerWebhooks(input dto.TriggerWebhookInput)
- func (app *WebhookApp) UpdateWebhook(input dto.UpdateWebhookInput) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookApp ¶
type WebhookApp struct {
Config config.Config
Logger zerolog.Logger
WebhookPers domain.WebhookPers
WebhookDeliveryPers domain.WebhookDeliveryPers
}
func NewWebhookApp ¶
func NewWebhookApp(config config.Config, logger zerolog.Logger, webhookPers domain.WebhookPers, webhookDeliveryPers domain.WebhookDeliveryPers) *WebhookApp
func (*WebhookApp) CreateWebhook ¶
func (app *WebhookApp) CreateWebhook(input dto.CreateWebhookInput) (*dto.CreateWebhookOutput, error)
func (*WebhookApp) DeleteWebhook ¶
func (app *WebhookApp) DeleteWebhook(input dto.DeleteWebhookInput) error
func (*WebhookApp) GetDeliveries ¶
func (app *WebhookApp) GetDeliveries(input dto.GetDeliveriesInput) (*dto.GetDeliveriesOutput, error)
func (*WebhookApp) GetWebhook ¶
func (app *WebhookApp) GetWebhook(input dto.GetWebhookInput) (*dto.GetWebhookOutput, error)
func (*WebhookApp) ListWebhooks ¶
func (app *WebhookApp) ListWebhooks(input dto.ListWebhooksInput) (*dto.ListWebhooksOutput, error)
func (*WebhookApp) TriggerWebhooks ¶
func (app *WebhookApp) TriggerWebhooks(input dto.TriggerWebhookInput)
TriggerWebhooks triggers all matching webhooks for an event
func (*WebhookApp) UpdateWebhook ¶
func (app *WebhookApp) UpdateWebhook(input dto.UpdateWebhookInput) error
Click to show internal directories.
Click to hide internal directories.