Documentation ¶
Overview ¶
Package decorators contains decorators for pipeline tasks
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CatchPanic ¶
func CatchPanic(next pipelines.TaskExecutor) pipelines.TaskExecutor
CatchPanic is catching panic and return it as an error.
func LogErrorZap ¶
func LogErrorZap(logger *zap.Logger) pipelines.TaskDecorator
LogErrorZap logs task error with zap logger.
func LogErrorZero ¶
func LogErrorZero(logger zerolog.Logger) pipelines.TaskDecorator
LogErrorZero logs task error with zerolog logger.
func ThrowPanic ¶
func ThrowPanic(next pipelines.TaskExecutor) pipelines.TaskExecutor
ThrowPanic is throws task error as a panic.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.