query

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Entry

func Entry(args []string)

Entry function is the entry point for the query module.

Types

type Query

type Query struct {
	Device     string
	Model      string
	Online     bool
	Power      bool
	Brightness int64
	Colour     general.Colour
}

Query is the struct for storing the data returned by Govee.

func (*Query) Fill

func (q *Query) Fill(c general.Connection, d devices.Device)

Fill fills a Query struct with the data returned from Govee with the parameter of a Device struct.

Jump to

Keyboard shortcuts

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