Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChatInterface ¶
type ChatInterface struct {
// contains filtered or unexported fields
}
a struct that provides an interface to chatrooms. In future versions, this will be very useful for managing multiple chats
func NewChatInterface ¶
func NewChatInterface(tunnel *peerutils.Tunnel) *ChatInterface
initializes a ChatInterface, given the tunnel
func (*ChatInterface) AwaitInput ¶
func (ci *ChatInterface) AwaitInput()
awaits user input, and handles it if it's a command, or sends it if it is a message
func (*ChatInterface) AwaitMessage ¶
func (ci *ChatInterface) AwaitMessage()
awaits a message and displays it (along with all other messages) once recieved
func (ChatInterface) Display ¶
func (ci ChatInterface) Display()
clears the terminal and displays all messages
Click to show internal directories.
Click to hide internal directories.