model

package
v0.0.2-testing Latest Latest
Warning

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

Go to latest
Published: May 17, 2017 License: MIT Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostInterfaceResponse

type HostInterfaceResponse struct {
	//HWAddr string        `json:"HWAddr,omitempty"`
	Info  net.Interface `json:"Info,omitempty"` //TODO add ressources IP, CPU, MEM
	Addrs []net.Addr    `json:"Addrs,omitempty"`
}

HostInterfaceResponse describe interface

type HostProc

type HostProc interface {
	Init()
	Update()
}

HostProc //proc.ProcAll

type HostResponse

type HostResponse struct {
	Name       string                           `json:"Name,omitempty"`
	Interfaces map[string]HostInterfaceResponse `json:"Interfaces,omitempty"`
	Proc       HostProc                         `json:"Proc,omitempty"`
}

HostResponse describe hots informations

type Module

type Module interface {
	ID() string
	Event() <-chan string
	GetData() interface{}
}

Module represente a module collecting data //TODO add a Close method tha close chan

Jump to

Keyboard shortcuts

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