subs

package
v0.0.0-...-7787783 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2021 License: MIT Imports: 2 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL