utils

package
v0.0.0-...-3d980af Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TaskMailMsg = "mail_msg"
	TaskTestMsg = "test_msg"
)

任务类型

View Source
const (
	TaskStatusPending   = 0
	TaskStatusReady     = 1
	TaskStatusRunning   = 2
	TaskStatusFinish    = 3
	TaskStatusTerminate = 97
	TaskStatusTimeOut   = 98
	TaskStatusError     = 99
)

任务状态

View Source
const (
	BucketName = "bucket_%d"
	BucketNum  = 5
)

bucket

View Source
const (
	AsyncPendingKey     = "async:%s:pending"      // zSet
	AsyncReadyKey       = "async:%s:ready"        // list
	AsyncRunningKey     = "async:%s:running"      // zSet
	AsyncRetryKey       = "async:%s:retry"        // hSet
	AsyncTTLKey         = "async:%s:ttl"          // hSet
	AsyncPeriodKey      = "async:%s:period"       // zSet
	AsyncBucketKey      = "async:%s:bucket"       // hSet
	AsyncResultKey      = "async:%s:result"       // hSet
	AsyncTerminateKey   = "async:%s:terminate"    // hSet
	AsyncInfoKey        = "async:%s:info"         // hSet
	AsyncPeriodRetryKey = "async:%s:period:retry" // hSet
	AsyncStatusKey      = "async:%s:status"       // hSet
)

async

View Source
const (
	MaxWorker = 2000
)

MaxWorker worker

Variables

This section is empty.

Functions

func Contains

func Contains(search interface{}, target interface{}) bool

Contains .

func RemoveDuplicates

func RemoveDuplicates(arr []string) []string

RemoveDuplicates .

Types

This section is empty.

Jump to

Keyboard shortcuts

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