Documentation
¶
Index ¶
- Constants
- type UI
- func (ui *UI) Connect(username string) error
- func (ui *UI) Layout(g *gocui.Gui) error
- func (ui *UI) Quit(_ *gocui.Gui, _ *gocui.View) error
- func (ui *UI) ReadMessage() error
- func (ui *UI) Serve() error
- func (ui *UI) SetConnection(connection *websocket.Conn)
- func (ui *UI) SetKeyBindings(g *gocui.Gui) error
- func (ui *UI) SetUsername(username string)
- func (ui *UI) WriteMessage(_ *gocui.Gui, v *gocui.View) error
Constants ¶
View Source
const ( WebsocketEndpoint = "ws://:3000/" WebsocketOrigin = "http://" MessageWidget = "messages" UsersWidget = "users" InputWidget = "send" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.