package
Version:
v0.6.4
Opens a new window with list of versions in this module.
Published: Aug 14, 2020
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Device struct {
DeviceID uint32 `json:"device-id"`
DeviceType string `json:"device-type"`
}
type DeviceList struct {
Devices []Device `json:"devices"`
}
type NewDeviceRequest struct {
DeviceID uint32 `json:"device-id"`
DeviceType string `json:"device-type"`
Compressed bool `json:"compressed"`
}
type SwipeRequest struct {
Door uint8 `json:"door"`
CardNumber uint32 `json:"card-number"`
}
type SwipeResponse struct {
Granted bool `json:"access-granted"`
Opened bool `json:"door-opened"`
Message string `json:"message"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.