Documentation ¶
Overview ¶
Package ui is a general high level representation of all the uis connected to the current instance of Wapty. Use this from other packages to read user input and write output
Index ¶
Constants ¶
View Source
const BUFSIZE = 1024
View Source
const SUBBUFFERSIZE = 50
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Subscription ¶
type Subscription interface { Receive() apis.Command RecChannel() <-chan apis.Command Send(*apis.Command) }
Subscription is the high-level representation of a connection between a wapty component and wapty UI. It will multiplex on apis.UIChannel transparently.
func Subscribe ¶
func Subscribe(channel apis.UIChannel) Subscription
Subscribe allows a package to start receiving and sending commands over a apis.UIChannel
Click to show internal directories.
Click to hide internal directories.