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 ¶
IsFinalStatus returns whether this status is a final state which can not be updated anymore.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.