Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICmdHandler ¶
type IContext ¶
type IContext interface {
Uid() uint64
OriSrcBusId() uint32
Ip() uint32
Flag() uint32
ParseMsg(data []byte, msg proto.Message) error
CallMsgBySvrType(svrType uint32, cmd uint32, req proto.Message, rsp proto.Message) error
CallOtherMsgBySvrType(svrType uint32, cmd uint32, uid uint64, req proto.Message, rsp proto.Message) error
SendMsgBack(pbMsg proto.Message)
SendMsgByServerType(svrType uint32, cmd uint32, req proto.Message) error
Errorf(format string, args ...interface{})
Warningf(format string, args ...interface{})
Infof(format string, args ...interface{})
Debugf(format string, args ...interface{})
}
Transaction 实现了这个借口,在事务运行时保存了上下文
Click to show internal directories.
Click to hide internal directories.