Documentation
¶
Index ¶
- func GateLogoutReq(protoHead libpb.IHeader, protoMessage proto.Message, obj interface{}) *liberror.Error
- func GateRegisterReq(protoHead libpb.IHeader, protoMessage proto.Message, obj interface{}) *liberror.Error
- func RecvError(err error, fun func())
- type APIServer
- type Bus
- type Friend
- type FriendMgr
- type Gate
- func (p *Gate) CanHandle(messageID uint32) bool
- func (p *Gate) Handle(stream protogate.GateService_BidirectionalBinaryDataServer, ...) error
- func (p *Gate) OnPreStop(_ context.Context) (err error)
- func (p *Gate) OnStart(_ context.Context) (err error)
- func (p *Gate) OnTimerEachDayFun(_ interface{})
- func (p *Gate) OnTimerEachSecondFun(arg interface{})
- func (p *Gate) String() string
- type Router
- type User
- type UserMgr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GateLogoutReq ¶
func GateRegisterReq ¶
Types ¶
type APIServer ¶
type APIServer struct {
protogate.UnimplementedGateServiceServer
}
func (*APIServer) BidirectionalBinaryData ¶
func (s *APIServer) BidirectionalBinaryData(stream protogate.GateService_BidirectionalBinaryDataServer) error
type Friend ¶
type Friend struct {
*pkgservice.Service
}
type FriendMgr ¶
func (*FriendMgr) SpawnFriend ¶
func (p *FriendMgr) SpawnFriend(key string, stream grpc.ServerStream) *Friend
type Gate ¶
func (*Gate) OnTimerEachDayFun ¶
func (p *Gate) OnTimerEachDayFun(_ interface{})
OnTimerEachDayFun 新的一天
func (*Gate) OnTimerEachSecondFun ¶
func (p *Gate) OnTimerEachSecondFun(arg interface{})
OnTimerEachSecondFun 新的一秒
type User ¶
type User struct { Stream grpc.ServerStream // contains filtered or unexported fields }
User 用户
type UserMgr ¶
type UserMgr struct {
// contains filtered or unexported fields
}
func NewUserMgr ¶
func NewUserMgr() *UserMgr
func (*UserMgr) DeleteUser ¶
func (*UserMgr) FindByStream ¶
func (p *UserMgr) FindByStream(stream grpc.ServerStream) *User
Click to show internal directories.
Click to hide internal directories.