Discover Packages
r-w-x.org/r/chatb
rooms
package
Version:
v0.0.0-...-e913a2f
Opens a new window with list of versions in this module.
Published: Apr 11, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Cmd struct {
Action string `json:"action"`
Data string `json:"data,omitempty"`
}
type Message struct {
Type string `json:"type,omitempty"`
Data string `json:"data,omitempty"`
To string `json:"to,omitempty"`
From string `json:"from,omitempty"`
}
type Room struct {
Name string `json:"name"`
Users map[string ]*User `json:"users"`
}
func (r *Room ) SendInfo()
type User struct {
Id string `json:"id"`
Name string `json:"name"`
Room *Room `json:"-"`
}
func (u *User ) SendInfo()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.