Documentation ¶
Overview ¶
Copyright 2015 Factom Foundation Use of this source code is governed by the MIT license that can be found in the LICENSE file.
Adapted from tick-tock.go by Nirbhay Choubey http://nirbhay.in/2013/03/ajax-with-go/
Copyright 2015 Factom Foundation Use of this source code is governed by the MIT license that can be found in the LICENSE file.
Adapted from tick-tock.go by Nirbhay Choubey http://nirbhay.in/2013/03/ajax-with-go/
Index ¶
- Variables
- type CPEntry
- type ControlPanel
- func (cp *ControlPanel) AddUpdate(tag string, cat string, title string, msg string, expire int)
- func (cp *ControlPanel) GetPort() string
- func (cp *ControlPanel) GetTitle() string
- func (cp *ControlPanel) LastCommunication() time.Time
- func (cp *ControlPanel) Purge()
- func (cp *ControlPanel) Run()
- func (cp *ControlPanel) SetPort(port string)
- func (cp *ControlPanel) SetTitle(title string)
- func (cp *ControlPanel) Updates() []CPEntry
- type IControlPanel
Constants ¶
This section is empty.
Variables ¶
View Source
var CP = new(ControlPanel)
Functions ¶
This section is empty.
Types ¶
type CPEntry ¶
type CPEntry struct {
// contains filtered or unexported fields
}
We display what is going on now. cpEntry's are perged now and again.
type ControlPanel ¶
type ControlPanel struct {
// contains filtered or unexported fields
}
func (*ControlPanel) GetPort ¶
func (cp *ControlPanel) GetPort() string
func (*ControlPanel) GetTitle ¶
func (cp *ControlPanel) GetTitle() string
func (*ControlPanel) LastCommunication ¶
func (cp *ControlPanel) LastCommunication() time.Time
func (*ControlPanel) Purge ¶
func (cp *ControlPanel) Purge()
Purge our lists of out of date info, warning, and error posts.
func (*ControlPanel) Run ¶
func (cp *ControlPanel) Run()
func (*ControlPanel) SetPort ¶
func (cp *ControlPanel) SetPort(port string)
func (*ControlPanel) SetTitle ¶
func (cp *ControlPanel) SetTitle(title string)
func (*ControlPanel) Updates ¶
func (cp *ControlPanel) Updates() []CPEntry
type IControlPanel ¶
type IControlPanel interface { SetPort(string) GetPort() string SetTitle(string) GetTitle() string AddUpdate(tag string, cat string, title string, message string, seconds int) // show for int seconds Updates() []CPEntry Purge() // Purge system, status, info, warnings, and errors LastCommunication() time.Time }
Click to show internal directories.
Click to hide internal directories.