Documentation
¶
Index ¶
- func SetupWebhookRouter(ctrl Controller)
- type Controller
- func (ctrl *Controller) CreateWebhook(ctx *fiber.Ctx, req dtos.CreateWebhookRequest) (*dtos.CreateWebhookResponse, *fiberoapi.ErrorResponse)
- func (ctrl *Controller) DeleteWebhook(ctx *fiber.Ctx, req dtos.DeleteWebhookRequest) (*dtos.MessageResponse, *fiberoapi.ErrorResponse)
- func (ctrl *Controller) GetAvailableEvents(ctx *fiber.Ctx, _ dtos.EmptyRequest) (*dtos.AvailableEventsResponse, *fiberoapi.ErrorResponse)
- func (ctrl *Controller) GetDeliveries(ctx *fiber.Ctx, req dtos.GetDeliveriesRequest) (*dtos.GetDeliveriesResponse, *fiberoapi.ErrorResponse)
- func (ctrl *Controller) GetWebhook(ctx *fiber.Ctx, req dtos.GetWebhookRequest) (*dtos.GetWebhookResponse, *fiberoapi.ErrorResponse)
- func (ctrl *Controller) ListWebhooks(ctx *fiber.Ctx, _ dtos.EmptyRequest) (*dtos.ListWebhooksResponse, *fiberoapi.ErrorResponse)
- func (ctrl *Controller) UpdateWebhook(ctx *fiber.Ctx, req dtos.UpdateWebhookRequest) (*dtos.MessageResponse, *fiberoapi.ErrorResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupWebhookRouter ¶
func SetupWebhookRouter(ctrl Controller)
Types ¶
type Controller ¶
type Controller struct {
Config config.Config
Logger zerolog.Logger
FiberOapi *fiberoapi.OApiGroup
WebhookApp *webhook.WebhookApp
}
func (*Controller) CreateWebhook ¶
func (ctrl *Controller) CreateWebhook(ctx *fiber.Ctx, req dtos.CreateWebhookRequest) (*dtos.CreateWebhookResponse, *fiberoapi.ErrorResponse)
func (*Controller) DeleteWebhook ¶
func (ctrl *Controller) DeleteWebhook(ctx *fiber.Ctx, req dtos.DeleteWebhookRequest) (*dtos.MessageResponse, *fiberoapi.ErrorResponse)
func (*Controller) GetAvailableEvents ¶
func (ctrl *Controller) GetAvailableEvents(ctx *fiber.Ctx, _ dtos.EmptyRequest) (*dtos.AvailableEventsResponse, *fiberoapi.ErrorResponse)
func (*Controller) GetDeliveries ¶
func (ctrl *Controller) GetDeliveries(ctx *fiber.Ctx, req dtos.GetDeliveriesRequest) (*dtos.GetDeliveriesResponse, *fiberoapi.ErrorResponse)
func (*Controller) GetWebhook ¶
func (ctrl *Controller) GetWebhook(ctx *fiber.Ctx, req dtos.GetWebhookRequest) (*dtos.GetWebhookResponse, *fiberoapi.ErrorResponse)
func (*Controller) ListWebhooks ¶
func (ctrl *Controller) ListWebhooks(ctx *fiber.Ctx, _ dtos.EmptyRequest) (*dtos.ListWebhooksResponse, *fiberoapi.ErrorResponse)
func (*Controller) UpdateWebhook ¶
func (ctrl *Controller) UpdateWebhook(ctx *fiber.Ctx, req dtos.UpdateWebhookRequest) (*dtos.MessageResponse, *fiberoapi.ErrorResponse)
Click to show internal directories.
Click to hide internal directories.