models

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulbRegistry

type BulbRegistry struct {
	BulbsByMac map[string]DiscoveredBulb
	*sync.RWMutex
}

func NewRegistry

func NewRegistry() BulbRegistry

func (*BulbRegistry) Bulbs

func (r *BulbRegistry) Bulbs() []*DiscoveredBulb

func (*BulbRegistry) Register

func (r *BulbRegistry) Register(bulb DiscoveredBulb)

type DiscoveredBulb

type DiscoveredBulb struct {
	IP  string
	Mac string
}

func NewBulb

func NewBulb(ip string, mac string) DiscoveredBulb

Jump to

Keyboard shortcuts

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