Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = modules.Module{ Name: "load", CreateInstance: CreateInstance, }
Functions ¶
func CreateInstance ¶
func CreateInstance(name string, config map[string]interface{}) (m modules.ModuleInstance)
func GetRenderContext ¶
func RenderInstance ¶
func RenderInstance(i modules.ModuleInstance) (t modules.Item)
Types ¶
type LoadInstance ¶
type LoadInstance struct {
// contains filtered or unexported fields
}
func (LoadInstance) Name ¶
func (t LoadInstance) Name() (n string)
func (LoadInstance) RefreshInterval ¶
func (t LoadInstance) RefreshInterval() int
func (LoadInstance) Render ¶
func (t LoadInstance) Render() (item modules.Item)
func (LoadInstance) String ¶
func (t LoadInstance) String() (s string)
type LoadItem ¶
type RenderContext ¶
type RenderContext struct {
Load5, Load10, Load15 float32
}
Click to show internal directories.
Click to hide internal directories.