Documentation ¶
Index ¶
Constants ¶
View Source
const ( UnknownView = ActiveView(iota) ClientView ChannelView )
Variables ¶
View Source
var Events = data.NewEvents([]data.Event{ data.Event{EventID: data.EventID{Epoch: 1, Seq: 1}, Contents: "TOPIC Act I, Scene 1"}, data.Event{EventID: data.EventID{Epoch: 1, Seq: 2}, Contents: "JOIN barnardo"}, data.Event{EventID: data.EventID{Epoch: 1, Seq: 3}, Contents: "JOIN francisco"}, data.Event{EventID: data.EventID{Epoch: 1, Seq: 4}, Contents: "<barnardo> Who's there?"}, data.Event{EventID: data.EventID{Epoch: 1, Seq: 5}, Contents: "<francisco> Nay answer me: Stand & vnfold your selfe"}, data.Event{EventID: data.EventID{Epoch: 1, Seq: 6}, Contents: "<barnardo> Long liue the King"}, data.Event{EventID: data.EventID{Epoch: 2, Seq: 1}, Contents: "<claudius> Welcome, dear Rosencrantz and Guildenstern!"}, data.Event{EventID: data.EventID{Epoch: 2, Seq: 2}, Contents: "<gertrude> Good gentlemen, he hath much talk'd of you;"}, data.Event{EventID: data.EventID{Epoch: 2, Seq: 3}, Contents: "<rosencrantz> Both your majesties"}, })
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { Receiver backend.StateReceiver Sent []string // contains filtered or unexported fields }
func NewBackend ¶
func NewBackend() *Backend
func (*Backend) EventsBefore ¶
func (*Backend) Subscribe ¶
func (b *Backend) Subscribe(r backend.StateReceiver)
func (*Backend) SubscribeFiltered ¶
func (b *Backend) SubscribeFiltered(r backend.FilteredStateReceiver)
type Controller ¶
type Controller struct { *UI V ActiveView Network string Channel string }
Controller is mock global-level controller. Its methods should only be called within the .Update thread.
func NewController ¶
func NewController() *Controller
TODO: - Unify on a single Controller, rather than having Controller, UI, UpdateCounter - Add Context to constructor to clean up old threads when test is done
func (*Controller) ActivateChannel ¶
func (c *Controller) ActivateChannel(network, channel string)
func (*Controller) ActivateClient ¶
func (c *Controller) ActivateClient()
type UI ¶
type UI struct { Root tui.Widget Painter *tui.Painter HasQuit bool }
UI implements a subset of the tui.UI functionality for use in tests.
func (*UI) Repaint ¶
func (ui *UI) Repaint()
Repaint re-renders if the painter and root are not nil.
Click to show internal directories.
Click to hide internal directories.