Documentation ¶
Index ¶
- Constants
- func Register(factory func() Kinder)
- type Event
- type Join
- type Kinder
- type Leave
- type Member
- type Members
- type Message
- type Request
- type Room
- func (r *Room) Close()
- func (r *Room) Get(user string) *Member
- func (r *Room) Iter(fn func(m *Member))
- func (r *Room) Join(req Request) error
- func (r *Room) Leave(req Request) error
- func (r *Room) Locked() bool
- func (r *Room) Name() string
- func (r *Room) Owner() string
- func (r *Room) Preshared() string
- func (r *Room) Send(msg Message) error
- func (r *Room) SetCheckFunc(check func())
- func (r *Room) SetLocked(b bool)
Constants ¶
View Source
const ( // N ... N = 1024 // TIMEOUT ... TIMEOUT = 30 * time.Second )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct { From string `json:"from"` To string `json:"to"` Kind string `json:"kind"` Value json.RawMessage `json:"value"` }
Event ...
Click to show internal directories.
Click to hide internal directories.