package
module
Version:
v0.0.0-...-3741dc5
Opens a new window with list of versions in this module.
Published: Jun 29, 2020
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
HandleConnections maintains the connection for each user in the chat
HandleMessages sends and receives messages from users.
type AllUsers struct {
Users []User `json:"users"`
}
AllUsers object, holds all the users in a string array
type Message struct {
Username string `json:"username"`
Message string `json:"message"`
Avatar string `json:"avatar"`
}
Message object, defines attributes that a message will have
type User struct {
Username string `json:"user"`
Avatar string `json:"avatar"`
}
User object, holds information for a specific user
Source Files
¶
Click to show internal directories.
Click to hide internal directories.