telemetry_map

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Hub stream.Hub
)

Functions

This section is empty.

Types

type Devices

type Devices struct {
	Total  int64                         `json:"total"`
	Status map[int64]*models.DeviceState `json:"status"`
}

func (*Devices) Broadcast

func (d *Devices) Broadcast() (interface{}, bool)

func (*Devices) BroadcastOne

func (d *Devices) BroadcastOne(id int64) (interface{}, bool)

func (*Devices) Update

func (d *Devices) Update()

type Map

type Map struct {
	Devices *Devices
}

func NewMap

func NewMap() *Map

func (*Map) Broadcast

func (t *Map) Broadcast(pack string)

func (*Map) BroadcastOne

func (m *Map) BroadcastOne(pack string, id int64)

func (*Map) Run

func (m *Map) Run()

func (*Map) Stop

func (m *Map) Stop()

Jump to

Keyboard shortcuts

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