Documentation ¶
Index ¶
- type APIServer
- type Bus
- type Friend
- func (p *Friend) CanHandle(messageID uint32) bool
- func (p *Friend) Handle(stream protofriend.FriendService_BidirectionalBinaryDataServer, ...) error
- func (p *Friend) OnPreStop(_ context.Context) (err error)
- func (p *Friend) OnStart(ctx context.Context) (err error)
- func (p *Friend) OnTimerEachDayFun(_ interface{})
- func (p *Friend) OnTimerEachSecondFun(arg interface{})
- func (p *Friend) String() string
- type User
- type UserMgr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIServer ¶
type APIServer struct {
protofriend.UnimplementedFriendServiceServer
}
func (*APIServer) BidirectionalBinaryData ¶
func (s *APIServer) BidirectionalBinaryData(stream protofriend.FriendService_BidirectionalBinaryDataServer) error
type Friend ¶
func (*Friend) Handle ¶
func (p *Friend) Handle(stream protofriend.FriendService_BidirectionalBinaryDataServer, header *pkgmsg.Header, body []byte) error
func (*Friend) OnTimerEachDayFun ¶
func (p *Friend) OnTimerEachDayFun(_ interface{})
OnTimerEachDayFun 新的一天
func (*Friend) OnTimerEachSecondFun ¶
func (p *Friend) 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 (*UserMgr) DeleteUser ¶
func (*UserMgr) FindByStream ¶
func (p *UserMgr) FindByStream(stream grpc.ServerStream) *User
Click to show internal directories.
Click to hide internal directories.