Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPackageLoss = errors.New("package loss") ErrUserNotFound = errors.New("user not found") ErrRequestNotFound = errors.New("request not found") ErrTargetACKFailed = errors.New("target ack failed") ErrServerFailed = errors.New("server error") ErrBadRequest = errors.New("bad request") ErrBlocked = errors.New("blocked") ErrNotImplemented = errors.New("not implemented") )
View Source
var BufferSize = 64 * 1024
BufferSize 64K (1K == 1024 Byte)
View Source
var DialTimeout = 3 * time.Minute
DialTimeout for transport of direct
View Source
var Network = "tcp"
Network is a tcp dial option
Functions ¶
func AllocateBuffer ¶ added in v1.8.3
func AllocateBuffer() []byte
Types ¶
type Request ¶
func NewRequest ¶
Click to show internal directories.
Click to hide internal directories.