Documentation
¶
Index ¶
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 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 Device struct {
SerialNumber SerialNumber
IpAddress net.IP
SubnetMask net.IP
Gateway net.IP
MacAddress MacAddress
Version Version
Date Date
}
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 RecordCount ¶
type RecordCount struct {
SerialNumber SerialNumber
Records uint32
}
func (*RecordCount) String ¶
func (r *RecordCount) String() string
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 Status struct {
SerialNumber SerialNumber
LastIndex uint32
EventType byte
Granted bool
Door byte
DoorOpened bool
UserID uint32
EventTimestamp DateTime
EventResult byte
DoorState []bool
DoorButton []bool
SystemState byte
SystemDateTime DateTime
PacketNumber uint32
Backup uint32
SpecialMessage byte
Battery byte
FireAlarm byte
}
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.