Documentation
¶
Index ¶
- type AppController
- type CommanderController
- func (c *CommanderController) AddDocument(t string, d *data.Document)
- func (c *CommanderController) AddFilter(f string, qos network.Qos)
- func (c *CommanderController) AddPublishedDocument(topic string, doc *data.Document)
- func (c *CommanderController) OnChangeFocus(p tview.Primitive)
- func (c *CommanderController) OnConnect()
- func (c *CommanderController) OnCopy()
- func (c *CommanderController) OnNextDocument()
- func (c *CommanderController) OnPrevDocument()
- func (c *CommanderController) OnPublish()
- func (c *CommanderController) OnSetFollow(enabled bool)
- func (c *CommanderController) OnSetScrollToTop(enabled bool)
- func (c *CommanderController) OnSubscribe()
- func (c *CommanderController) OnTopicSelected(t string)
- func (c *CommanderController) RemoveFilter(f string)
- func (c *CommanderController) SetConnectionStatus(s network.ConnectionStatus)
- type Config
- type Connector
- type Control
- type Filters
- type MqttApp
- func (a *MqttApp) Cancel()
- func (a *MqttApp) Focus(p tview.Primitive)
- func (a *MqttApp) Hide(pageLabel string)
- func (a *MqttApp) OnConnect(server string, port int, username, password string)
- func (a *MqttApp) OnDisplayCommander()
- func (a *MqttApp) OnDisplayConnector()
- func (a *MqttApp) OnDisplayError(err error)
- func (a *MqttApp) OnDisplayOpenFile()
- func (a *MqttApp) OnDisplayPublishHistory()
- func (a *MqttApp) OnDisplayPublisher()
- func (a *MqttApp) OnDisplaySubscriber()
- func (a *MqttApp) OnDisplayWait(msg string)
- func (a *MqttApp) OnLaunchEditor() (string, error)
- func (a *MqttApp) OnPublish(topic string, qos network.Qos, retained bool, message []byte)
- func (a *MqttApp) OnStop()
- func (a *MqttApp) OnSubscribe(filter string, qos network.Qos)
- func (a *MqttApp) OnUnsubscribe(filter string)
- func (a *MqttApp) QueueUpdate(f func())
- func (a *MqttApp) QueueUpdateDraw(f func())
- func (a *MqttApp) Register(pageLabel string, p tview.Primitive, visible bool)
- func (a *MqttApp) Start()
- func (a *MqttApp) Stop()
- type MqttController
- type Publish
- func (c *Publish) AddDocument(topic string, doc *data.Document)
- func (c *Publish) Cancel()
- func (c *Publish) OnChangeFocus(p tview.Primitive)
- func (c *Publish) OnError(err error)
- func (c *Publish) OnFileSelected(filename string)
- func (c *Publish) OnLaunchEditor()
- func (c *Publish) OnOpenFile()
- func (c *Publish) OnOpenHistory()
- func (c *Publish) OnPaste()
- func (c *Publish) OnPublish(topic string, qos network.Qos, retained bool, message []byte)
- func (c *Publish) Register(label string, p tview.Primitive, visible bool)
- type PublishHistory
- func (h *PublishHistory) AddDocument(t string, d *data.Document)
- func (h *PublishHistory) Cancel()
- func (h *PublishHistory) OnChangeFocus(p tview.Primitive)
- func (h *PublishHistory) OnDocumentSelected(topic string, doc *data.Document)
- func (h *PublishHistory) OnNextDocument()
- func (h *PublishHistory) OnPrevDocument()
- func (h *PublishHistory) OnTopicSelected(t string)
- type ViewController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppController ¶
type CommanderController ¶
type CommanderController struct {
// contains filtered or unexported fields
}
func NewCommanderController ¶
func NewCommanderController(ctrl Control) *CommanderController
func (*CommanderController) AddDocument ¶
func (c *CommanderController) AddDocument(t string, d *data.Document)
func (*CommanderController) AddFilter ¶ added in v0.0.4
func (c *CommanderController) AddFilter(f string, qos network.Qos)
func (*CommanderController) AddPublishedDocument ¶ added in v0.0.4
func (c *CommanderController) AddPublishedDocument(topic string, doc *data.Document)
func (*CommanderController) OnChangeFocus ¶
func (c *CommanderController) OnChangeFocus(p tview.Primitive)
func (*CommanderController) OnConnect ¶
func (c *CommanderController) OnConnect()
func (*CommanderController) OnCopy ¶ added in v0.0.4
func (c *CommanderController) OnCopy()
func (*CommanderController) OnNextDocument ¶
func (c *CommanderController) OnNextDocument()
func (*CommanderController) OnPrevDocument ¶
func (c *CommanderController) OnPrevDocument()
func (*CommanderController) OnPublish ¶
func (c *CommanderController) OnPublish()
func (*CommanderController) OnSetFollow ¶
func (c *CommanderController) OnSetFollow(enabled bool)
func (*CommanderController) OnSetScrollToTop ¶
func (c *CommanderController) OnSetScrollToTop(enabled bool)
func (*CommanderController) OnSubscribe ¶
func (c *CommanderController) OnSubscribe()
func (*CommanderController) OnTopicSelected ¶
func (c *CommanderController) OnTopicSelected(t string)
func (*CommanderController) RemoveFilter ¶ added in v0.0.4
func (c *CommanderController) RemoveFilter(f string)
func (*CommanderController) SetConnectionStatus ¶
func (c *CommanderController) SetConnectionStatus(s network.ConnectionStatus)
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
func NewConnector ¶
func (*Connector) OnChangeFocus ¶
type Control ¶
type Control interface { AppController MqttController ViewController }
type Filters ¶
type Filters struct {
// contains filtered or unexported fields
}
func NewFilters ¶
func (*Filters) OnChangeFocus ¶
func (*Filters) OnUnsubscribe ¶
func (*Filters) RemoveFilter ¶ added in v0.0.4
type MqttApp ¶
type MqttApp struct {
// contains filtered or unexported fields
}
func NewMqttApp ¶
func NewMqttApp(c *network.MqttClient, conf Config) *MqttApp
func (*MqttApp) OnDisplayCommander ¶
func (a *MqttApp) OnDisplayCommander()
func (*MqttApp) OnDisplayConnector ¶
func (a *MqttApp) OnDisplayConnector()
func (*MqttApp) OnDisplayError ¶
func (*MqttApp) OnDisplayOpenFile ¶
func (a *MqttApp) OnDisplayOpenFile()
func (*MqttApp) OnDisplayPublishHistory ¶
func (a *MqttApp) OnDisplayPublishHistory()
func (*MqttApp) OnDisplayPublisher ¶
func (a *MqttApp) OnDisplayPublisher()
func (*MqttApp) OnDisplaySubscriber ¶
func (a *MqttApp) OnDisplaySubscriber()
func (*MqttApp) OnDisplayWait ¶ added in v0.0.4
func (*MqttApp) OnLaunchEditor ¶
func (*MqttApp) OnUnsubscribe ¶
func (*MqttApp) QueueUpdate ¶
func (a *MqttApp) QueueUpdate(f func())
func (*MqttApp) QueueUpdateDraw ¶
func (a *MqttApp) QueueUpdateDraw(f func())
type MqttController ¶
type Publish ¶
type Publish struct {
// contains filtered or unexported fields
}
func NewPublish ¶
func (*Publish) AddDocument ¶ added in v0.0.4
func (*Publish) OnChangeFocus ¶
func (*Publish) OnFileSelected ¶
func (*Publish) OnLaunchEditor ¶
func (c *Publish) OnLaunchEditor()
func (*Publish) OnOpenFile ¶
func (c *Publish) OnOpenFile()
func (*Publish) OnOpenHistory ¶
func (c *Publish) OnOpenHistory()
type PublishHistory ¶
type PublishHistory struct {
// contains filtered or unexported fields
}
func NewPublishHistory ¶
func NewPublishHistory(ctrl Control) *PublishHistory
func (*PublishHistory) AddDocument ¶
func (h *PublishHistory) AddDocument(t string, d *data.Document)
func (*PublishHistory) Cancel ¶
func (h *PublishHistory) Cancel()
func (*PublishHistory) OnChangeFocus ¶
func (h *PublishHistory) OnChangeFocus(p tview.Primitive)
func (*PublishHistory) OnDocumentSelected ¶
func (h *PublishHistory) OnDocumentSelected(topic string, doc *data.Document)
func (*PublishHistory) OnNextDocument ¶
func (h *PublishHistory) OnNextDocument()
func (*PublishHistory) OnPrevDocument ¶
func (h *PublishHistory) OnPrevDocument()
func (*PublishHistory) OnTopicSelected ¶
func (h *PublishHistory) OnTopicSelected(t string)
type ViewController ¶
type ViewController interface { OnDisplayConnector() OnDisplayCommander() OnDisplaySubscriber() OnDisplayPublisher() OnDisplayPublishHistory() OnDisplayOpenFile() OnDisplayError(err error) OnDisplayWait(msg string) Register(pageLabel string, p tview.Primitive, visible bool) Hide(pageLabel string) Focus(p tview.Primitive) Cancel() }
Click to show internal directories.
Click to hide internal directories.