Documentation
¶
Index ¶
- Constants
- type Card
- type CardList
- type Delay
- type Door
- func (d *Door) Close(closed func()) bool
- func (d *Door) IsButtonPressed() bool
- func (d *Door) IsOpen() bool
- func (d *Door) IsUnlocked() bool
- func (d *Door) Open(duration *time.Duration, opened func(uint8), closed func()) bool
- func (d *Door) PressButton(duration time.Duration) (pressed bool, unlocked bool)
- func (d *Door) Unlock(duration time.Duration) bool
- type Event
- type EventList
- type Message
- type Offset
- 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) IsButtonPressed ¶
func (*Door) IsUnlocked ¶ added in v0.6.7
func (*Door) PressButton ¶ added in v0.6.7
type EventList ¶
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.