Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Subscribers ¶
type Subscribers struct {
// contains filtered or unexported fields
}
func NewSubscribers ¶
func NewSubscribers() *Subscribers
func (*Subscribers) Add ¶
func (s *Subscribers) Add(p proto.Player)
func (*Subscribers) Broadcast ¶
func (s *Subscribers) Broadcast(f func(proto.Player))
func (*Subscribers) BroadcastUpdate ¶
func (s *Subscribers) BroadcastUpdate(upd proto.UpdateMessage)
func (*Subscribers) GetAll ¶
func (s *Subscribers) GetAll() []proto.Player
func (*Subscribers) Remove ¶
func (s *Subscribers) Remove(p proto.Player)
Click to show internal directories.
Click to hide internal directories.