net

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = modules.Module{
	Name:           "net",
	CreateInstance: CreateInstance,
}

Functions

func CreateInstance

func CreateInstance(name string, config map[string]interface{}) (moduleInstance modules.ModuleInstance)

Types

type NetFormatData

type NetFormatData struct {
	Name           string
	Interface_name string
	Interface      *go_net.Interface
	Up             bool
	Addresses      []string
}

type NetInstance

type NetInstance struct {
	// contains filtered or unexported fields
}

func (NetInstance) Config

func (t NetInstance) Config() (m map[string]interface{})

func (NetInstance) Name

func (t NetInstance) Name() (n string)

func (NetInstance) RefreshInterval

func (t NetInstance) RefreshInterval() int

func (NetInstance) Render

func (t NetInstance) Render() (i modules.Item)

func (NetInstance) String

func (t NetInstance) String() (s string)

type NetItem

type NetItem struct {
	Name   string `json:"name"`
	Text   string `json:"full_text"`
	Markup string `json:"markup"`
}

func (NetItem) Marshal

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

Jump to

Keyboard shortcuts

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