task

package
v0.0.0-...-137c36e Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlePanic

func HandlePanic(taskName string)

func LogDebug

func LogDebug(taskName string, msg string, fields ...logger.Field)

func LogDebugStruct

func LogDebugStruct(taskName string, msg string, fields ...logger.Field)

LogDebugStruct deprecated

func LogError

func LogError(taskName string, msg string, fields ...logger.Field)

func LogErrorIgnoreCancel

func LogErrorIgnoreCancel(ctx context.Context, taskName string, msg string, fields ...logger.Field)

func LogErrorStruct

func LogErrorStruct(taskName string, msg string, fields ...logger.Field)

LogErrorStruct deprecated

func LogErrorStructIgnoreCancel

func LogErrorStructIgnoreCancel(ctx context.Context, taskName string, msg string, fields ...logger.Field)

LogErrorStructIgnoreCancel deprecated

func LogInfo

func LogInfo(taskName string, msg string, fields ...logger.Field)

func LogInfoIgnoreCancel

func LogInfoIgnoreCancel(ctx context.Context, taskName string, msg string, fields ...logger.Field)

func LogInfoStruct

func LogInfoStruct(taskName string, msg string, fields ...logger.Field)

LogInfoStruct deprecated

func LogTrace

func LogTrace(taskName string, msg string, fields ...logger.Field)

func LogTraceStruct

func LogTraceStruct(taskName string, msg string, fields ...logger.Field)

LogTraceStruct deprecated

func LogWarn

func LogWarn(taskName string, msg string, fields ...logger.Field)

func LogWarnIgnoreCancel

func LogWarnIgnoreCancel(ctx context.Context, taskName string, msg string, fields ...logger.Field)

func LogWarnStruct

func LogWarnStruct(taskName string, msg string, fields ...logger.Field)

LogWarnStruct deprecated

func LogWarnStructIgnoreCancel

func LogWarnStructIgnoreCancel(ctx context.Context, taskName string, msg string, fields ...logger.Field)

LogWarnStructIgnoreCancel deprecated

Types

type BaseTask

type BaseTask struct{}

type Finalizer

type Finalizer interface {
	Finalize()
}

type Task

type Task interface {
	StartTask()
	StopTask()
}

Jump to

Keyboard shortcuts

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