tilt

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNotFound       = Error("tilt not found")
	ErrAlreadyRunning = Error("monitor is already running")
)

Variables

View Source
var ErrIBeaconIsNil = errors.New("underlying IBeacon is nil")

Functions

This section is empty.

Types

type Color

type Color string

type Error

type Error string

func (Error) Error

func (e Error) Error() string

type Monitor

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

func NewMonitor

func NewMonitor(ibeaconDiscoverer ibeacon.Discoverer, logger *logrus.Logger) *Monitor

func (*Monitor) GetTilt

func (m *Monitor) GetTilt(color Color) (*Tilt, error)

func (*Monitor) Run

func (m *Monitor) Run(ctx context.Context) error

type Tilt

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

func (*Tilt) GetGravity

func (t *Tilt) GetGravity() (float64, error)

func (*Tilt) GetID

func (t *Tilt) GetID() string

func (*Tilt) GetTemperature

func (t *Tilt) GetTemperature() (float64, error)

Jump to

Keyboard shortcuts

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