Documentation
¶
Index ¶
- Constants
- func InitColor()
- func StrObjectStatus(d object.Status) string
- type EventBGetter
- type EventGetter
- type Frame
- func (f Frame) NodeVersions() *set.Set
- func (f *Frame) Render() string
- func (f Frame) StrDaemonState(n string) string
- func (f Frame) StrDaemonUptime(n string) string
- func (f Frame) StrHbQueue(n string) string
- func (f Frame) StrHeartbeat(n string, hbType string) string
- func (f Frame) StrNodeArbitratorStatus(name, node string) string
- func (f Frame) StrNodeHbMode(peer string) string
- func (f Frame) StrNodeLoad(n string) string
- func (f Frame) StrNodeMem(n string) string
- func (f Frame) StrNodeScore(n string) string
- func (f Frame) StrNodeStates(n string) string
- func (f Frame) StrNodeSwap(n string) string
- func (f Frame) StrNodeUptime(n string) string
- func (f Frame) StrNodeVersion(n string) string
- func (f Frame) StrObjectInstance(path string, node string, scope []string) string
- func (f Frame) StrObjectRunning(path string) string
- type Getter
- type T
- func (m *T) Do(getter Getter, out io.Writer) error
- func (m *T) DoWatch(statusGetter Getter, evReader event.ReadCloser, out io.Writer) error
- func (m *T) SetColor(v string)
- func (m *T) SetFormat(v string)
- func (m *T) SetNodes(v []string)
- func (m *T) SetSections(v []string)
- func (m *T) SetSectionsFromExpression(s string)
- func (m *T) SetSelector(v string)
Constants ¶
const CmdLong = `` /* 315-byte string literal not displayed */
CmdLong factorizes the long desc text defined by commands invoking a Monitor.
Variables ¶
This section is empty.
Functions ¶
func StrObjectStatus ¶
Types ¶
type EventBGetter ¶
type EventGetter ¶
type Frame ¶
type Frame struct {
Selector string
Nodes []string
Sections []string
Current clusterdump.Data
Previous clusterdump.Data
Stats clusterdump.Stats
// Nodename is the nodename from which we have received data (value of
// .daemon.nodename)
Nodename string
// contains filtered or unexported fields
}
Frame exposes daemon status renderer tunables.
func (Frame) NodeVersions ¶
func (*Frame) Render ¶
Render return a string buffer containing a human-friendly representation of Render.
func (Frame) StrDaemonState ¶
func (Frame) StrDaemonUptime ¶
func (Frame) StrHbQueue ¶
func (Frame) StrNodeArbitratorStatus ¶
func (Frame) StrNodeHbMode ¶
func (Frame) StrNodeLoad ¶
func (Frame) StrNodeMem ¶
func (Frame) StrNodeScore ¶
func (Frame) StrNodeStates ¶
func (Frame) StrNodeSwap ¶
func (Frame) StrNodeUptime ¶
func (Frame) StrNodeVersion ¶
func (Frame) StrObjectInstance ¶
func (Frame) StrObjectRunning ¶
type T ¶
type T struct {
// contains filtered or unexported fields
}
T is a monitor renderer instance. It stores the rendering options.
func (*T) SetColor ¶
SetColor sets the color option. Default is "auto", interpreted as colored if the terminal as a tty.
func (*T) SetFormat ¶
SetFormat sets the rendering format option. Default is "auto", interpreted as human-readable.
func (*T) SetNodes ¶
SetNodes sets the nodes option, controlling which node columns to render. Defaults to an empty list, interpreted as all nodes.
func (*T) SetSections ¶
SetSections sets the sections option, controlling which sections to render (threads, nodes, arbitrators, objects). Defaults to an empty list, interpreted as all sections.
func (*T) SetSectionsFromExpression ¶
SetSectionsFromExpression sets the sections option, parsing a string representation of a section list, using comma as separator.
func (*T) SetSelector ¶
SetSelector sets the selector option. Default is "*".