ui

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	UI
	// contains filtered or unexported fields
}

Controller is the master controller for a discoirc UI. It manages the lifecycle of other controllers and views.

func New

func New(ui UI, be backend.Backend) *Controller

func (*Controller) ActivateChannel

func (c *Controller) ActivateChannel(network, target string)

ActivateChannel closes the current view, and replaces it with a view of the given channel in the given network.

func (*Controller) ActivateClient

func (c *Controller) ActivateClient()

ActivateClient closes the current view, and replaces it with a view of all active sessions of this client. Must be run from the UI thread.

type UI

type UI interface {
	Update(func())
	SetWidget(tui.Widget)
	Quit()
}

UI is the subset of the tui.UI interface that the Controller uses directly or passes through

Directories

Path Synopsis
Package client contains the MVC for the client's overall state.
Package client contains the MVC for the client's overall state.

Jump to

Keyboard shortcuts

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