package
Version:
v0.0.0-...-0791769
Opens a new window with list of versions in this module.
Published: Sep 3, 2019
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Light struct {
gorm.Model
Name string `gorm:"unique" json:"name"`
Pin *int `gorm:"unique" json:"pin"`
Status bool `json:"status"`
}
Light represents a Light Device
type User struct {
gorm.Model
Username string `gorm:"unique" json:"username"`
Password string `json:"-"`
}
User represents a User
with Username, Password
Source Files
¶
Click to show internal directories.
Click to hide internal directories.