load

package
v0.0.42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2016 License: GPL-3.0 Imports: 7 Imported by: 0

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 LoadItem struct {
	Name   string `json:"name"`
	Text   string `json:"full_text"`
	Markup string `json:"markup"`
}

func (LoadItem) Marshal

func (e LoadItem) Marshal() (bytes []byte)

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL