hue

package module
v0.0.0-...-1fb9787 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2018 License: MIT Imports: 2 Imported by: 3

README

huego

Philips Hue Client written in Go with a Mock Client for offline testing

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotImplemented is a placeholder errors message for missing
	// interface implementations.
	ErrNotImplemented = errors.New("functionality is not implemented")

	ErrNoUser = errors.New("user parameter missing from context")

	ErrNoHost = errors.New("host parameter missing from context")
)

Functions

This section is empty.

Types

type AllBridgeParams

type AllBridgeParams struct {
	Method string
}

type Bridge

type Bridge struct {
	ID                string `json:"id"`
	InternalIPAddress string `json:"internalipaddress"`
	MacAddress        string `json:"macaddress"`
}

type Client

type Client interface {
	AllLights(context.Context) ([]interface{}, error)
	NewLights(context.Context) (interface{}, error)
	SearchLights(context.Context, []string) error
	GetLight(context.Context, int) (interface{}, error)
	RenameLight(context.Context, string, string) (interface{}, error)
	LightState(context.Context, int, interface{}) (interface{}, error)
	Toggle(context.Context, int) (interface{}, error)
	DeleteLight(context.Context, string) error

	AllGroups(context.Context) ([]interface{}, error)
	CreateGroup(context.Context, interface{}) (interface{}, error)
	GetGroup(context.Context, string) (interface{}, error)
	SaveGroup(context.Context, string, interface{}) (interface{}, error)
	SetGroupState(context.Context, string, interface{}) (interface{}, error)
	DeleteGroup(context.Context, string) error

	AllSchedules() ([]interface{}, error)
	CreateSchedule(interface{}) (interface{}, error)
	GetSchedule(string) (interface{}, error)
	SetSchedule(string, interface{}) (interface{}, error)
	DeleteSchedule(string) error

	AllScenes() ([]interface{}, error)
	GetScene(string) (interface{}, error)
	CreateScene(interface{}) (interface{}, error)
	SetScene(string, interface{}) (interface{}, error)
	DeleteScene(string) error

	AllSensors() ([]interface{}, error)
	CreateSensor(interface{}) (interface{}, error)
	SearchSensors() error
	NewSensors() ([]interface{}, error)
	GetSensor(string) (interface{}, error)
	SetSensor(string, interface{}) (interface{}, error)
	RenameSensor(string, string) (interface{}, error)
	DeleteSensor(string) error

	AllRules() ([]interface{}, error)
	GetRule(string) (interface{}, error)
	CreateRule(interface{}) (interface{}, error)
	UpdateRule(string, interface{}) (interface{}, error)
	DeleteRule(string) error

	AllBridges(context.Context, interface{}) ([]interface{}, error)
	CreateUser(interface{}) (interface{}, error)
	GetConfig(context.Context) (interface{}, error)
	ModifyConfig(interface{}) (interface{}, error)
	Unwhitelist(string) error
	GetFullState(context.Context) (interface{}, error)
}

type HostKey

type HostKey struct{}

type SearchParams

type SearchParams struct {
	Devices []string `json:"deviceid"`
}

type UserKey

type UserKey struct{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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