Documentation
¶
Index ¶
- Variables
- type Config
- type Gate
- func (gate *Gate) AuthorizedUser(user User)
- func (gate *Gate) Broadcast(receivers []int64, packet netutil.Packet)
- func (gate *Gate) ForEachUser(visitor UserVisitor) (_break bool)
- func (gate *Gate) GetUser(uid int64) (User, bool)
- func (gate *Gate) RemoveUser(uid int64)
- func (gate *Gate) Send(user User, packet netutil.Packet)
- func (gate *Gate) Shutdown(wg *sync.WaitGroup)
- func (gate *Gate) Startup(async bool) error
- func (gate *Gate) UserCount() int
- type User
- type UserVisitor
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnsupportedProtocol = errors.New("unsupported protocol")
)
Functions ¶
This section is empty.
Types ¶
type Gate ¶
type Gate struct {
// contains filtered or unexported fields
}
func (*Gate) AuthorizedUser ¶
func (*Gate) ForEachUser ¶
func (gate *Gate) ForEachUser(visitor UserVisitor) (_break bool)
func (*Gate) RemoveUser ¶
type UserVisitor ¶
Click to show internal directories.
Click to hide internal directories.