Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide( providePubSub, ), fx.Provide( publisher.NewPublisher, handler.NewHandler, providePayloadBuilderFactory, NewWebhookService, ), )
Module provides all webhook-related dependencies
Functions ¶
This section is empty.
Types ¶
type WebhookService ¶
type WebhookService struct {
// contains filtered or unexported fields
}
WebhookService orchestrates webhook operations
func NewWebhookService ¶
func NewWebhookService( cfg *config.Configuration, publisher publisher.WebhookPublisher, h handler.Handler, f payload.PayloadBuilderFactory, c httpclient.Client, l *logger.Logger, ) *WebhookService
NewWebhookService creates a new webhook service
func (*WebhookService) RegisterHandler ¶
func (s *WebhookService) RegisterHandler(router *pubsubRouter.Router)
RegisterHandler registers the webhook handler with the router
Click to show internal directories.
Click to hide internal directories.