SYMBOL INDEX (904 symbols across 82 files) FILE: api/comet/comet.pb.go constant _ (line 26) | _ = proto.ProtoPackageIsVersion3 type PushMsgReq (line 28) | type PushMsgReq struct method Reset (line 37) | func (m *PushMsgReq) Reset() { *m = PushMsgReq{} } method String (line 38) | func (m *PushMsgReq) String() string { return proto.CompactTextString(... method ProtoMessage (line 39) | func (*PushMsgReq) ProtoMessage() {} method Descriptor (line 40) | func (*PushMsgReq) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 44) | func (m *PushMsgReq) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 47) | func (m *PushMsgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte... method XXX_Merge (line 50) | func (m *PushMsgReq) XXX_Merge(src proto.Message) { method XXX_Size (line 53) | func (m *PushMsgReq) XXX_Size() int { method XXX_DiscardUnknown (line 56) | func (m *PushMsgReq) XXX_DiscardUnknown() { method GetKeys (line 62) | func (m *PushMsgReq) GetKeys() []string { method GetProtoOp (line 69) | func (m *PushMsgReq) GetProtoOp() int32 { method GetProto (line 76) | func (m *PushMsgReq) GetProto() *protocol.Proto { type PushMsgReply (line 83) | type PushMsgReply struct method Reset (line 89) | func (m *PushMsgReply) Reset() { *m = PushMsgReply{} } method String (line 90) | func (m *PushMsgReply) String() string { return proto.CompactTextStrin... method ProtoMessage (line 91) | func (*PushMsgReply) ProtoMessage() {} method Descriptor (line 92) | func (*PushMsgReply) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 96) | func (m *PushMsgReply) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 99) | func (m *PushMsgReply) XXX_Marshal(b []byte, deterministic bool) ([]by... method XXX_Merge (line 102) | func (m *PushMsgReply) XXX_Merge(src proto.Message) { method XXX_Size (line 105) | func (m *PushMsgReply) XXX_Size() int { method XXX_DiscardUnknown (line 108) | func (m *PushMsgReply) XXX_DiscardUnknown() { type BroadcastReq (line 114) | type BroadcastReq struct method Reset (line 123) | func (m *BroadcastReq) Reset() { *m = BroadcastReq{} } method String (line 124) | func (m *BroadcastReq) String() string { return proto.CompactTextStrin... method ProtoMessage (line 125) | func (*BroadcastReq) ProtoMessage() {} method Descriptor (line 126) | func (*BroadcastReq) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 130) | func (m *BroadcastReq) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 133) | func (m *BroadcastReq) XXX_Marshal(b []byte, deterministic bool) ([]by... method XXX_Merge (line 136) | func (m *BroadcastReq) XXX_Merge(src proto.Message) { method XXX_Size (line 139) | func (m *BroadcastReq) XXX_Size() int { method XXX_DiscardUnknown (line 142) | func (m *BroadcastReq) XXX_DiscardUnknown() { method GetProtoOp (line 148) | func (m *BroadcastReq) GetProtoOp() int32 { method GetProto (line 155) | func (m *BroadcastReq) GetProto() *protocol.Proto { method GetSpeed (line 162) | func (m *BroadcastReq) GetSpeed() int32 { type BroadcastReply (line 169) | type BroadcastReply struct method Reset (line 175) | func (m *BroadcastReply) Reset() { *m = BroadcastReply{} } method String (line 176) | func (m *BroadcastReply) String() string { return proto.CompactTextStr... method ProtoMessage (line 177) | func (*BroadcastReply) ProtoMessage() {} method Descriptor (line 178) | func (*BroadcastReply) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 182) | func (m *BroadcastReply) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 185) | func (m *BroadcastReply) XXX_Marshal(b []byte, deterministic bool) ([]... method XXX_Merge (line 188) | func (m *BroadcastReply) XXX_Merge(src proto.Message) { method XXX_Size (line 191) | func (m *BroadcastReply) XXX_Size() int { method XXX_DiscardUnknown (line 194) | func (m *BroadcastReply) XXX_DiscardUnknown() { type BroadcastRoomReq (line 200) | type BroadcastRoomReq struct method Reset (line 208) | func (m *BroadcastRoomReq) Reset() { *m = BroadcastRoomReq{} } method String (line 209) | func (m *BroadcastRoomReq) String() string { return proto.CompactTextS... method ProtoMessage (line 210) | func (*BroadcastRoomReq) ProtoMessage() {} method Descriptor (line 211) | func (*BroadcastRoomReq) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 215) | func (m *BroadcastRoomReq) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 218) | func (m *BroadcastRoomReq) XXX_Marshal(b []byte, deterministic bool) (... method XXX_Merge (line 221) | func (m *BroadcastRoomReq) XXX_Merge(src proto.Message) { method XXX_Size (line 224) | func (m *BroadcastRoomReq) XXX_Size() int { method XXX_DiscardUnknown (line 227) | func (m *BroadcastRoomReq) XXX_DiscardUnknown() { method GetRoomID (line 233) | func (m *BroadcastRoomReq) GetRoomID() string { method GetProto (line 240) | func (m *BroadcastRoomReq) GetProto() *protocol.Proto { type BroadcastRoomReply (line 247) | type BroadcastRoomReply struct method Reset (line 253) | func (m *BroadcastRoomReply) Reset() { *m = BroadcastRoomReply... method String (line 254) | func (m *BroadcastRoomReply) String() string { return proto.CompactTex... method ProtoMessage (line 255) | func (*BroadcastRoomReply) ProtoMessage() {} method Descriptor (line 256) | func (*BroadcastRoomReply) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 260) | func (m *BroadcastRoomReply) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 263) | func (m *BroadcastRoomReply) XXX_Marshal(b []byte, deterministic bool)... method XXX_Merge (line 266) | func (m *BroadcastRoomReply) XXX_Merge(src proto.Message) { method XXX_Size (line 269) | func (m *BroadcastRoomReply) XXX_Size() int { method XXX_DiscardUnknown (line 272) | func (m *BroadcastRoomReply) XXX_DiscardUnknown() { type RoomsReq (line 278) | type RoomsReq struct method Reset (line 284) | func (m *RoomsReq) Reset() { *m = RoomsReq{} } method String (line 285) | func (m *RoomsReq) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 286) | func (*RoomsReq) ProtoMessage() {} method Descriptor (line 287) | func (*RoomsReq) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 291) | func (m *RoomsReq) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 294) | func (m *RoomsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, ... method XXX_Merge (line 297) | func (m *RoomsReq) XXX_Merge(src proto.Message) { method XXX_Size (line 300) | func (m *RoomsReq) XXX_Size() int { method XXX_DiscardUnknown (line 303) | func (m *RoomsReq) XXX_DiscardUnknown() { type RoomsReply (line 309) | type RoomsReply struct method Reset (line 316) | func (m *RoomsReply) Reset() { *m = RoomsReply{} } method String (line 317) | func (m *RoomsReply) String() string { return proto.CompactTextString(... method ProtoMessage (line 318) | func (*RoomsReply) ProtoMessage() {} method Descriptor (line 319) | func (*RoomsReply) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 323) | func (m *RoomsReply) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 326) | func (m *RoomsReply) XXX_Marshal(b []byte, deterministic bool) ([]byte... method XXX_Merge (line 329) | func (m *RoomsReply) XXX_Merge(src proto.Message) { method XXX_Size (line 332) | func (m *RoomsReply) XXX_Size() int { method XXX_DiscardUnknown (line 335) | func (m *RoomsReply) XXX_DiscardUnknown() { method GetRooms (line 341) | func (m *RoomsReply) GetRooms() map[string]bool { function init (line 348) | func init() { function init (line 360) | func init() { proto.RegisterFile("comet/comet.proto", fileDescriptor_327... constant _ (line 398) | _ = grpc.SupportPackageIsVersion4 type CometClient (line 403) | type CometClient interface type cometClient (line 414) | type cometClient struct method PushMsg (line 422) | func (c *cometClient) PushMsg(ctx context.Context, in *PushMsgReq, opt... method Broadcast (line 431) | func (c *cometClient) Broadcast(ctx context.Context, in *BroadcastReq,... method BroadcastRoom (line 440) | func (c *cometClient) BroadcastRoom(ctx context.Context, in *Broadcast... method Rooms (line 449) | func (c *cometClient) Rooms(ctx context.Context, in *RoomsReq, opts ..... function NewCometClient (line 418) | func NewCometClient(cc *grpc.ClientConn) CometClient { type CometServer (line 459) | type CometServer interface type UnimplementedCometServer (line 471) | type UnimplementedCometServer struct method PushMsg (line 474) | func (*UnimplementedCometServer) PushMsg(ctx context.Context, req *Pus... method Broadcast (line 477) | func (*UnimplementedCometServer) Broadcast(ctx context.Context, req *B... method BroadcastRoom (line 480) | func (*UnimplementedCometServer) BroadcastRoom(ctx context.Context, re... method Rooms (line 483) | func (*UnimplementedCometServer) Rooms(ctx context.Context, req *Rooms... function RegisterCometServer (line 487) | func RegisterCometServer(s *grpc.Server, srv CometServer) { function _Comet_PushMsg_Handler (line 491) | func _Comet_PushMsg_Handler(srv interface{}, ctx context.Context, dec fu... function _Comet_Broadcast_Handler (line 509) | func _Comet_Broadcast_Handler(srv interface{}, ctx context.Context, dec ... function _Comet_BroadcastRoom_Handler (line 527) | func _Comet_BroadcastRoom_Handler(srv interface{}, ctx context.Context, ... function _Comet_Rooms_Handler (line 545) | func _Comet_Rooms_Handler(srv interface{}, ctx context.Context, dec func... FILE: api/logic/logic.pb.go constant _ (line 26) | _ = proto.ProtoPackageIsVersion3 type PushMsg_Type (line 28) | type PushMsg_Type method String (line 48) | func (x PushMsg_Type) String() string { method EnumDescriptor (line 52) | func (PushMsg_Type) EnumDescriptor() ([]byte, []int) { constant PushMsg_PUSH (line 31) | PushMsg_PUSH PushMsg_Type = 0 constant PushMsg_ROOM (line 32) | PushMsg_ROOM PushMsg_Type = 1 constant PushMsg_BROADCAST (line 33) | PushMsg_BROADCAST PushMsg_Type = 2 type PushMsg (line 56) | type PushMsg struct method Reset (line 69) | func (m *PushMsg) Reset() { *m = PushMsg{} } method String (line 70) | func (m *PushMsg) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 71) | func (*PushMsg) ProtoMessage() {} method Descriptor (line 72) | func (*PushMsg) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 76) | func (m *PushMsg) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 79) | func (m *PushMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, e... method XXX_Merge (line 82) | func (m *PushMsg) XXX_Merge(src proto.Message) { method XXX_Size (line 85) | func (m *PushMsg) XXX_Size() int { method XXX_DiscardUnknown (line 88) | func (m *PushMsg) XXX_DiscardUnknown() { method GetType (line 94) | func (m *PushMsg) GetType() PushMsg_Type { method GetOperation (line 101) | func (m *PushMsg) GetOperation() int32 { method GetSpeed (line 108) | func (m *PushMsg) GetSpeed() int32 { method GetServer (line 115) | func (m *PushMsg) GetServer() string { method GetRoom (line 122) | func (m *PushMsg) GetRoom() string { method GetKeys (line 129) | func (m *PushMsg) GetKeys() []string { method GetMsg (line 136) | func (m *PushMsg) GetMsg() []byte { type ConnectReq (line 143) | type ConnectReq struct method Reset (line 152) | func (m *ConnectReq) Reset() { *m = ConnectReq{} } method String (line 153) | func (m *ConnectReq) String() string { return proto.CompactTextString(... method ProtoMessage (line 154) | func (*ConnectReq) ProtoMessage() {} method Descriptor (line 155) | func (*ConnectReq) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 159) | func (m *ConnectReq) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 162) | func (m *ConnectReq) XXX_Marshal(b []byte, deterministic bool) ([]byte... method XXX_Merge (line 165) | func (m *ConnectReq) XXX_Merge(src proto.Message) { method XXX_Size (line 168) | func (m *ConnectReq) XXX_Size() int { method XXX_DiscardUnknown (line 171) | func (m *ConnectReq) XXX_DiscardUnknown() { method GetServer (line 177) | func (m *ConnectReq) GetServer() string { method GetCookie (line 184) | func (m *ConnectReq) GetCookie() string { method GetToken (line 191) | func (m *ConnectReq) GetToken() []byte { type ConnectReply (line 198) | type ConnectReply struct method Reset (line 209) | func (m *ConnectReply) Reset() { *m = ConnectReply{} } method String (line 210) | func (m *ConnectReply) String() string { return proto.CompactTextStrin... method ProtoMessage (line 211) | func (*ConnectReply) ProtoMessage() {} method Descriptor (line 212) | func (*ConnectReply) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 216) | func (m *ConnectReply) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 219) | func (m *ConnectReply) XXX_Marshal(b []byte, deterministic bool) ([]by... method XXX_Merge (line 222) | func (m *ConnectReply) XXX_Merge(src proto.Message) { method XXX_Size (line 225) | func (m *ConnectReply) XXX_Size() int { method XXX_DiscardUnknown (line 228) | func (m *ConnectReply) XXX_DiscardUnknown() { method GetMid (line 234) | func (m *ConnectReply) GetMid() int64 { method GetKey (line 241) | func (m *ConnectReply) GetKey() string { method GetRoomID (line 248) | func (m *ConnectReply) GetRoomID() string { method GetAccepts (line 255) | func (m *ConnectReply) GetAccepts() []int32 { method GetHeartbeat (line 262) | func (m *ConnectReply) GetHeartbeat() int64 { type DisconnectReq (line 269) | type DisconnectReq struct method Reset (line 278) | func (m *DisconnectReq) Reset() { *m = DisconnectReq{} } method String (line 279) | func (m *DisconnectReq) String() string { return proto.CompactTextStri... method ProtoMessage (line 280) | func (*DisconnectReq) ProtoMessage() {} method Descriptor (line 281) | func (*DisconnectReq) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 285) | func (m *DisconnectReq) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 288) | func (m *DisconnectReq) XXX_Marshal(b []byte, deterministic bool) ([]b... method XXX_Merge (line 291) | func (m *DisconnectReq) XXX_Merge(src proto.Message) { method XXX_Size (line 294) | func (m *DisconnectReq) XXX_Size() int { method XXX_DiscardUnknown (line 297) | func (m *DisconnectReq) XXX_DiscardUnknown() { method GetMid (line 303) | func (m *DisconnectReq) GetMid() int64 { method GetKey (line 310) | func (m *DisconnectReq) GetKey() string { method GetServer (line 317) | func (m *DisconnectReq) GetServer() string { type DisconnectReply (line 324) | type DisconnectReply struct method Reset (line 331) | func (m *DisconnectReply) Reset() { *m = DisconnectReply{} } method String (line 332) | func (m *DisconnectReply) String() string { return proto.CompactTextSt... method ProtoMessage (line 333) | func (*DisconnectReply) ProtoMessage() {} method Descriptor (line 334) | func (*DisconnectReply) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 338) | func (m *DisconnectReply) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 341) | func (m *DisconnectReply) XXX_Marshal(b []byte, deterministic bool) ([... method XXX_Merge (line 344) | func (m *DisconnectReply) XXX_Merge(src proto.Message) { method XXX_Size (line 347) | func (m *DisconnectReply) XXX_Size() int { method XXX_DiscardUnknown (line 350) | func (m *DisconnectReply) XXX_DiscardUnknown() { method GetHas (line 356) | func (m *DisconnectReply) GetHas() bool { type HeartbeatReq (line 363) | type HeartbeatReq struct method Reset (line 372) | func (m *HeartbeatReq) Reset() { *m = HeartbeatReq{} } method String (line 373) | func (m *HeartbeatReq) String() string { return proto.CompactTextStrin... method ProtoMessage (line 374) | func (*HeartbeatReq) ProtoMessage() {} method Descriptor (line 375) | func (*HeartbeatReq) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 379) | func (m *HeartbeatReq) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 382) | func (m *HeartbeatReq) XXX_Marshal(b []byte, deterministic bool) ([]by... method XXX_Merge (line 385) | func (m *HeartbeatReq) XXX_Merge(src proto.Message) { method XXX_Size (line 388) | func (m *HeartbeatReq) XXX_Size() int { method XXX_DiscardUnknown (line 391) | func (m *HeartbeatReq) XXX_DiscardUnknown() { method GetMid (line 397) | func (m *HeartbeatReq) GetMid() int64 { method GetKey (line 404) | func (m *HeartbeatReq) GetKey() string { method GetServer (line 411) | func (m *HeartbeatReq) GetServer() string { type HeartbeatReply (line 418) | type HeartbeatReply struct method Reset (line 424) | func (m *HeartbeatReply) Reset() { *m = HeartbeatReply{} } method String (line 425) | func (m *HeartbeatReply) String() string { return proto.CompactTextStr... method ProtoMessage (line 426) | func (*HeartbeatReply) ProtoMessage() {} method Descriptor (line 427) | func (*HeartbeatReply) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 431) | func (m *HeartbeatReply) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 434) | func (m *HeartbeatReply) XXX_Marshal(b []byte, deterministic bool) ([]... method XXX_Merge (line 437) | func (m *HeartbeatReply) XXX_Merge(src proto.Message) { method XXX_Size (line 440) | func (m *HeartbeatReply) XXX_Size() int { method XXX_DiscardUnknown (line 443) | func (m *HeartbeatReply) XXX_DiscardUnknown() { type OnlineReq (line 449) | type OnlineReq struct method Reset (line 457) | func (m *OnlineReq) Reset() { *m = OnlineReq{} } method String (line 458) | func (m *OnlineReq) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 459) | func (*OnlineReq) ProtoMessage() {} method Descriptor (line 460) | func (*OnlineReq) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 464) | func (m *OnlineReq) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 467) | func (m *OnlineReq) XXX_Marshal(b []byte, deterministic bool) ([]byte,... method XXX_Merge (line 470) | func (m *OnlineReq) XXX_Merge(src proto.Message) { method XXX_Size (line 473) | func (m *OnlineReq) XXX_Size() int { method XXX_DiscardUnknown (line 476) | func (m *OnlineReq) XXX_DiscardUnknown() { method GetServer (line 482) | func (m *OnlineReq) GetServer() string { method GetRoomCount (line 489) | func (m *OnlineReq) GetRoomCount() map[string]int32 { type OnlineReply (line 496) | type OnlineReply struct method Reset (line 503) | func (m *OnlineReply) Reset() { *m = OnlineReply{} } method String (line 504) | func (m *OnlineReply) String() string { return proto.CompactTextString... method ProtoMessage (line 505) | func (*OnlineReply) ProtoMessage() {} method Descriptor (line 506) | func (*OnlineReply) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 510) | func (m *OnlineReply) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 513) | func (m *OnlineReply) XXX_Marshal(b []byte, deterministic bool) ([]byt... method XXX_Merge (line 516) | func (m *OnlineReply) XXX_Merge(src proto.Message) { method XXX_Size (line 519) | func (m *OnlineReply) XXX_Size() int { method XXX_DiscardUnknown (line 522) | func (m *OnlineReply) XXX_DiscardUnknown() { method GetAllRoomCount (line 528) | func (m *OnlineReply) GetAllRoomCount() map[string]int32 { type ReceiveReq (line 535) | type ReceiveReq struct method Reset (line 543) | func (m *ReceiveReq) Reset() { *m = ReceiveReq{} } method String (line 544) | func (m *ReceiveReq) String() string { return proto.CompactTextString(... method ProtoMessage (line 545) | func (*ReceiveReq) ProtoMessage() {} method Descriptor (line 546) | func (*ReceiveReq) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 550) | func (m *ReceiveReq) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 553) | func (m *ReceiveReq) XXX_Marshal(b []byte, deterministic bool) ([]byte... method XXX_Merge (line 556) | func (m *ReceiveReq) XXX_Merge(src proto.Message) { method XXX_Size (line 559) | func (m *ReceiveReq) XXX_Size() int { method XXX_DiscardUnknown (line 562) | func (m *ReceiveReq) XXX_DiscardUnknown() { method GetMid (line 568) | func (m *ReceiveReq) GetMid() int64 { method GetProto (line 575) | func (m *ReceiveReq) GetProto() *protocol.Proto { type ReceiveReply (line 582) | type ReceiveReply struct method Reset (line 588) | func (m *ReceiveReply) Reset() { *m = ReceiveReply{} } method String (line 589) | func (m *ReceiveReply) String() string { return proto.CompactTextStrin... method ProtoMessage (line 590) | func (*ReceiveReply) ProtoMessage() {} method Descriptor (line 591) | func (*ReceiveReply) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 595) | func (m *ReceiveReply) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 598) | func (m *ReceiveReply) XXX_Marshal(b []byte, deterministic bool) ([]by... method XXX_Merge (line 601) | func (m *ReceiveReply) XXX_Merge(src proto.Message) { method XXX_Size (line 604) | func (m *ReceiveReply) XXX_Size() int { method XXX_DiscardUnknown (line 607) | func (m *ReceiveReply) XXX_DiscardUnknown() { type NodesReq (line 613) | type NodesReq struct method Reset (line 621) | func (m *NodesReq) Reset() { *m = NodesReq{} } method String (line 622) | func (m *NodesReq) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 623) | func (*NodesReq) ProtoMessage() {} method Descriptor (line 624) | func (*NodesReq) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 628) | func (m *NodesReq) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 631) | func (m *NodesReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, ... method XXX_Merge (line 634) | func (m *NodesReq) XXX_Merge(src proto.Message) { method XXX_Size (line 637) | func (m *NodesReq) XXX_Size() int { method XXX_DiscardUnknown (line 640) | func (m *NodesReq) XXX_DiscardUnknown() { method GetPlatform (line 646) | func (m *NodesReq) GetPlatform() string { method GetClientIP (line 653) | func (m *NodesReq) GetClientIP() string { type NodesReply (line 660) | type NodesReply struct method Reset (line 674) | func (m *NodesReply) Reset() { *m = NodesReply{} } method String (line 675) | func (m *NodesReply) String() string { return proto.CompactTextString(... method ProtoMessage (line 676) | func (*NodesReply) ProtoMessage() {} method Descriptor (line 677) | func (*NodesReply) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 681) | func (m *NodesReply) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 684) | func (m *NodesReply) XXX_Marshal(b []byte, deterministic bool) ([]byte... method XXX_Merge (line 687) | func (m *NodesReply) XXX_Merge(src proto.Message) { method XXX_Size (line 690) | func (m *NodesReply) XXX_Size() int { method XXX_DiscardUnknown (line 693) | func (m *NodesReply) XXX_DiscardUnknown() { method GetDomain (line 699) | func (m *NodesReply) GetDomain() string { method GetTcpPort (line 706) | func (m *NodesReply) GetTcpPort() int32 { method GetWsPort (line 713) | func (m *NodesReply) GetWsPort() int32 { method GetWssPort (line 720) | func (m *NodesReply) GetWssPort() int32 { method GetHeartbeat (line 727) | func (m *NodesReply) GetHeartbeat() int32 { method GetNodes (line 734) | func (m *NodesReply) GetNodes() []string { method GetBackoff (line 741) | func (m *NodesReply) GetBackoff() *Backoff { method GetHeartbeatMax (line 748) | func (m *NodesReply) GetHeartbeatMax() int32 { type Backoff (line 755) | type Backoff struct method Reset (line 765) | func (m *Backoff) Reset() { *m = Backoff{} } method String (line 766) | func (m *Backoff) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 767) | func (*Backoff) ProtoMessage() {} method Descriptor (line 768) | func (*Backoff) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 772) | func (m *Backoff) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 775) | func (m *Backoff) XXX_Marshal(b []byte, deterministic bool) ([]byte, e... method XXX_Merge (line 778) | func (m *Backoff) XXX_Merge(src proto.Message) { method XXX_Size (line 781) | func (m *Backoff) XXX_Size() int { method XXX_DiscardUnknown (line 784) | func (m *Backoff) XXX_DiscardUnknown() { method GetMaxDelay (line 790) | func (m *Backoff) GetMaxDelay() int32 { method GetBaseDelay (line 797) | func (m *Backoff) GetBaseDelay() int32 { method GetFactor (line 804) | func (m *Backoff) GetFactor() float32 { method GetJitter (line 811) | func (m *Backoff) GetJitter() float32 { function init (line 818) | func init() { function init (line 838) | func init() { proto.RegisterFile("logic/logic.proto", fileDescriptor_2df... constant _ (line 906) | _ = grpc.SupportPackageIsVersion4 type LogicClient (line 911) | type LogicClient interface type logicClient (line 926) | type logicClient struct method Connect (line 934) | func (c *logicClient) Connect(ctx context.Context, in *ConnectReq, opt... method Disconnect (line 943) | func (c *logicClient) Disconnect(ctx context.Context, in *DisconnectRe... method Heartbeat (line 952) | func (c *logicClient) Heartbeat(ctx context.Context, in *HeartbeatReq,... method RenewOnline (line 961) | func (c *logicClient) RenewOnline(ctx context.Context, in *OnlineReq, ... method Receive (line 970) | func (c *logicClient) Receive(ctx context.Context, in *ReceiveReq, opt... method Nodes (line 979) | func (c *logicClient) Nodes(ctx context.Context, in *NodesReq, opts ..... function NewLogicClient (line 930) | func NewLogicClient(cc *grpc.ClientConn) LogicClient { type LogicServer (line 989) | type LogicServer interface type UnimplementedLogicServer (line 1005) | type UnimplementedLogicServer struct method Connect (line 1008) | func (*UnimplementedLogicServer) Connect(ctx context.Context, req *Con... method Disconnect (line 1011) | func (*UnimplementedLogicServer) Disconnect(ctx context.Context, req *... method Heartbeat (line 1014) | func (*UnimplementedLogicServer) Heartbeat(ctx context.Context, req *H... method RenewOnline (line 1017) | func (*UnimplementedLogicServer) RenewOnline(ctx context.Context, req ... method Receive (line 1020) | func (*UnimplementedLogicServer) Receive(ctx context.Context, req *Rec... method Nodes (line 1023) | func (*UnimplementedLogicServer) Nodes(ctx context.Context, req *Nodes... function RegisterLogicServer (line 1027) | func RegisterLogicServer(s *grpc.Server, srv LogicServer) { function _Logic_Connect_Handler (line 1031) | func _Logic_Connect_Handler(srv interface{}, ctx context.Context, dec fu... function _Logic_Disconnect_Handler (line 1049) | func _Logic_Disconnect_Handler(srv interface{}, ctx context.Context, dec... function _Logic_Heartbeat_Handler (line 1067) | func _Logic_Heartbeat_Handler(srv interface{}, ctx context.Context, dec ... function _Logic_RenewOnline_Handler (line 1085) | func _Logic_RenewOnline_Handler(srv interface{}, ctx context.Context, de... function _Logic_Receive_Handler (line 1103) | func _Logic_Receive_Handler(srv interface{}, ctx context.Context, dec fu... function _Logic_Nodes_Handler (line 1121) | func _Logic_Nodes_Handler(srv interface{}, ctx context.Context, dec func... FILE: api/protocol/operation.go constant OpHandshake (line 5) | OpHandshake = int32(0) constant OpHandshakeReply (line 7) | OpHandshakeReply = int32(1) constant OpHeartbeat (line 10) | OpHeartbeat = int32(2) constant OpHeartbeatReply (line 12) | OpHeartbeatReply = int32(3) constant OpSendMsg (line 15) | OpSendMsg = int32(4) constant OpSendMsgReply (line 17) | OpSendMsgReply = int32(5) constant OpDisconnectReply (line 20) | OpDisconnectReply = int32(6) constant OpAuth (line 23) | OpAuth = int32(7) constant OpAuthReply (line 25) | OpAuthReply = int32(8) constant OpRaw (line 28) | OpRaw = int32(9) constant OpProtoReady (line 31) | OpProtoReady = int32(10) constant OpProtoFinish (line 33) | OpProtoFinish = int32(11) constant OpChangeRoom (line 36) | OpChangeRoom = int32(12) constant OpChangeRoomReply (line 38) | OpChangeRoomReply = int32(13) constant OpSub (line 41) | OpSub = int32(14) constant OpSubReply (line 43) | OpSubReply = int32(15) constant OpUnsub (line 46) | OpUnsub = int32(16) constant OpUnsubReply (line 48) | OpUnsubReply = int32(17) FILE: api/protocol/protocol.go constant MaxBodySize (line 14) | MaxBodySize = int32(1 << 12) constant _packSize (line 19) | _packSize = 4 constant _headerSize (line 20) | _headerSize = 2 constant _verSize (line 21) | _verSize = 2 constant _opSize (line 22) | _opSize = 4 constant _seqSize (line 23) | _seqSize = 4 constant _heartSize (line 24) | _heartSize = 4 constant _rawHeaderSize (line 25) | _rawHeaderSize = _packSize + _headerSize + _verSize + _opSize + _seqSize constant _maxPackSize (line 26) | _maxPackSize = MaxBodySize + int32(_rawHeaderSize) constant _packOffset (line 28) | _packOffset = 0 constant _headerOffset (line 29) | _headerOffset = _packOffset + _packSize constant _verOffset (line 30) | _verOffset = _headerOffset + _headerSize constant _opOffset (line 31) | _opOffset = _verOffset + _verSize constant _seqOffset (line 32) | _seqOffset = _opOffset + _opSize constant _heartOffset (line 33) | _heartOffset = _seqOffset + _seqSize method WriteTo (line 51) | func (p *Proto) WriteTo(b *bytes.Writer) { method ReadTCP (line 67) | func (p *Proto) ReadTCP(rr *bufio.Reader) (err error) { method WriteTCP (line 97) | func (p *Proto) WriteTCP(wr *bufio.Writer) (err error) { method WriteTCPHeart (line 123) | func (p *Proto) WriteTCPHeart(wr *bufio.Writer, online int32) (err error) { method ReadWebsocket (line 144) | func (p *Proto) ReadWebsocket(ws *websocket.Conn) (err error) { method WriteWebsocket (line 177) | func (p *Proto) WriteWebsocket(ws *websocket.Conn) (err error) { method WriteWebsocketHeart (line 201) | func (p *Proto) WriteWebsocketHeart(wr *websocket.Conn, online int32) (e... FILE: api/protocol/protocol.pb.go constant _ (line 21) | _ = proto.ProtoPackageIsVersion3 type Proto (line 26) | type Proto struct method Reset (line 36) | func (m *Proto) Reset() { *m = Proto{} } method String (line 37) | func (m *Proto) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 38) | func (*Proto) ProtoMessage() {} method Descriptor (line 39) | func (*Proto) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 43) | func (m *Proto) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 46) | func (m *Proto) XXX_Marshal(b []byte, deterministic bool) ([]byte, err... method XXX_Merge (line 49) | func (m *Proto) XXX_Merge(src proto.Message) { method XXX_Size (line 52) | func (m *Proto) XXX_Size() int { method XXX_DiscardUnknown (line 55) | func (m *Proto) XXX_DiscardUnknown() { method GetVer (line 61) | func (m *Proto) GetVer() int32 { method GetOp (line 68) | func (m *Proto) GetOp() int32 { method GetSeq (line 75) | func (m *Proto) GetSeq() int32 { method GetBody (line 82) | func (m *Proto) GetBody() []byte { function init (line 89) | func init() { function init (line 93) | func init() { proto.RegisterFile("protocol/protocol.proto", fileDescript... FILE: benchmarks/client/main.go constant opHeartbeat (line 26) | opHeartbeat = int32(2) constant opHeartbeatReply (line 27) | opHeartbeatReply = int32(3) constant opAuth (line 28) | opAuth = int32(7) constant opAuthReply (line 29) | opAuthReply = int32(8) constant rawHeaderLen (line 33) | rawHeaderLen = uint16(16) constant heart (line 34) | heart = 240 * time.Second type Proto (line 38) | type Proto struct type AuthToken (line 48) | type AuthToken struct function main (line 61) | func main() { function result (line 81) | func result() { function client (line 96) | func client(mid int64) { function startClient (line 103) | func startClient(key int64) { function tcpWriteProto (line 187) | func tcpWriteProto(wr *bufio.Writer, proto *Proto) (err error) { function tcpReadProto (line 213) | func tcpReadProto(rd *bufio.Reader, proto *Proto) (err error) { FILE: benchmarks/multi_push/main.go constant testContent (line 26) | testContent = "{\"test\":1}" type pushsBodyMsg (line 28) | type pushsBodyMsg struct function init (line 33) | func init() { function main (line 52) | func main() { function stop (line 91) | func stop() { function startPush (line 95) | func startPush(b, e int) { function httpPost (line 123) | func httpPost(url string, contentType string, body io.Reader) (*http.Res... FILE: benchmarks/push/main.go constant testContent (line 25) | testContent = "{\"test\":1}" type pushBodyMsg (line 27) | type pushBodyMsg struct function init (line 32) | func init() { function main (line 51) | func main() { function stop (line 85) | func stop() { function startPush (line 89) | func startPush(b, e int) { function httpPost (line 122) | func httpPost(url string, contentType string, body io.Reader) (*http.Res... FILE: benchmarks/push_room/main.go function main (line 18) | func main() { function run (line 37) | func run(addr string, delay time.Duration) { function post (line 47) | func post(addr string, i int64) { FILE: benchmarks/push_rooms/main.go constant testContent (line 26) | testContent = "{\"test\":1}" function init (line 28) | func init() { function main (line 46) | func main() { function startPush (line 80) | func startPush(b, e int, delay time.Duration) { FILE: cmd/comet/main.go constant ver (line 28) | ver = "2.0.0" constant appid (line 29) | appid = "goim.comet" function main (line 32) | func main() { function register (line 86) | func register(dis *naming.Discovery, srv *comet.Server) context.CancelFu... FILE: cmd/job/main.go function main (line 21) | func main() { FILE: cmd/logic/main.go constant ver (line 24) | ver = "2.0.0" constant appid (line 25) | appid = "goim.logic" function main (line 28) | func main() { function register (line 66) | func register(dis *naming.Discovery, srv *logic.Logic) context.CancelFunc { FILE: examples/javascript/client.js function connect (line 33) | function connect() { function reConnect (line 150) | function reConnect() { FILE: examples/javascript/main.go function main (line 8) | func main() { FILE: internal/comet/bucket.go type Bucket (line 13) | type Bucket struct method ChannelCount (line 42) | func (b *Bucket) ChannelCount() int { method RoomCount (line 47) | func (b *Bucket) RoomCount() int { method RoomsCount (line 52) | func (b *Bucket) RoomsCount() (res map[string]int32) { method ChangeRoom (line 69) | func (b *Bucket) ChangeRoom(nrid string, ch *Channel) (err error) { method Put (line 101) | func (b *Bucket) Put(rid string, ch *Channel) (err error) { method Del (line 128) | func (b *Bucket) Del(dch *Channel) { method Channel (line 150) | func (b *Bucket) Channel(key string) (ch *Channel) { method Broadcast (line 158) | func (b *Bucket) Broadcast(p *protocol.Proto, op int32) { method Room (line 171) | func (b *Bucket) Room(rid string) (room *Room) { method DelRoom (line 179) | func (b *Bucket) DelRoom(room *Room) { method BroadcastRoom (line 187) | func (b *Bucket) BroadcastRoom(arg *pb.BroadcastRoomReq) { method Rooms (line 193) | func (b *Bucket) Rooms() (res map[string]struct{}) { method IPCount (line 210) | func (b *Bucket) IPCount() (res map[string]struct{}) { method UpRoomsCount (line 224) | func (b *Bucket) UpRoomsCount(roomCountMap map[string]int32) { method roomproc (line 237) | func (b *Bucket) roomproc(c chan *pb.BroadcastRoomReq) { function NewBucket (line 26) | func NewBucket(c *conf.Bucket) (b *Bucket) { FILE: internal/comet/channel.go type Channel (line 12) | type Channel struct method Watch (line 38) | func (c *Channel) Watch(accepts ...int32) { method UnWatch (line 47) | func (c *Channel) UnWatch(accepts ...int32) { method NeedPush (line 56) | func (c *Channel) NeedPush(op int32) bool { method Push (line 67) | func (c *Channel) Push(p *protocol.Proto) (err error) { method Ready (line 77) | func (c *Channel) Ready() *protocol.Proto { method Signal (line 82) | func (c *Channel) Signal() { method Close (line 87) | func (c *Channel) Close() { function NewChannel (line 29) | func NewChannel(cli, svr int) *Channel { FILE: internal/comet/conf/conf.go function init (line 30) | func init() { function Init (line 50) | func Init() (err error) { function Default (line 57) | func Default() *Config { type Config (line 109) | type Config struct type Env (line 123) | type Env struct type RPCClient (line 134) | type RPCClient struct type RPCServer (line 140) | type RPCServer struct type TCP (line 152) | type TCP struct type Websocket (line 166) | type Websocket struct type Protocol (line 175) | type Protocol struct type Bucket (line 184) | type Bucket struct type Whitelist (line 193) | type Whitelist struct FILE: internal/comet/grpc/server.go function New (line 18) | func New(c *conf.RPCServer, s *comet.Server) *grpc.Server { type server (line 40) | type server struct method PushMsg (line 47) | func (s *server) PushMsg(ctx context.Context, req *pb.PushMsgReq) (rep... method Broadcast (line 69) | func (s *server) Broadcast(ctx context.Context, req *pb.BroadcastReq) ... method BroadcastRoom (line 87) | func (s *server) BroadcastRoom(ctx context.Context, req *pb.BroadcastR... method Rooms (line 98) | func (s *server) Rooms(ctx context.Context, req *pb.RoomsReq) (*pb.Roo... FILE: internal/comet/operation.go method Connect (line 17) | func (s *Server) Connect(c context.Context, p *protocol.Proto, cookie st... method Disconnect (line 30) | func (s *Server) Disconnect(c context.Context, mid int64, key string) (e... method Heartbeat (line 40) | func (s *Server) Heartbeat(ctx context.Context, mid int64, key string) (... method RenewOnline (line 50) | func (s *Server) RenewOnline(ctx context.Context, serverID string, roomC... method Receive (line 62) | func (s *Server) Receive(ctx context.Context, mid int64, p *protocol.Pro... method Operate (line 68) | func (s *Server) Operate(ctx context.Context, p *protocol.Proto, ch *Cha... FILE: internal/comet/ring.go type Ring (line 11) | type Ring struct method Init (line 31) | func (r *Ring) Init(num int) { method init (line 35) | func (r *Ring) init(num uint64) { method Get (line 49) | func (r *Ring) Get() (proto *protocol.Proto, err error) { method GetAdv (line 58) | func (r *Ring) GetAdv() { method Set (line 66) | func (r *Ring) Set() (proto *protocol.Proto, err error) { method SetAdv (line 75) | func (r *Ring) SetAdv() { method Reset (line 83) | func (r *Ring) Reset() { function NewRing (line 24) | func NewRing(num int) *Ring { FILE: internal/comet/room.go type Room (line 11) | type Room struct method Put (line 31) | func (r *Room) Put(ch *Channel) (err error) { method Del (line 49) | func (r *Room) Del(ch *Channel) bool { method Push (line 70) | func (r *Room) Push(p *protocol.Proto) { method Close (line 79) | func (r *Room) Close() { method OnlineNum (line 88) | func (r *Room) OnlineNum() int32 { function NewRoom (line 21) | func NewRoom(id string) (r *Room) { FILE: internal/comet/round.go type RoundOptions (line 10) | type RoundOptions struct type Round (line 22) | type Round struct method Timer (line 62) | func (r *Round) Timer(rn int) *time.Timer { method Reader (line 67) | func (r *Round) Reader(rn int) *bytes.Pool { method Writer (line 72) | func (r *Round) Writer(rn int) *bytes.Pool { function NewRound (line 30) | func NewRound(c *conf.Config) (r *Round) { FILE: internal/comet/server.go constant minServerHeartbeat (line 18) | minServerHeartbeat = time.Minute * 10 constant maxServerHeartbeat (line 19) | maxServerHeartbeat = time.Minute * 30 constant grpcInitialWindowSize (line 21) | grpcInitialWindowSize = 1 << 24 constant grpcInitialConnWindowSize (line 22) | grpcInitialConnWindowSize = 1 << 24 constant grpcMaxSendMsgSize (line 23) | grpcMaxSendMsgSize = 1 << 24 constant grpcMaxCallMsgSize (line 24) | grpcMaxCallMsgSize = 1 << 24 constant grpcKeepAliveTime (line 25) | grpcKeepAliveTime = time.Second * 10 constant grpcKeepAliveTimeout (line 26) | grpcKeepAliveTimeout = time.Second * 3 constant grpcBackoffMaxDelay (line 27) | grpcBackoffMaxDelay = time.Second * 3 function newLogicClient (line 30) | func newLogicClient(c *conf.RPCClient) logic.LogicClient { type Server (line 55) | type Server struct method Buckets (line 84) | func (s *Server) Buckets() []*Bucket { method Bucket (line 89) | func (s *Server) Bucket(subKey string) *Bucket { method RandServerHearbeat (line 98) | func (s *Server) RandServerHearbeat() time.Duration { method Close (line 103) | func (s *Server) Close() (err error) { method onlineproc (line 107) | func (s *Server) onlineproc() { function NewServer (line 66) | func NewServer(c *conf.Config) *Server { FILE: internal/comet/server_tcp.go constant maxInt (line 19) | maxInt = 1<<31 - 1 function InitTCP (line 23) | func InitTCP(server *Server, addrs []string, accept int) (err error) { function acceptTCP (line 50) | func acceptTCP(server *Server, lis *net.TCPListener) { function serveTCP (line 81) | func serveTCP(s *Server, conn *net.TCPConn, r int) { method ServeTCP (line 98) | func (s *Server) ServeTCP(conn *net.TCPConn, rp, wp *bytes.Pool, tr *xti... method dispatchTCP (line 223) | func (s *Server) dispatchTCP(conn *net.TCPConn, wr *bufio.Writer, wp *by... method authTCP (line 326) | func (s *Server) authTCP(ctx context.Context, rr *bufio.Reader, wr *bufi... FILE: internal/comet/server_websocket.go function InitWebsocket (line 20) | func InitWebsocket(server *Server, addrs []string, accept int) (err erro... function InitWebsocketWithTLS (line 45) | func InitWebsocketWithTLS(server *Server, addrs []string, certFile, priv... function acceptWebsocket (line 81) | func acceptWebsocket(server *Server, lis *net.TCPListener) { function acceptWebsocketWithTLS (line 115) | func acceptWebsocketWithTLS(server *Server, lis net.Listener) { function serveWebsocket (line 134) | func serveWebsocket(s *Server, conn net.Conn, r int) { method ServeWebsocket (line 151) | func (s *Server) ServeWebsocket(conn net.Conn, rp, wp *bytes.Pool, tr *x... method dispatchWebsocket (line 306) | func (s *Server) dispatchWebsocket(ws *websocket.Conn, wp *bytes.Pool, w... method authWebsocket (line 408) | func (s *Server) authWebsocket(ctx context.Context, ws *websocket.Conn, ... FILE: internal/comet/whitelist.go type Whitelist (line 13) | type Whitelist struct method Contains (line 36) | func (w *Whitelist) Contains(mid int64) (ok bool) { method Printf (line 44) | func (w *Whitelist) Printf(format string, v ...interface{}) { function InitWhitelist (line 19) | func InitWhitelist(c *conf.Whitelist) (err error) { FILE: internal/job/comet.go constant grpcInitialWindowSize (line 30) | grpcInitialWindowSize = 1 << 24 constant grpcInitialConnWindowSize (line 31) | grpcInitialConnWindowSize = 1 << 24 function newCometClient (line 34) | func newCometClient(addr string) (comet.CometClient, error) { type Comet (line 59) | type Comet struct method Push (line 107) | func (c *Comet) Push(arg *comet.PushMsgReq) (err error) { method BroadcastRoom (line 114) | func (c *Comet) BroadcastRoom(arg *comet.BroadcastRoomReq) (err error) { method Broadcast (line 121) | func (c *Comet) Broadcast(arg *comet.BroadcastReq) (err error) { method process (line 126) | func (c *Comet) process(pushChan chan *comet.PushMsgReq, roomChan chan... method Close (line 162) | func (c *Comet) Close() (err error) { function NewComet (line 74) | func NewComet(in *naming.Instance, c *conf.Comet) (*Comet, error) { FILE: internal/job/conf/conf.go function init (line 23) | func init() { function Init (line 35) | func Init() (err error) { function Default (line 42) | func Default() *Config { type Config (line 56) | type Config struct type Room (line 65) | type Room struct type Comet (line 72) | type Comet struct type Kafka (line 78) | type Kafka struct type Env (line 85) | type Env struct FILE: internal/job/job.go type Job (line 19) | type Job struct method Close (line 51) | func (j *Job) Close() error { method Consume (line 59) | func (j *Job) Consume() { method watchComet (line 85) | func (j *Job) watchComet(c *naming.Config) { method newAddress (line 121) | func (j *Job) newAddress(insMap map[string][]*naming.Instance) error { function New (line 29) | func New(c *conf.Config) *Job { function newKafkaSub (line 39) | func newKafkaSub(c *conf.Kafka) *cluster.Consumer { FILE: internal/job/push.go method push (line 14) | func (j *Job) push(ctx context.Context, pushMsg *pb.PushMsg) (err error) { method pushKeys (line 29) | func (j *Job) pushKeys(operation int32, serverID string, subKeys []strin... method broadcast (line 54) | func (j *Job) broadcast(operation int32, body []byte, speed int32) (err ... method broadcastRoomRawBytes (line 81) | func (j *Job) broadcastRoomRawBytes(roomID string, body []byte) (err err... FILE: internal/job/room.go type Room (line 25) | type Room struct method Push (line 45) | func (r *Room) Push(op int32, msg []byte) (err error) { method pushproc (line 60) | func (r *Room) pushproc(batch int, sigTime time.Duration) { function NewRoom (line 33) | func NewRoom(job *Job, id string, c *conf.Room) (r *Room) { method delRoom (line 110) | func (j *Job) delRoom(roomID string) { method getRoom (line 116) | func (j *Job) getRoom(roomID string) *Room { FILE: internal/logic/balancer.go constant _minWeight (line 17) | _minWeight = 1 constant _maxWeight (line 18) | _maxWeight = 1 << 20 constant _maxNodes (line 19) | _maxNodes = 5 type weightedNode (line 22) | type weightedNode struct method String (line 32) | func (w *weightedNode) String() string { method chosen (line 36) | func (w *weightedNode) chosen() { method reset (line 40) | func (w *weightedNode) reset() { method calculateWeight (line 44) | func (w *weightedNode) calculateWeight(totalWeight, totalConns int64, ... type LoadBalancer (line 78) | type LoadBalancer struct method Size (line 94) | func (lb *LoadBalancer) Size() int { method weightedNodes (line 98) | func (lb *LoadBalancer) weightedNodes(region string, regionWeight floa... method NodeAddrs (line 118) | func (lb *LoadBalancer) NodeAddrs(region, domain string, regionWeight ... method Update (line 133) | func (lb *LoadBalancer) Update(ins []*naming.Instance) { function NewLoadBalancer (line 86) | func NewLoadBalancer() *LoadBalancer { FILE: internal/logic/balancer_test.go function TestWeightedNode (line 11) | func TestWeightedNode(t *testing.T) { function TestLoadBalancer (line 33) | func TestLoadBalancer(t *testing.T) { FILE: internal/logic/conf/conf.go function init (line 27) | func init() { function Init (line 41) | func Init() (err error) { function Default (line 48) | func Default() *Config { type Config (line 74) | type Config struct type Env (line 88) | type Env struct type Node (line 97) | type Node struct type Backoff (line 109) | type Backoff struct type Redis (line 117) | type Redis struct type Kafka (line 131) | type Kafka struct type RPCClient (line 137) | type RPCClient struct type RPCServer (line 143) | type RPCServer struct type HTTPServer (line 155) | type HTTPServer struct FILE: internal/logic/conn.go method Connect (line 15) | func (l *Logic) Connect(c context.Context, server, cookie string, token ... method Disconnect (line 42) | func (l *Logic) Disconnect(c context.Context, mid int64, key, server str... method Heartbeat (line 52) | func (l *Logic) Heartbeat(c context.Context, mid int64, key, server stri... method RenewOnline (line 69) | func (l *Logic) RenewOnline(c context.Context, server string, roomCount ... method Receive (line 82) | func (l *Logic) Receive(c context.Context, mid int64, proto *protocol.Pr... FILE: internal/logic/conn_test.go function TestConnect (line 11) | func TestConnect(t *testing.T) { FILE: internal/logic/dao/dao.go type Dao (line 13) | type Dao struct method Close (line 64) | func (d *Dao) Close() error { method Ping (line 69) | func (d *Dao) Ping(c context.Context) error { function New (line 21) | func New(c *conf.Config) *Dao { function newKafkaPub (line 31) | func newKafkaPub(c *conf.Kafka) kafka.SyncProducer { function newRedis (line 43) | func newRedis(c *conf.Redis) *redis.Pool { FILE: internal/logic/dao/dao_test.go function TestMain (line 16) | func TestMain(m *testing.M) { FILE: internal/logic/dao/kafka.go method PushMsg (line 14) | func (d *Dao) PushMsg(c context.Context, op int32, server string, keys [... method BroadcastRoomMsg (line 38) | func (d *Dao) BroadcastRoomMsg(c context.Context, op int32, room string,... method BroadcastMsg (line 61) | func (d *Dao) BroadcastMsg(c context.Context, op, speed int32, msg []byt... FILE: internal/logic/dao/kafka_test.go function TestDaoPushMsg (line 10) | func TestDaoPushMsg(t *testing.T) { function TestDaoBroadcastRoomMsg (line 22) | func TestDaoBroadcastRoomMsg(t *testing.T) { function TestDaoBroadcastMsg (line 33) | func TestDaoBroadcastMsg(t *testing.T) { FILE: internal/logic/dao/redis.go constant _prefixMidServer (line 17) | _prefixMidServer = "mid_%d" constant _prefixKeyServer (line 18) | _prefixKeyServer = "key_%s" constant _prefixServerOnline (line 19) | _prefixServerOnline = "ol_%s" function keyMidServer (line 22) | func keyMidServer(mid int64) string { function keyKeyServer (line 26) | func keyKeyServer(key string) string { function keyServerOnline (line 30) | func keyServerOnline(key string) string { method pingRedis (line 35) | func (d *Dao) pingRedis(c context.Context) (err error) { method AddMapping (line 46) | func (d *Dao) AddMapping(c context.Context, mid int64, key, server strin... method ExpireMapping (line 83) | func (d *Dao) ExpireMapping(c context.Context, mid int64, key string) (h... method DelMapping (line 112) | func (d *Dao) DelMapping(c context.Context, mid int64, key, server strin... method ServersByKeys (line 141) | func (d *Dao) ServersByKeys(c context.Context, keys []string) (res []str... method KeysByMids (line 155) | func (d *Dao) KeysByMids(c context.Context, mids []int64) (ress map[stri... method AddServerOnline (line 188) | func (d *Dao) AddServerOnline(c context.Context, server string, online *... method addServerOnline (line 208) | func (d *Dao) addServerOnline(c context.Context, key string, hashKey str... method ServerOnline (line 234) | func (d *Dao) ServerOnline(c context.Context, server string) (online *mo... method serverOnline (line 252) | func (d *Dao) serverOnline(c context.Context, key string, hashKey string... method DelServerOnline (line 271) | func (d *Dao) DelServerOnline(c context.Context, server string) (err err... FILE: internal/logic/dao/redis_test.go function TestDaopingRedis (line 11) | func TestDaopingRedis(t *testing.T) { function TestDaoAddMapping (line 16) | func TestDaoAddMapping(t *testing.T) { function TestDaoAddServerOnline (line 52) | func TestDaoAddServerOnline(t *testing.T) { FILE: internal/logic/grpc/server.go function New (line 20) | func New(c *conf.RPCServer, l *logic.Logic) *grpc.Server { type server (line 42) | type server struct method Connect (line 49) | func (s *server) Connect(ctx context.Context, req *pb.ConnectReq) (*pb... method Disconnect (line 58) | func (s *server) Disconnect(ctx context.Context, req *pb.DisconnectReq... method Heartbeat (line 67) | func (s *server) Heartbeat(ctx context.Context, req *pb.HeartbeatReq) ... method RenewOnline (line 75) | func (s *server) RenewOnline(ctx context.Context, req *pb.OnlineReq) (... method Receive (line 84) | func (s *server) Receive(ctx context.Context, req *pb.ReceiveReq) (*pb... method Nodes (line 92) | func (s *server) Nodes(ctx context.Context, req *pb.NodesReq) (*pb.Nod... FILE: internal/logic/http/middleware.go function loggerHandler (line 13) | func loggerHandler(c *gin.Context) { function recoverHandler (line 35) | func recoverHandler(c *gin.Context) { FILE: internal/logic/http/nodes.go method nodesWeighted (line 9) | func (s *Server) nodesWeighted(c *gin.Context) { method nodesInstances (line 21) | func (s *Server) nodesInstances(c *gin.Context) { FILE: internal/logic/http/online.go method onlineTop (line 9) | func (s *Server) onlineTop(c *gin.Context) { method onlineRoom (line 26) | func (s *Server) onlineRoom(c *gin.Context) { method onlineTotal (line 43) | func (s *Server) onlineTotal(c *gin.Context) { FILE: internal/logic/http/push.go method pushKeys (line 10) | func (s *Server) pushKeys(c *gin.Context) { method pushMids (line 32) | func (s *Server) pushMids(c *gin.Context) { method pushRoom (line 54) | func (s *Server) pushRoom(c *gin.Context) { method pushAll (line 77) | func (s *Server) pushAll(c *gin.Context) { FILE: internal/logic/http/result.go constant OK (line 9) | OK = 0 constant RequestErr (line 11) | RequestErr = -400 constant ServerErr (line 13) | ServerErr = -500 constant contextErrCode (line 15) | contextErrCode = "context/err/code" type resp (line 18) | type resp struct function errors (line 24) | func errors(c *gin.Context, code int, msg string) { function result (line 32) | func result(c *gin.Context, data interface{}, code int) { FILE: internal/logic/http/server.go type Server (line 11) | type Server struct method initRouter (line 33) | func (s *Server) initRouter() { method Close (line 47) | func (s *Server) Close() { function New (line 17) | func New(c *conf.HTTPServer, l *logic.Logic) *Server { FILE: internal/logic/logic.go constant _onlineTick (line 16) | _onlineTick = time.Second * 10 constant _onlineDeadline (line 17) | _onlineDeadline = time.Minute * 5 type Logic (line 21) | type Logic struct method Ping (line 52) | func (l *Logic) Ping(c context.Context) (err error) { method Close (line 57) | func (l *Logic) Close() { method initRegions (line 61) | func (l *Logic) initRegions() { method initNodes (line 69) | func (l *Logic) initNodes() { method newNodes (line 92) | func (l *Logic) newNodes(res naming.Resolver) { method onlineproc (line 132) | func (l *Logic) onlineproc() { method loadOnline (line 141) | func (l *Logic) loadOnline() (err error) { function New (line 36) | func New(c *conf.Config) (l *Logic) { FILE: internal/logic/logic_test.go function TestMain (line 16) | func TestMain(m *testing.M) { FILE: internal/logic/model/metadata.go constant MetaWeight (line 5) | MetaWeight = "weight" constant MetaOffline (line 7) | MetaOffline = "offline" constant MetaAddrs (line 9) | MetaAddrs = "addrs" constant MetaIPCount (line 11) | MetaIPCount = "ip_count" constant MetaConnCount (line 13) | MetaConnCount = "conn_count" constant PlatformWeb (line 16) | PlatformWeb = "web" FILE: internal/logic/model/online.go type Online (line 4) | type Online struct type Top (line 11) | type Top struct FILE: internal/logic/model/room.go function EncodeRoomKey (line 9) | func EncodeRoomKey(typ string, room string) string { function DecodeRoomKey (line 14) | func DecodeRoomKey(key string) (string, string, error) { FILE: internal/logic/nodes.go method NodesInstances (line 14) | func (l *Logic) NodesInstances(c context.Context) (res []*naming.Instanc... method NodesWeighted (line 19) | func (l *Logic) NodesWeighted(c context.Context, platform, clientIP stri... method nodeAddrs (line 46) | func (l *Logic) nodeAddrs(c context.Context, clientIP string) (domains, ... method location (line 59) | func (l *Logic) location(c context.Context, clientIP string) (province s... FILE: internal/logic/nodes_test.go function TestNodes (line 13) | func TestNodes(t *testing.T) { FILE: internal/logic/online.go method OnlineTop (line 16) | func (l *Logic) OnlineTop(c context.Context, typ string, n int) (tops []... method OnlineRoom (line 43) | func (l *Logic) OnlineRoom(c context.Context, typ string, rooms []string... method OnlineTotal (line 52) | func (l *Logic) OnlineTotal(c context.Context) (int64, int64) { FILE: internal/logic/online_test.go function TestOnline (line 10) | func TestOnline(t *testing.T) { FILE: internal/logic/push.go method PushKeys (line 12) | func (l *Logic) PushKeys(c context.Context, op int32, keys []string, msg... method PushMids (line 33) | func (l *Logic) PushMids(c context.Context, op int32, mids []int64, msg ... method PushRoom (line 55) | func (l *Logic) PushRoom(c context.Context, op int32, typ, room string, ... method PushAll (line 60) | func (l *Logic) PushAll(c context.Context, op, speed int32, msg []byte) ... FILE: internal/logic/push_test.go function TestPushKeys (line 10) | func TestPushKeys(t *testing.T) { function TestPushMids (line 21) | func TestPushMids(t *testing.T) { function TestPushRoom (line 32) | func TestPushRoom(t *testing.T) { function TestPushAll (line 44) | func TestPushAll(t *testing.T) { FILE: pkg/bufio/bufio.go constant defaultBufSize (line 17) | defaultBufSize = 4096 type Reader (line 34) | type Reader struct method Reset (line 68) | func (b *Reader) Reset(r io.Reader) { method ResetBuffer (line 74) | func (b *Reader) ResetBuffer(r io.Reader, buf []byte) { method reset (line 78) | func (b *Reader) reset(buf []byte, r io.Reader) { method fill (line 88) | func (b *Reader) fill() { method readErr (line 118) | func (b *Reader) readErr() error { method Peek (line 128) | func (b *Reader) Peek(n int) ([]byte, error) { method Pop (line 156) | func (b *Reader) Pop(n int) ([]byte, error) { method Discard (line 170) | func (b *Reader) Discard(n int) (discarded int, err error) { method Read (line 203) | func (b *Reader) Read(p []byte) (n int, err error) { method ReadByte (line 235) | func (b *Reader) ReadByte() (c byte, err error) { method ReadSlice (line 259) | func (b *Reader) ReadSlice(delim byte) (line []byte, err error) { method ReadLine (line 305) | func (b *Reader) ReadLine() (line []byte, isPrefix bool, err error) { method Buffered (line 341) | func (b *Reader) Buffered() int { return b.w - b.r } constant minReadBufferSize (line 41) | minReadBufferSize = 16 constant maxConsecutiveEmptyReads (line 42) | maxConsecutiveEmptyReads = 100 function NewReaderSize (line 47) | func NewReaderSize(rd io.Reader, size int) *Reader { function NewReader (line 62) | func NewReader(rd io.Reader) *Reader { type Writer (line 351) | type Writer struct method Reset (line 383) | func (b *Writer) Reset(w io.Writer) { method ResetBuffer (line 391) | func (b *Writer) ResetBuffer(w io.Writer, buf []byte) { method Flush (line 399) | func (b *Writer) Flush() error { method flush (line 404) | func (b *Writer) flush() error { method Available (line 428) | func (b *Writer) Available() int { return len(b.buf) - b.n } method Buffered (line 431) | func (b *Writer) Buffered() int { return b.n } method Write (line 437) | func (b *Writer) Write(p []byte) (nn int, err error) { method WriteRaw (line 465) | func (b *Writer) WriteRaw(p []byte) (nn int, err error) { method Peek (line 483) | func (b *Writer) Peek(n int) ([]byte, error) { method WriteString (line 505) | func (b *Writer) WriteString(s string) (int, error) { function NewWriterSize (line 361) | func NewWriterSize(w io.Writer, size int) *Writer { function NewWriter (line 377) | func NewWriter(w io.Writer) *Writer { FILE: pkg/bufio/bufio_test.go type rot13Reader (line 22) | type rot13Reader struct method Read (line 32) | func (r13 *rot13Reader) Read(p []byte) (int, error) { function newRot13Reader (line 26) | func newRot13Reader(r io.Reader) *rot13Reader { function readBytes (line 46) | func readBytes(buf *Reader) string { function TestReaderSimple (line 64) | func TestReaderSimple(t *testing.T) { type readMaker (line 77) | type readMaker struct function reads (line 91) | func reads(buf *Reader, m int) string { type bufReader (line 104) | type bufReader struct constant minReadBufferSize (line 119) | minReadBufferSize = 16 function TestReader (line 125) | func TestReader(t *testing.T) { type zeroReader (line 157) | type zeroReader struct method Read (line 159) | func (zeroReader) Read(p []byte) (int, error) { function TestZeroReader (line 163) | func TestZeroReader(t *testing.T) { function TestWriter (line 185) | func TestWriter(t *testing.T) { type errorWriterTest (line 230) | type errorWriterTest struct method Write (line 236) | func (w errorWriterTest) Write(p []byte) (int, error) { function TestWriteErrors (line 249) | func TestWriteErrors(t *testing.T) { function TestNewReaderSizeIdempotent (line 267) | func TestNewReaderSizeIdempotent(t *testing.T) { function TestNewWriterSizeIdempotent (line 282) | func TestNewWriterSizeIdempotent(t *testing.T) { function TestWriteString (line 297) | func TestWriteString(t *testing.T) { function TestBufferFull (line 315) | func TestBufferFull(t *testing.T) { function TestPeek (line 328) | func TestPeek(t *testing.T) { type dataAndEOFReader (line 385) | type dataAndEOFReader method Read (line 387) | func (r dataAndEOFReader) Read(p []byte) (int, error) { type testReader (line 396) | type testReader struct method Read (line 401) | func (t *testReader) Read(buf []byte) (n int, err error) { function testReadLine (line 417) | func testReadLine(t *testing.T, input []byte) { function TestReadLine (line 448) | func TestReadLine(t *testing.T) { function TestLineTooLong (line 453) | func TestLineTooLong(t *testing.T) { function TestReadAfterLines (line 480) | func TestReadAfterLines(t *testing.T) { function TestReadEmptyBuffer (line 500) | func TestReadEmptyBuffer(t *testing.T) { function TestLinesAfterRead (line 508) | func TestLinesAfterRead(t *testing.T) { function TestReadLineNonNilLineOrError (line 522) | func TestReadLineNonNilLineOrError(t *testing.T) { type readLineResult (line 533) | type readLineResult struct function TestReadLineNewlines (line 558) | func TestReadLineNewlines(t *testing.T) { function testReadLineNewlines (line 564) | func testReadLineNewlines(t *testing.T, input string, expect []readLineR... function TestWriterReadFromCounts (line 587) | func TestWriterReadFromCounts(t *testing.T) { type writeCountingDiscard (line 634) | type writeCountingDiscard method Write (line 636) | func (w *writeCountingDiscard) Write(p []byte) (int, error) { type negativeReader (line 641) | type negativeReader method Read (line 643) | func (r *negativeReader) Read([]byte) (int, error) { return -1, nil } function TestNegativeRead (line 645) | func TestNegativeRead(t *testing.T) { type errorThenGoodReader (line 666) | type errorThenGoodReader struct method Read (line 671) | func (r *errorThenGoodReader) Read(p []byte) (int, error) { function TestReaderClearError (line 680) | func TestReaderClearError(t *testing.T) { function TestReaderReset (line 701) | func TestReaderReset(t *testing.T) { function TestWriterReset (line 718) | func TestWriterReset(t *testing.T) { function TestReaderDiscard (line 733) | func TestReaderDiscard(t *testing.T) { type onlyReader (line 863) | type onlyReader struct type onlyWriter (line 868) | type onlyWriter struct type scriptedReader (line 873) | type scriptedReader method Read (line 875) | func (sr *scriptedReader) Read(p []byte) (n int, err error) { function newScriptedReader (line 884) | func newScriptedReader(steps ...func(p []byte) (n int, err error)) io.Re... function BenchmarkReaderCopyOptimal (line 889) | func BenchmarkReaderCopyOptimal(b *testing.B) { function BenchmarkReaderCopyUnoptimal (line 903) | func BenchmarkReaderCopyUnoptimal(b *testing.B) { function BenchmarkReaderCopyNoWriteTo (line 917) | func BenchmarkReaderCopyNoWriteTo(b *testing.B) { function BenchmarkWriterCopyOptimal (line 931) | func BenchmarkWriterCopyOptimal(b *testing.B) { function BenchmarkWriterCopyUnoptimal (line 945) | func BenchmarkWriterCopyUnoptimal(b *testing.B) { function BenchmarkWriterCopyNoReadFrom (line 958) | func BenchmarkWriterCopyNoReadFrom(b *testing.B) { function BenchmarkReaderEmpty (line 972) | func BenchmarkReaderEmpty(b *testing.B) { function BenchmarkWriterEmpty (line 987) | func BenchmarkWriterEmpty(b *testing.B) { function BenchmarkWriterFlush (line 1002) | func BenchmarkWriterFlush(b *testing.B) { FILE: pkg/bytes/buffer.go type Buffer (line 8) | type Buffer struct method Bytes (line 14) | func (b *Buffer) Bytes() []byte { type Pool (line 19) | type Pool struct method Init (line 35) | func (p *Pool) Init(num, size int) { method init (line 40) | func (p *Pool) init(num, size int) { method grow (line 48) | func (p *Pool) grow() { method Get (line 69) | func (p *Pool) Get() (b *Buffer) { method Put (line 81) | func (p *Pool) Put(b *Buffer) { function NewPool (line 28) | func NewPool(num, size int) (p *Pool) { FILE: pkg/bytes/buffer_test.go function TestBuffer (line 7) | func TestBuffer(t *testing.T) { FILE: pkg/bytes/writer.go type Writer (line 4) | type Writer struct method Len (line 15) | func (w *Writer) Len() int { method Size (line 20) | func (w *Writer) Size() int { method Reset (line 25) | func (w *Writer) Reset() { method Buffer (line 30) | func (w *Writer) Buffer() []byte { method Peek (line 35) | func (w *Writer) Peek(n int) []byte { method Write (line 44) | func (w *Writer) Write(p []byte) { method grow (line 49) | func (w *Writer) grow(n int) { function NewWriterSize (line 10) | func NewWriterSize(n int) *Writer { FILE: pkg/bytes/writer_test.go function TestWriter (line 8) | func TestWriter(t *testing.T) { FILE: pkg/encoding/binary/endian.go type bigEndian (line 6) | type bigEndian struct method Int8 (line 8) | func (bigEndian) Int8(b []byte) int8 { return int8(b[0]) } method PutInt8 (line 10) | func (bigEndian) PutInt8(b []byte, v int8) { method Int16 (line 14) | func (bigEndian) Int16(b []byte) int16 { return int16(b[1]) | int16(b[... method PutInt16 (line 16) | func (bigEndian) PutInt16(b []byte, v int16) { method Int32 (line 22) | func (bigEndian) Int32(b []byte) int32 { method PutInt32 (line 26) | func (bigEndian) PutInt32(b []byte, v int32) { FILE: pkg/encoding/binary/endian_test.go function TestInt8 (line 5) | func TestInt8(t *testing.T) { function TestInt16 (line 14) | func TestInt16(t *testing.T) { function TestInt32 (line 23) | func TestInt32(t *testing.T) { FILE: pkg/ip/ip.go function InternalIP (line 9) | func InternalIP() string { FILE: pkg/ip/ip_test.go function TestIP (line 5) | func TestIP(t *testing.T) { FILE: pkg/strings/ints.go function JoinInt32s (line 19) | func JoinInt32s(is []int32, p string) string { function SplitInt32s (line 41) | func SplitInt32s(s, p string) ([]int32, error) { function JoinInt64s (line 58) | func JoinInt64s(is []int64, p string) string { function SplitInt64s (line 80) | func SplitInt64s(s, p string) ([]int64, error) { FILE: pkg/strings/ints_test.go function TestInt32 (line 8) | func TestInt32(t *testing.T) { function TestInt64 (line 17) | func TestInt64(t *testing.T) { FILE: pkg/time/debug.go constant Debug (line 5) | Debug = false FILE: pkg/time/duration.go type Duration (line 8) | type Duration method UnmarshalText (line 11) | func (d *Duration) UnmarshalText(text []byte) error { FILE: pkg/time/duration_test.go function TestDurationText (line 8) | func TestDurationText(t *testing.T) { FILE: pkg/time/timer.go constant timerFormat (line 11) | timerFormat = "2006-01-02 15:04:05" constant infiniteDuration (line 12) | infiniteDuration = itime.Duration(1<<63 - 1) type TimerData (line 16) | type TimerData struct method Delay (line 25) | func (td *TimerData) Delay() itime.Duration { method ExpireString (line 30) | func (td *TimerData) ExpireString() string { type Timer (line 35) | type Timer struct method Init (line 56) | func (t *Timer) Init(num int) { method init (line 60) | func (t *Timer) init(num int) { method grow (line 68) | func (t *Timer) grow() { method get (line 84) | func (t *Timer) get() (td *TimerData) { method put (line 94) | func (t *Timer) put(td *TimerData) { method Add (line 102) | func (t *Timer) Add(expire itime.Duration, fn func()) (td *TimerData) { method Del (line 114) | func (t *Timer) Del(td *TimerData) { method add (line 123) | func (t *Timer) add(td *TimerData) { method del (line 142) | func (t *Timer) del(td *TimerData) { method Set (line 168) | func (t *Timer) Set(td *TimerData, expire itime.Duration) { method start (line 177) | func (t *Timer) start() { method expire (line 187) | func (t *Timer) expire() { method up (line 227) | func (t *Timer) up(j int) { method down (line 238) | func (t *Timer) down(i, n int) { method less (line 256) | func (t *Timer) less(i, j int) bool { method swap (line 260) | func (t *Timer) swap(i, j int) { function NewTimer (line 49) | func NewTimer(num int) (t *Timer) { FILE: pkg/time/timer_test.go function TestTimer (line 10) | func TestTimer(t *testing.T) { function printTimer (line 37) | func printTimer(timer *Timer) { FILE: pkg/websocket/conn.go constant finBit (line 14) | finBit = 1 << 7 constant rsv1Bit (line 15) | rsv1Bit = 1 << 6 constant rsv2Bit (line 16) | rsv2Bit = 1 << 5 constant rsv3Bit (line 17) | rsv3Bit = 1 << 4 constant opBit (line 18) | opBit = 0x0f constant maskBit (line 21) | maskBit = 1 << 7 constant lenBit (line 22) | lenBit = 0x7f constant continuationFrame (line 24) | continuationFrame = 0 constant continuationFrameMaxRead (line 25) | continuationFrameMaxRead = 100 constant TextMessage (line 32) | TextMessage = 1 constant BinaryMessage (line 35) | BinaryMessage = 2 constant CloseMessage (line 40) | CloseMessage = 8 constant PingMessage (line 44) | PingMessage = 9 constant PongMessage (line 48) | PongMessage = 10 type Conn (line 59) | type Conn struct method WriteMessage (line 72) | func (c *Conn) WriteMessage(msgType int, msg []byte) (err error) { method WriteHeader (line 81) | func (c *Conn) WriteHeader(msgType int, length int) (err error) { method WriteBody (line 114) | func (c *Conn) WriteBody(b []byte) (err error) { method Peek (line 122) | func (c *Conn) Peek(n int) ([]byte, error) { method Flush (line 127) | func (c *Conn) Flush() error { method ReadMessage (line 132) | func (c *Conn) ReadMessage() (op int, payload []byte, err error) { method readFrame (line 181) | func (c *Conn) readFrame() (fin bool, op int, payload []byte, err erro... method Close (line 251) | func (c *Conn) Close() error { function newConn (line 67) | func newConn(rwc io.ReadWriteCloser, r *bufio.Reader, w *bufio.Writer) *... function maskBytes (line 255) | func maskBytes(key []byte, pos int, b []byte) int { FILE: pkg/websocket/request.go type Request (line 13) | type Request struct method readLine (line 43) | func (r *Request) readLine() ([]byte, error) { method readMIMEHeader (line 62) | func (r *Request) readMIMEHeader() (header http.Header, err error) { function ReadRequest (line 24) | func ReadRequest(r *bufio.Reader) (req *Request, err error) { function parseRequestLine (line 93) | func parseRequestLine(line string) (method, requestURI, proto string, ok... function trim (line 105) | func trim(s []byte) []byte { FILE: pkg/websocket/server.go function Upgrade (line 26) | func Upgrade(rwc io.ReadWriteCloser, rr *bufio.Reader, wr *bufio.Writer,... function computeAcceptKey (line 51) | func computeAcceptKey(challengeKey string) string { FILE: pkg/websocket/server_test.go function TestServer (line 14) | func TestServer(t *testing.T) {