outgoing

package
v2.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Custom

type Custom struct{}

func (Custom) Sift

Sift - Custom check will filter ineligible destination

type Dispatcher

type Dispatcher struct {
	Errors []interfaces.ErrorInterface
	// contains filtered or unexported fields
}

Dispatcher - Event Dispatcher

func NewDispatcherWithDestinations

func NewDispatcherWithDestinations(
	destinations []models.Destination,
	senderMapping map[string]interfaces.EventSenderInterface) *Dispatcher

NewDispatcherWithDestinations - Create Outgoing event dispatcher with destinations

func (*Dispatcher) Dispatch

Dispatch - Dispatch an event to outgoing webhook NOTE: This function should not be called more than once, as it alters the object state (e.g. errors, caches) Subsequence calls should construct a new instance of Dispatcher.

func (*Dispatcher) GetErrors

func (d *Dispatcher) GetErrors() []interfaces.ErrorInterface

func (*Dispatcher) OnError

func (*Dispatcher) SetDelayer

func (d *Dispatcher) SetDelayer(delayer interfaces.DispatchDelayerInterface)

func (*Dispatcher) SetErrorHandler

func (d *Dispatcher) SetErrorHandler(handler interfaces.ErrorHandlerInterface)

func (*Dispatcher) SetFilters

SetFilters - Add filters before dispatch

func (*Dispatcher) SetMiddlewares

func (d *Dispatcher) SetMiddlewares(middlewares []destination_filters.DestinationMiddlewareInterface)

func (*Dispatcher) TriggerErrorHandler

func (d *Dispatcher) TriggerErrorHandler(ctx context.Context, err *captin_errors.DispatcherError)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL