constants

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// Success represents the request is success.
	Success = 200

	CodeSystemError    = 500
	CodeParamError     = 501
	CodeTargetNotFound = 502

	CodePeerFinish      = 600
	CodePeerContinue    = 601
	CodePeerWait        = 602
	CodePeerLimited     = 603
	CodeSuperFail       = 604
	CodeUnknownError    = 605
	CodeTaskConflict    = 606
	CodeURLNotReachable = 607
	CodeNeedAuth        = 608
	CodeWaitAuth        = 609
	CodeSourceError     = 610
)

the response code returned by supernode

View Source
const (
	ResultFail    = 500
	ResultSuc     = 501
	ResultInvalid = 502
	// ResultSemiSuc represents the result is partial successful.
	ResultSemiSuc = 503
)

the code of task result that dfget will report to supernode

View Source
const (
	TaskStatusStart   = 700
	TaskStatusRunning = 701
	TaskStatusFinish  = 702
)

the code of task status that dfget will report to supernode

View Source
const (
	ClientErrorFileNotExist    = "FILE_NOT_EXIST"
	ClientErrorFileMd5NotMatch = "FILE_MD5_NOT_MATCH"
)

the client error when downloading from supernode that dfget will report to supernode

View Source
const (
	// HTTPError represents that there is an error between client and server.
	HTTPError = -100
)

Variables

This section is empty.

Functions

func GetMsgByCode

func GetMsgByCode(code int) string

GetMsgByCode gets the description of the code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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