task

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlePanic

func HandlePanic(taskName string)

HandlePanic deprecated

func LogDebug

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

LogDebug deprecated

func LogDebugStruct

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

LogDebugStruct deprecated

func LogError

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

LogError deprecated

func LogErrorIgnoreCancel

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

LogErrorIgnoreCancel deprecated

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)

LogInfo deprecated

func LogInfoIgnoreCancel

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

LogInfoIgnoreCancel deprecated

func LogInfoStruct

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

LogInfoStruct deprecated

func LogTrace

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

LogTrace deprecated

func LogTraceStruct

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

LogTraceStruct deprecated

func LogWarn

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

LogWarn deprecated

func LogWarnIgnoreCancel

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

LogWarnIgnoreCancel deprecated

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{}

BaseTask is deprecated

type Task

type Task interface {
	StartTask()
	StopTask()
}

Task is deprecated

Jump to

Keyboard shortcuts

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