Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultServerPort = ":50051"
)
View Source
const (
// RPC过期时间
RPCTimeout = 30
)
Variables ¶
View Source
var ( // Error的类型 TypeOfError = reflect.TypeOf((*error)(nil)).Elem() TypeOfBytes = reflect.TypeOf(([]byte)(nil)) // 空error NilError = reflect.New(TypeOfError).Elem() )
View Source
var ( ErrExample = errors.New("error example") // 请求处理不过来,堆积太多 ErrRPCServerTooBusy = errors.New("error ErrRPCServerTooBusy") ErrRPCAutoTimeout = errors.New("error rpc auto timeout") )
Errors that can occur during message handling.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.