monitor

package
v0.0.0-...-181f913 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByTimestamp

type ByTimestamp []Measure

func (ByTimestamp) Len

func (p ByTimestamp) Len() int

func (ByTimestamp) Less

func (p ByTimestamp) Less(i, j int) bool

func (ByTimestamp) Swap

func (p ByTimestamp) Swap(i, j int)

type DB44monitor

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

func Newdb44monitor

func Newdb44monitor(ip string, port uint16, readCommunity string) (*DB44monitor, error)

func (*DB44monitor) Close

func (db *DB44monitor) Close()

func (*DB44monitor) Measures

func (db *DB44monitor) Measures() <-chan Measure

type Measure

type Measure struct {
	Timestamp time.Time `json:"timestamp"`
	Frequency float64   `json:"frequency"`
	RfLevel   float64   `json:"rf_level"`
}

type MonitorManager

type MonitorManager interface {
	Measures() <-chan Measure
	Close()
}

Jump to

Keyboard shortcuts

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