ui

package
v0.0.0-...-cf730da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actions

type Actions interface {
	MessageCreate(user, room, content string) errors.Error
}

type ChatUi

type ChatUi struct {
	Username string
	RoomName string

	Actions Actions
	// contains filtered or unexported fields
}

func (*ChatUi) Close

func (ui *ChatUi) Close(err errors.Error)

func (*ChatUi) Editor

func (ui *ChatUi) Editor(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier)

func (*ChatUi) Init

func (ui *ChatUi) Init()

func (*ChatUi) ReceiveMessage

func (ui *ChatUi) ReceiveMessage(user string, message string, editedOn time.Time)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL