hyperion

package
Version: v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Lights provides access to the current light state
	Lights = common.NewLightMap()
)

Functions

func Close

func Close()

Close Hyperion connection

func Connect

func Connect(conf *config.Config)

Connect establishes a TCP connection to the specified address and attaches JSON encoders/decoders.

func Execute

func Execute(callback map[string]interface{})

Execute takes the callback and performs a JSON-RPC request over the established Hyperion connection.

func Read

func Read(response *Response)

Read and decode JSON from the Hyperion connection into the notification pointer.

Types

type Response

type Response struct {
	Success bool    `json:"success"`
	Error   *string `json:"error"`
}

Response stores Hyperion results for RPC calls.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL