Documentation
¶
Index ¶
- Constants
- type Card
- type CardList
- type Delay
- type Door
- func (d *Door) Close(closed func()) bool
- func (d *Door) EnableButton(enabled bool) bool
- func (d *Door) EnableProfile(enabled bool) bool
- func (d *Door) IsButtonPressed() bool
- func (d *Door) IsNormallyClosed() bool
- func (d *Door) IsOpen() bool
- func (d *Door) IsProfileDisabled() bool
- func (d *Door) IsUnlocked() bool
- func (d *Door) Open(duration *time.Duration, opened func(uint8), closed func()) bool
- func (d *Door) OverrideState(state uint8) bool
- func (d *Door) PressButton(duration time.Duration) (pressed bool, reason uint8)
- func (d *Door) Unlock(duration time.Duration) bool
- type Event
- type EventList
- type Message
- type Offset
- type TaskList
- type TimeProfiles
Constants ¶
View Source
const ( NormallyOpen = uint8(1) NormallyClosed = uint8(2) Controlled = uint8(3) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Door ¶
type Door struct {
ControlState uint8 `json:"control"`
Delay Delay `json:"delay"`
// contains filtered or unexported fields
}
func (*Door) EnableButton ¶ added in v0.7.1
func (*Door) EnableProfile ¶ added in v0.7.1
func (*Door) IsButtonPressed ¶
func (*Door) IsNormallyClosed ¶ added in v0.7.1
func (*Door) IsProfileDisabled ¶ added in v0.7.1
func (*Door) IsUnlocked ¶ added in v0.6.7
func (*Door) OverrideState ¶ added in v0.7.1
func (*Door) PressButton ¶ added in v0.6.7
type Event ¶
type Event struct {
Index uint32 `json:"index"`
Type uint8 `json:"type"`
Granted bool `json:"granted"`
Door uint8 `json:"door"`
Direction uint8 `json:"direction"`
Card uint32 `json:"card"`
Timestamp *types.DateTime `json:"timestamp,omitempty"`
Reason uint8 `json:"reason"`
}
func (Event) MarshalJSON ¶ added in v0.7.2
PENDING rework of uhpppote-core::DateTime.MarshalJSON
func (*Event) UnmarshalJSON ¶ added in v0.7.2
PENDING rework of uhpppote-core::DateTime.UnmarshalJSON
type EventList ¶
type EventList struct {
// contains filtered or unexported fields
}
func MakeEventList ¶ added in v0.7.2
NOTE: no validation - for unit tests only
func (EventList) MarshalJSON ¶ added in v0.7.2
func (*EventList) UnmarshalJSON ¶ added in v0.7.2
type TaskList ¶ added in v0.7.1
type TimeProfiles ¶ added in v0.7.0
type TimeProfiles map[uint8]types.TimeProfile
func (TimeProfiles) Clear ¶ added in v0.7.0
func (t TimeProfiles) Clear() bool
func (TimeProfiles) Set ¶ added in v0.7.0
func (t TimeProfiles) Set(profile types.TimeProfile) bool
Click to show internal directories.
Click to hide internal directories.