Documentation ¶
Index ¶
Constants ¶
View Source
const ( //DefaultSlotSize slot size //素数 DefaultSlotSize = 509 //DefaultQSize default pipe size, total current request can be pipe is 509*1024*8 = 4169728 DefaultQSize = 1024 * 8 )
Variables ¶
View Source
var ( //ErrNoHandler -- no message handler ErrNoHandler = status.Error(codes.Unimplemented, "no.req.handler") //ErrQueueFull -- msg queue is full ErrQueueFull = status.Error(codes.ResourceExhausted, "req.queue.full") //ErrQueueClosed -- msg queue closed ErrQueueClosed = status.Error(codes.Unavailable, "req.queue.closed") //ErrInvalidParam -- invalid msg param ErrInvalidParam = status.Error(codes.InvalidArgument, "invalid.req.param") //ErrInvalidRsp -- invalid result ErrInvalidRsp = status.Error(codes.Internal, "invalid.rsp.msg") )
Functions ¶
func ConvertQueueErr ¶
ConvertQueueErr convert msg queue error
func NormalizeSlotIndex ¶
NormalizeSlotIndex slot index
Types ¶
Click to show internal directories.
Click to hide internal directories.