modules

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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateInstanceFunc

type CreateInstanceFunc func(name string, config map[string]interface{}) ModuleInstance

type Item

type Item interface {
	Marshal() []byte
}

type Module

type Module struct {
	Name           string
	CreateInstance CreateInstanceFunc
	RenderInstance RenderInstanceFunc
}

type ModuleInstance

type ModuleInstance interface {
	Name() string
	String() string
	Render() Item
	RefreshInterval() int
}

type RenderInstanceFunc

type RenderInstanceFunc func(instance ModuleInstance) (item Item, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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