1、由于设计不合理,移除 server 包中跨服相关的内容; 2、重构消息处理机制和消息分流机制并优化性能; 3、分流消息支持数据包、定时任务、异步回调的分流; 4、长连接支持获取定时器。
14 lines
816 B
Go
14 lines
816 B
Go
package server
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
ErrConstructed = errors.New("the Server must be constructed using the server.New function")
|
|
ErrCanNotSupportNetwork = errors.New("can not support network")
|
|
ErrNetworkOnlySupportHttp = errors.New("the current network mode is not compatible with HttpRouter, only NetworkHttp is supported")
|
|
ErrNetworkOnlySupportGRPC = errors.New("the current network mode is not compatible with RegGrpcServer, only NetworkGRPC is supported")
|
|
ErrNetworkIncompatibleHttp = errors.New("the current network mode is not compatible with NetworkHttp")
|
|
ErrWebsocketIllegalMessageType = errors.New("illegal message type")
|
|
ErrNoSupportTicker = errors.New("the server does not support Ticker, please use the WithTicker option to create the server")
|
|
)
|