Documentation ¶
Index ¶
- Constants
- func SetProtocol(version string)
- func Transmogrify(e uhppoted.Event) any
- type Device
- func (d *Device) ClearTimeProfiles(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) DeleteCard(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) DeleteCards(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) GetCard(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) GetCards(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) GetDevice(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) GetDevices(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) GetDoorControl(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) GetDoorDelay(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) GetEvent(impl uhppoted.IUHPPOTED, request []byte) (any, error)
- func (d *Device) GetEvents(impl uhppoted.IUHPPOTED, request []byte) (any, error)
- func (d *Device) GetStatus(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) GetTime(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) GetTimeProfile(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) GetTimeProfiles(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) OpenDoor(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) PutCard(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) PutTaskList(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) PutTimeProfile(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) PutTimeProfiles(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) RecordSpecialEvents(impl uhppoted.IUHPPOTED, request []byte) (any, error)
- func (d *Device) SetDoorControl(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) SetDoorDelay(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- func (d *Device) SetTime(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)
- type Event
- type Status
Constants ¶
View Source
const ( StatusInternalServerError = uhppoted.StatusInternalServerError StatusBadRequest = uhppoted.StatusBadRequest StatusNotFound = uhppoted.StatusNotFound )
Variables ¶
This section is empty.
Functions ¶
func SetProtocol ¶ added in v0.8.1
func SetProtocol(version string)
func Transmogrify ¶ added in v0.8.1
Types ¶
type Device ¶
func (*Device) ClearTimeProfiles ¶ added in v0.7.0
func (*Device) DeleteCard ¶
func (*Device) DeleteCards ¶
func (*Device) GetDevices ¶
func (*Device) GetDoorControl ¶
func (*Device) GetDoorDelay ¶
func (*Device) GetTimeProfile ¶ added in v0.7.0
func (*Device) GetTimeProfiles ¶ added in v0.7.0
func (*Device) PutTaskList ¶ added in v0.7.1
func (*Device) PutTimeProfile ¶ added in v0.7.0
func (*Device) PutTimeProfiles ¶ added in v0.7.0
func (*Device) RecordSpecialEvents ¶ added in v0.6.7
Handler for the special-events MQTT message. Extracts the 'enabled' value from the request and invokes the uhppoted-lib.RecordSpecialEvents API function to update the controller 'record special events' flag.
func (*Device) SetDoorControl ¶
func (*Device) SetDoorDelay ¶
type Event ¶ added in v0.8.1
type Event struct { DeviceID uint32 `json:"device-id"` Index uint32 `json:"event-id"` Type uint8 `json:"event-type"` TypeText string `json:"event-type-text"` Granted bool `json:"access-granted"` Door uint8 `json:"door-id"` Direction uint8 `json:"direction"` DirectionText string `json:"direction-text"` CardNumber uint32 `json:"card-number"` Timestamp types.DateTime `json:"timestamp"` Reason uint8 `json:"event-reason"` ReasonText string `json:"event-reason-text"` }
type Status ¶ added in v0.8.1
type Status struct { DoorState map[uint8]bool `json:"door-states"` DoorButton map[uint8]bool `json:"door-buttons"` SystemError uint8 `json:"system-error"` SystemDateTime types.DateTime `json:"system-datetime"` SequenceId uint32 `json:"sequence-id"` SpecialInfo uint8 `json:"special-info"` RelayState uint8 `json:"relay-state"` InputState uint8 `json:"input-state"` Event any `json:"event,omitempty"` }
Click to show internal directories.
Click to hide internal directories.