diff --git a/bridge.go b/bridge.go index 047dcd3..c40964b 100644 --- a/bridge.go +++ b/bridge.go @@ -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{