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 GetRenderContext() *mem.VirtualMemoryStat
func RenderInstance ¶
func RenderInstance(i modules.ModuleInstance) (t modules.Item)
Types ¶
type LoadItem ¶
type MemoryInstance ¶
type MemoryInstance struct {
// contains filtered or unexported fields
}
func (MemoryInstance) Name ¶
func (t MemoryInstance) Name() (n string)
func (MemoryInstance) RefreshInterval ¶
func (t MemoryInstance) RefreshInterval() int
func (MemoryInstance) Render ¶
func (t MemoryInstance) Render() (item modules.Item)
func (MemoryInstance) String ¶
func (t MemoryInstance) String() (s string)
type RenderContext ¶
type RenderContext struct {
Load5, Load10, Load15 float32
}
Click to show internal directories.
Click to hide internal directories.