subtasktool

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSubtaskTaskType

func GetSubtaskTaskType(subtaskId uint64, retTaskType *uint32) error

func GetSubtaskUint

func GetSubtaskUint(subtaskId uint64, field string, retVal *uint32) error

取subtask info key中记录的uint数据

func IsSubtaskRunning

func IsSubtaskRunning(subtaskId taskmodel.SubtaskIdType) bool

func ReadSubtaskStatus

func ReadSubtaskStatus(subtaskId taskmodel.SubtaskIdType, statusRet *uint32) error

func SetSubtaskResult

func SetSubtaskResult(
	subtaskId uint64,
	completeCode taskmodel.SubtaskResultType,
	scanResult interface{},
	ppipeline *redis.Pipeliner,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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