# Constants
No description provided by the author
No description provided by the author
No description provided by the author
CDN system response error 6000-6999.
No description provided by the author
No description provided by the author
No description provided by the author
Client response error 4000-4999.
No description provided by the author
No description provided by the author
Get piece task from other peer error.
No description provided by the author
Wait scheduler response timeout.
When target peer downloads from source slowly, should wait.
Manager response error 7000-7999.
No description provided by the author
No description provided by the author
Common response error 1000-1999.
Scheduler response error 5000-5999.
Task should be forbidden.
Client should try to download from source.
Client should disconnect from scheduler.
Peer not found in scheduler.
Report piece.
Task should be reregister.
Task status is fail.
Framework can not find server node.
Success code 200-299.
No description provided by the author
No description provided by the author
No description provided by the author
LEVEL0 has no special meaning for scheduler.
LEVEL1 represents the download task is forbidden, and an error code is returned during the registration.
LEVEL2 represents when the task is downloaded for the first time, allow peers to download from the other peers, but not back-to-source.
LEVEL3 represents when the task is downloaded for the first time, the normal peer is first to download back-to-source.
LEVEL4 represents when the task is downloaded for the first time, the weak peer is first triggered to back-to-source.
LEVEL5 represents when the task is downloaded for the first time, the strong peer is first triggered to back-to-source.
LEVEL6 represents when the task is downloaded for the first time, the super peer is first triggered to back-to-source.
EMPTY task's content length is equal to zero.
NORMAL task has pieces is more than one piece.
SMALL task's content length is more than 128 byte and has only one piece.
TINY task's content length is less than 128 byte.
UNKNOW task has invalid size scope.
DfCache is dfcache type of task, dfcache task is a cache task, and the task url is fake url.
DfStore is dfstore type of task, dfstore task is a persistent task in backend.
Normal is normal type of task, normal task is a normal p2p task.
# Variables
Enum value maps for Code.
Enum value maps for Code.
No description provided by the author
Enum value maps for PieceStyle.
Enum value maps for PieceStyle.
Enum value maps for Priority.
Enum value maps for Priority.
Enum value maps for SizeScope.
Enum value maps for SizeScope.
Enum value maps for TaskType.
Enum value maps for TaskType.
# Structs
ExtendAttribute is extend attribute.
ExtendAttributeValidationError is the validation error returned by ExtendAttribute.Validate if the designated constraints aren't met.
GrpcDfError represents error of the grpc.
GrpcDfErrorValidationError is the validation error returned by GrpcDfError.Validate if the designated constraints aren't met.
Host metadata.
HostValidationError is the validation error returned by Host.Validate if the designated constraints aren't met.
Piece metadata.
PieceInfoValidationError is the validation error returned by PieceInfo.Validate if the designated constraints aren't met.
Piece metadata.
PiecePacketValidationError is the validation error returned by PiecePacket.Validate if the designated constraints aren't met.
PieceTaskRequest represents request of PieceTask.
PieceTaskRequestValidationError is the validation error returned by PieceTaskRequest.Validate if the designated constraints aren't met.
UrlMeta describes url meta info.
UrlMetaValidationError is the validation error returned by UrlMeta.Validate if the designated constraints aren't met.
# Type aliases
Code represents the code of the grpc api.
ExtendAttributeMultiError is an error wrapping multiple validation errors returned by ExtendAttribute.ValidateAll() if the designated constraints aren't met.
GrpcDfErrorMultiError is an error wrapping multiple validation errors returned by GrpcDfError.ValidateAll() if the designated constraints aren't met.
HostMultiError is an error wrapping multiple validation errors returned by Host.ValidateAll() if the designated constraints aren't met.
PieceInfoMultiError is an error wrapping multiple validation errors returned by PieceInfo.ValidateAll() if the designated constraints aren't met.
PiecePacketMultiError is an error wrapping multiple validation errors returned by PiecePacket.ValidateAll() if the designated constraints aren't met.
PieceStyle represents the style of piece.
PieceTaskRequestMultiError is an error wrapping multiple validation errors returned by PieceTaskRequest.ValidateAll() if the designated constraints aren't met.
Priority represents priority of application.
SizeScope represents size scope of task.
TaskType represents type of task.
UrlMetaMultiError is an error wrapping multiple validation errors returned by UrlMeta.ValidateAll() if the designated constraints aren't met.