Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthResponse ¶
type Device ¶
type Device struct { ID string `json:"id" bson:"_id,omitempty"` RoomID string `json:"roomID" bson:"room_id,omitempty"` Name string `json:"name" bson:"name,omitempty"` Model string `json:"model" bson:"model,omitempty"` MacAddress string `json:"macAddress" bson:"mac_address,omitempty"` Memo string `json:"memo" bson:"memo,omitempty"` SerialNumber string `json:"serialNumber" bson:"serial_number,omitempty"` Status int `json:"status" bson:"status,omitempty"` Type int `json:"type" bson:"type,omitempty"` CreatedDate time.Time `json:"createdDate" bson:"created_date,omitempty"` LastModified time.Time `json:"lastModified" bson:"last_modified,omitempty"` }
Device struct for one device
func (*Device) Update ¶
func (d *Device) Update(input DeviceUpdate)
Update convert DeviceUpdate to struct
type DeviceInput ¶
type DeviceUpdate ¶
type Email ¶
type Email struct { ID string `json:"id" bson:"_id,omitempty"` From string `json:"from" bson:"from,omitempty"` To string `json:"to" bson:"to,omitempty"` Data string `json:"data" bson:"data,omitempty"` CreatedDate time.Time `json:"createdDate" bson:"created_date,omitempty"` }
Email struct for email
type EmailInput ¶
type LoginInput ¶
type Room ¶
type Room struct { ID string `json:"id" bson:"_id,omitempty"` RoomNumber string `json:"roomNumber" bson:"room_number,omitempty"` Memo string `json:"memo" bson:"memo,omitempty"` Username string `json:"username" bson:"username,omitempty"` Password string `json:"password" bson:"password,omitempty"` CreatedDate time.Time `json:"createdDate" bson:"created_date,omitempty"` }
Room struct for one room
type RoomFilter ¶
type RoomFilter struct {
Name *string `json:"name"`
}
type RoomInput ¶
type RoomInput struct { RoomNumber string `json:"roomNumber"` Memo string `json:"memo"` Devices []*DeviceInput `json:"devices"` Username string `json:"username"` Password string `json:"password"` }
type RoomUpdate ¶
type User ¶
type User struct { ID string `json:"id" bson:"_id,omitempty"` Name string `json:"name" bson:"name,omitempty"` Username string `json:"username" bson:"username,omitempty"` Password string `json:"password" bson:"password,omitempty"` Location string `json:"location" bson:"location,omitempty"` Abbr string `json:"abbr" bson:"abbr,omitempty"` Email string `json:"email" bson:"email,omitempty"` Openhab string `json:"openhab" bson:"openhab,omitempty"` }
User struct for one user
func (*User) ComparePassword ¶
ComparePassword compares password using bcrypt
func (*User) HashPassword ¶
HashPassword using bcrypt
Click to show internal directories.
Click to hide internal directories.