Documentation
¶
Index ¶
- type Authorised
- type Card
- type Date
- func (d Date) After(p Date) bool
- func (d Date) Before(p Date) bool
- func (d Date) MarshalJSON() ([]byte, error)
- func (d Date) MarshalUT0311L0x() ([]byte, error)
- func (d Date) String() string
- func (d *Date) UnmarshalJSON(bytes []byte) error
- func (d *Date) UnmarshalUT0311L0x(bytes []byte) (interface{}, error)
- type DateTime
- type Device
- type DoorControlState
- type Event
- type EventIndex
- type EventIndexResult
- type Listener
- type MacAddress
- type MsgType
- type Result
- type SOM
- type SerialNumber
- type Status
- type StatusEvent
- type SystemDate
- type SystemTime
- type Time
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorised ¶
func (*Authorised) String ¶
func (r *Authorised) String() string
type Card ¶
type Card struct {
CardNumber uint32 `json:"card-number"`
From *Date `json:"start-date"`
To *Date `json:"end-date"`
Doors map[uint8]bool `json:"doors"`
}
func (*Card) UnmarshalJSON ¶
type Date ¶
func DateFromString ¶
func (Date) MarshalJSON ¶
func (Date) MarshalUT0311L0x ¶
func (*Date) UnmarshalJSON ¶
func (*Date) UnmarshalUT0311L0x ¶
type DateTime ¶
func DateTimeFromString ¶
func (DateTime) MarshalJSON ¶
func (DateTime) MarshalUT0311L0x ¶
func (*DateTime) UnmarshalJSON ¶
func (*DateTime) UnmarshalUT0311L0x ¶
type Device ¶
type DoorControlState ¶
type DoorControlState struct {
SerialNumber SerialNumber
Door uint8
ControlState uint8
Delay uint8
}
func (*DoorControlState) String ¶
func (d *DoorControlState) String() string
type Event ¶
type EventIndex ¶
type EventIndex struct {
SerialNumber SerialNumber
Index uint32
}
func (*EventIndex) String ¶
func (s *EventIndex) String() string
type EventIndexResult ¶
type EventIndexResult struct {
SerialNumber SerialNumber
Index uint32
Changed bool
}
func (*EventIndexResult) String ¶
func (s *EventIndexResult) String() string
type Listener ¶
type Listener struct {
SerialNumber SerialNumber
Address net.UDPAddr
}
type MacAddress ¶
type MacAddress net.HardwareAddr
func (MacAddress) MarshalJSON ¶
func (m MacAddress) MarshalJSON() ([]byte, error)
func (MacAddress) MarshalUT0311L0x ¶
func (m MacAddress) MarshalUT0311L0x() ([]byte, error)
func (MacAddress) String ¶
func (m MacAddress) String() string
func (*MacAddress) UnmarshalJSON ¶
func (m *MacAddress) UnmarshalJSON(bytes []byte) error
func (*MacAddress) UnmarshalUT0311L0x ¶
func (m *MacAddress) UnmarshalUT0311L0x(bytes []byte) (interface{}, error)
type Result ¶
type Result struct {
SerialNumber SerialNumber
Succeeded bool
}
type SerialNumber ¶
type SerialNumber uint32
func (SerialNumber) MarshalUT0311L0x ¶
func (s SerialNumber) MarshalUT0311L0x() ([]byte, error)
func (SerialNumber) String ¶
func (s SerialNumber) String() string
func (*SerialNumber) UnmarshalUT0311L0x ¶
func (s *SerialNumber) UnmarshalUT0311L0x(bytes []byte) (interface{}, error)
type Status ¶
type StatusEvent ¶ added in v0.6.12
type SystemDate ¶
func (SystemDate) MarshalUT0311L0x ¶
func (d SystemDate) MarshalUT0311L0x() ([]byte, error)
func (SystemDate) String ¶
func (d SystemDate) String() string
func (*SystemDate) UnmarshalUT0311L0x ¶
func (d *SystemDate) UnmarshalUT0311L0x(bytes []byte) (interface{}, error)
type SystemTime ¶
func (SystemTime) MarshalUT0311L0x ¶
func (d SystemTime) MarshalUT0311L0x() ([]byte, error)
func (SystemTime) String ¶
func (t SystemTime) String() string
func (*SystemTime) UnmarshalUT0311L0x ¶
func (t *SystemTime) UnmarshalUT0311L0x(bytes []byte) (interface{}, error)
type Time ¶
type Time struct {
SerialNumber SerialNumber
DateTime DateTime
}
type Version ¶
type Version uint16
func (Version) MarshalJSON ¶
func (Version) MarshalUT0311L0x ¶
func (*Version) UnmarshalJSON ¶
func (*Version) UnmarshalUT0311L0x ¶
Click to show internal directories.
Click to hide internal directories.