Documentation ¶
Index ¶
- func AddCommand(msg common.Message)
- func AddGroup(groupName string, users []string)
- func AddMessage(msg common.Message)
- func AddUser(user string)
- func CUIConsole(ccChan *logger.ChanChanMessage)
- func QuitCUI()
- func RemoveUser(user string)
- func SetCreateConn(f common.CreateConnFunc)
- func SetSendMessage(f common.SendMessageFunc)
- func StartCUI()
- type Chat
- type ChatMessage
- type Command
- type CommandCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetCreateConn ¶
func SetCreateConn(f common.CreateConnFunc)
Sets the chat function for creating connection
func SetSendMessage ¶
func SetSendMessage(f common.SendMessageFunc)
Sets the chat function for sending message
Types ¶
type Chat ¶
type Chat struct { History []ChatMessage Name string Users []string }
Chat struct for chatMap
type ChatMessage ¶
Chat Message that extends the main message to see if user has read the message
type CommandCallback ¶
Callback for when a command is called
Click to show internal directories.
Click to hide internal directories.