Versions in this module Expand all Collapse all v1 v1.3.2 Mar 24, 2025 v1.3.1 Mar 24, 2025 Changes in this version + type BuildPayloadFn func(subject, message string) (payload any) + type PostSendHookFn func(req *http.Request, resp *http.Response) error + type PreSendHookFn func(req *http.Request) error + type Serializer interface + Marshal func(contentType string, payload any) (payloadRaw []byte, err error) + type Service struct + Serializer Serializer + func New() *Service + func (s *Service) AddReceivers(webhooks ...*Webhook) + func (s *Service) AddReceiversURLs(urls ...string) + func (s *Service) PostSend(hook PostSendHookFn) + func (s *Service) PreSend(hook PreSendHookFn) + func (s *Service) Send(ctx context.Context, subject, message string) error + func (s *Service) WithClient(client *http.Client) + type Webhook struct + BuildPayload BuildPayloadFn + ContentType string + Header http.Header + Method string + URL string + func (w *Webhook) String() string