eellib

package
v1.36.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EELGetHandlersForEvent

func EELGetHandlersForEvent(ctx Context, event interface{}, eelHandlerFactory *HandlerFactory) ([]*HandlerConfiguration, error)

EELGetHandlersForEvent gets all handlers for a given event.

func EELGetPublishers

func EELGetPublishers(ctx Context, event interface{}, eelHandlerFactory *HandlerFactory) ([]EventPublisher, []error)

EELGetPublishers is similar to EELTransformEvent but return slice of publishers instead of slice of events.

func EELGetPublishersConcurrent

func EELGetPublishersConcurrent(ctx Context, event interface{}, eelHandlerFactory *HandlerFactory) ([]EventPublisher, []error)

EELGetPublishersConcurrent is the concurrent version of EELGetPublishers. Useful when processing multiple expensive transformations at the same time (e.g. making heavy use of curl() function calls).

func EELGetSettings

func EELGetSettings(ctx Context) (*EelSettings, error)

EELGetSettings get current settings for read / write

func EELInit

func EELInit(ctx Context)

EELInit initialize environment for EEL API use

func EELNewHandlerFactory

func EELNewHandlerFactory(ctx Context, configFolder string) (*HandlerFactory, []error)

EELNewHandlerFactory creates handler factory for given folder with handler files.

func EELSimpleEvalExpression

func EELSimpleEvalExpression(ctx Context, event string, expr string) (string, []error)

EELSingleTransform can work with raw JSON transformation or a transformation wrapped in a config handler. Transformation must yield single result or no result (if filtered).

func EELSimpleTransform

func EELSimpleTransform(ctx Context, event string, transformation string, isTransformationByExample bool) (string, []error)

EELSingleTransform can work with raw JSON transformation or a transformation wrapped in a config handler. Transformation must yield single result or no result (if filtered).

func EELTransformEvent

func EELTransformEvent(ctx Context, event interface{}, eelHandlerFactory *HandlerFactory) ([]interface{}, []error)

EELTransformEvent transforms single event based on set of configuration handlers. Can yield multiple results.

func EELTransformEventByHandlerName

func EELTransformEventByHandlerName(ctx Context, event interface{}, eelHandlerFactory *HandlerFactory, tenant string, name string) ([]interface{}, []error)

EELTransformEvent transforms single event based on set of configuration handlers. Can yield multiple results.

func EELTransformEventConcurrent

func EELTransformEventConcurrent(ctx Context, event interface{}, eelHandlerFactory *HandlerFactory) ([]interface{}, []error)

EELTransformEventConcurrent is the concurrent version of EELTransformEvent. Useful when processing multiple expensive transformations at the same time (e.g. making heavy use of curl() function calls).

func EELUpdateSettings

func EELUpdateSettings(ctx Context, eelSettings *EelSettings) error

EELGetSettings get current settings for read / write

Types

This section is empty.

Jump to

Keyboard shortcuts

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