Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Username is the application key for the bridge.
Username = "username"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
type Bridge struct { // URL represents the URL of the server. URL string // contains filtered or unexported fields }
Bridge represents a "fake" Hue bridge that simulates the functions of an actual bridge as closely as possible.
func (*Bridge) AddResource ¶
AddResource adds the provided resource to the bridge.
func (*Bridge) GetResource ¶
GetResource attempts to retrieve the specified resource by its ID.
func (*Bridge) PushButton ¶
func (b *Bridge) PushButton()
PushButton simulates a user pressing the button on the bridge.
Click to show internal directories.
Click to hide internal directories.