decorators

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package decorators contains decorators for pipeline tasks

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CatchPanic

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

ThrowPanic is throws task error as a panic.

Types

This section is empty.

Jump to

Keyboard shortcuts

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