mirror of
https://github.com/gosticks/go-hue-interface.git
synced 2025-10-16 11:45:35 +00:00
cleanup
This commit is contained in:
parent
4fbc421fc2
commit
17546acf17
@ -8,11 +8,16 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// -------------------------------------------------------------
|
||||
// Interfaces
|
||||
// -------------------------------------------------------------
|
||||
|
||||
// Bridge is the hue bridge interface
|
||||
type Bridge struct {
|
||||
Config *Config
|
||||
}
|
||||
|
||||
// BridgeUserConfig is the config provided for hue for a user
|
||||
type BridgeUserConfig struct {
|
||||
Name string `json:"name"`
|
||||
APIVersion string `json:"apiversion"`
|
||||
@ -24,6 +29,10 @@ type BridgeUserConfig struct {
|
||||
ReplacesBridgeID string `json:"replacesbridgeid"`
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------
|
||||
// Methods
|
||||
// -------------------------------------------------------------
|
||||
|
||||
// NewBridge creates a new bridge api instance
|
||||
func NewBridge(conf *Config) *Bridge {
|
||||
return &Bridge{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user