core

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var STATUS_READY = "ready"
View Source
var STATUS_RUNNING = "running"

Functions

This section is empty.

Types

type Captin

type Captin struct {
	Status    string
	ConfigMap interfaces.ConfigMapperInterface

	SenderMapping map[string]interfaces.EventSenderInterface

	DocumentStoreMapping map[string]interfaces.DocumentStoreInterface
	// contains filtered or unexported fields
}

Captin - Captin instance

func NewCaptin

func NewCaptin(configMap interfaces.ConfigMapperInterface) *Captin

NewCaptin - Create Captin instance with default http senders and time throttler

func (*Captin) Execute

Execute - Execute for events

func (Captin) IsRunning

func (c Captin) IsRunning() bool

func (*Captin) SetDestinationFilters

func (c *Captin) SetDestinationFilters(filters []destination_filters.DestinationFilterInterface)

SetDestinationFilters - Set filters

func (*Captin) SetDestinationMiddlewares

func (c *Captin) SetDestinationMiddlewares(middlewares []destination_filters.DestinationMiddlewareInterface)

SetDestinationMiddlewares - Set middlewares

func (*Captin) SetDispatchDelayer

func (c *Captin) SetDispatchDelayer(delayer interfaces.DispatchDelayerInterface)

func (*Captin) SetDispatchErrorHandler

func (c *Captin) SetDispatchErrorHandler(handler interfaces.ErrorHandlerInterface)

func (*Captin) SetDispatchFilters

func (c *Captin) SetDispatchFilters(filters []destination_filters.DestinationFilterInterface)

SetDestinationFilters - Set filters

func (*Captin) SetDispatchMiddlewares

func (c *Captin) SetDispatchMiddlewares(middlewares []destination_filters.DestinationMiddlewareInterface)

func (*Captin) SetDocumentStoreMapping

func (c *Captin) SetDocumentStoreMapping(mappings map[string]interfaces.DocumentStoreInterface)

SetDocumentStoreMapping - Set store where event targets are being stored

func (*Captin) SetSenderMapping

func (c *Captin) SetSenderMapping(senderMapping map[string]interfaces.EventSenderInterface)

func (*Captin) SetStore

func (c *Captin) SetStore(store interfaces.StoreInterface)

SetStore - Set store

func (*Captin) SetThrottler

func (c *Captin) SetThrottler(throttle interfaces.ThrottleInterface)

SetThrottler - Set throttle

Jump to

Keyboard shortcuts

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