Documentation ¶
Index ¶
- type Comet
- type Comets
- func (this *Comets) Broadcast(args *pb.BroadcastReq)
- func (this *Comets) BroadcastRoom(roomId string, args *pb.BroadcastRoomReq)
- func (this *Comets) Close()
- func (this *Comets) MergeRoomServers()
- func (this *Comets) Push(serverId string, args *pb.PushMsgReq)
- func (this *Comets) SyncComets(c *conf.Comet)
- func (this *Comets) SyncRoomServers()
- type Job
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comet ¶
type Comet struct {
// contains filtered or unexported fields
}
Comet is a comet.
func (*Comet) Broadcast ¶
func (c *Comet) Broadcast(arg *pb.BroadcastReq) (err error)
Broadcast broadcast a message.
func (*Comet) BroadcastRoom ¶
func (c *Comet) BroadcastRoom(arg *pb.BroadcastRoomReq) (err error)
BroadcastRoom broadcast a room message.
type Comets ¶
type Comets struct {
// contains filtered or unexported fields
}
func InitComets ¶
func (*Comets) Broadcast ¶
func (this *Comets) Broadcast(args *pb.BroadcastReq)
broadcast a message to all
func (*Comets) BroadcastRoom ¶
func (this *Comets) BroadcastRoom(roomId string, args *pb.BroadcastRoomReq)
broadcast aggregation messages to room
func (*Comets) MergeRoomServers ¶
func (this *Comets) MergeRoomServers()
func (*Comets) Push ¶
func (this *Comets) Push(serverId string, args *pb.PushMsgReq)
push a message to a batch of subkeys
func (*Comets) SyncComets ¶
func (*Comets) SyncRoomServers ¶
func (this *Comets) SyncRoomServers()
Click to show internal directories.
Click to hide internal directories.