comm

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusOK      = "PHASE_TYPE_COMPLETE"
	StatusError   = "PHASE_TYPE_ERROR"
	StatusRunning = "PHASE_TYPE_RUNNING"
	StatusPending = "PHASE_TYPE_PENDING"
)

enum all statuses.

View Source
const (
	LinkStatusOK      = "OK"
	LinkStatusUnknown = "UNKNOWN"
	LinkStatusLimited = "LIMITED"
	LinkStatusError   = "ERROR"
)

enum PikPak link status.

View Source
const (
	// CreateFileSyncWaitSeconds is the maximum wait time in seconds when creating a file from link.
	CreateFileSyncWaitSeconds = 2

	// RunningFilesMaxAge is the maximum time for a file from running to complete.
	// After this time, set the file to error status.
	RunningFilesMaxAge = 48 * time.Hour

	// RunningFilesSelectLimit is the maximum number of running files selected from mysql each time.
	RunningFilesSelectLimit = 10000

	// MaxPremiumWorkers is the maximum number of premium workers bound to a master.
	MaxPremiumWorkers = 20

	// SlowTaskTriggerConditionTimes is the maximum number of times to trigger a slow task.
	SlowTaskTriggerConditionTimes = 2
)
View Source
const (
	// RedeemCodeStatusNotUsed is the status of a redeem code which is not used.
	RedeemCodeStatusNotUsed = "NOT_USED"
	// RedeemCodeStatusUsed is the status of a redeem code which is used.
	RedeemCodeStatusUsed = "USED"
	// RedeemCodeInvalid is the status of a redeem code which is invalid.
	RedeemCodeInvalid = "INVALID"
)

Variables

This section is empty.

Functions

func IsFinalStatus

func IsFinalStatus(s string) bool

IsFinalStatus returns whether this status is a final state which can not be updated anymore.

Types

This section is empty.

Jump to

Keyboard shortcuts

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