You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
374 B

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. package models
  2. type Bridge struct {
  3. ID int `json:"id"`
  4. Name string `json:"name"`
  5. Driver DriverKind `json:"driver"`
  6. Address string `json:"address"`
  7. Token string `json:"token"`
  8. }
  9. type DriverKind string
  10. var (
  11. DTHue DriverKind = "Hue"
  12. DTNanoLeaf DriverKind = "NanoLeaf"
  13. )
  14. var ValidDriverKinds = []DriverKind{
  15. DTHue,
  16. DTNanoLeaf,
  17. }