Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct {
Name string `json:"name"`
State AlertState `json:"state"`
URL string `json:"url"`
}
type AlertState ¶
type AlertState int
const ( Alerting AlertState = iota Pending NoData Paused Ok )
func (AlertState) MarshalJSON ¶
func (s AlertState) MarshalJSON() ([]byte, error)
MarshalJSON marshals the enum as a quoted json string
func (*AlertState) UnmarshalJSON ¶
func (s *AlertState) UnmarshalJSON(b []byte) error
UnmarshalJSON unmashals a quoted json string to the enum value
type Widget ¶
type Widget struct {
view.TextWidget
Client *Client
Alerts []Alert
Err error
Selected int
// contains filtered or unexported fields
}
func (*Widget) ConfigText ¶ added in v0.50.0
func (*Widget) GetSelected ¶
GetSelected returns the index of the currently highlighted item as an int
Click to show internal directories.
Click to hide internal directories.