Documentation
¶
Index ¶
- Constants
- type Event
- type Events
- func (ee *Events) AsObjects(start, max int, auth auth.OpAuth) []schema.Object
- func (ee *Events) Clone() *Events
- func (ee *Events) Load(blob json.RawMessage) error
- func (ee *Events) Missing(gaps int, controllers ...uint32) map[uint32][]types.Interval
- func (ee *Events) Print()
- func (ee *Events) Received(deviceID uint32, recent []uhppoted.Event, ...)
- func (ee *Events) Save() (json.RawMessage, error)
- func (ee *Events) UpdateByOID(auth auth.OpAuth, oid schema.OID, value string) ([]interface{}, error)
- func (ee *Events) Validate() error
Constants ¶
View Source
const EventCard = schema.EventCard
View Source
const EventCardName = schema.EventCardName
View Source
const EventDeviceID = schema.EventDeviceID
View Source
const EventDeviceName = schema.EventDeviceName
View Source
const EventDirection = schema.EventDirection
View Source
const EventDoor = schema.EventDoor
View Source
const EventDoorName = schema.EventDoorName
View Source
const EventGranted = schema.EventGranted
View Source
const EventIndex = schema.EventIndex
View Source
const EventReason = schema.EventReason
View Source
const EventTimestamp = schema.EventTimestamp
View Source
const EventType = schema.EventType
View Source
const EventsFirst = schema.EventsFirst
View Source
const EventsLast = schema.EventsLast
View Source
const EventsOID = schema.EventsOID
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
catalog.CatalogEvent
Timestamp core.DateTime
Type eventType
Door uint8
Direction direction
Card uint32
Granted bool
Reason reason
DeviceName string
DoorName string
CardName string
}
func (*Event) AsRuleEntity ¶
type Events ¶
func (*Events) Missing ¶
NTS: for 1000000 events (i.e. in the expected range), binary search improves only slightly
on a sequential linear traverse but it's a cleaner algorithm and scales somewhat better. Copying from the map is the dominant cost.
Click to show internal directories.
Click to hide internal directories.