Documentation ¶
Index ¶
- type Connection
- type Event
- type EventType
- type User
- func (u *User) Close()
- func (u *User) HasAuthed() bool
- func (u *User) Name() string
- func (u *User) Read() (*message.Message, error)
- func (u *User) RoomIds() map[string]bool
- func (u *User) SetName(name string)
- func (u *User) SetRoomIds(roomIds []string)
- func (u *User) SetUid(uid string)
- func (u *User) String() string
- func (u *User) Uid() string
- func (u *User) Write(m *message.Message) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) Close ¶
func (c *Connection) Close()
func (*Connection) ReadMessage ¶
func (c *Connection) ReadMessage() ([]byte, error)
func (*Connection) RemoteAddr ¶
func (c *Connection) RemoteAddr() string
func (*Connection) WriteMessage ¶
func (c *Connection) WriteMessage(b []byte) error
type User ¶
type User struct {
// contains filtered or unexported fields
}
User connected
func (*User) SetRoomIds ¶
Click to show internal directories.
Click to hide internal directories.