Copyright © 2019 Driebit BV
Behaviours: zotonic_model.
Authors: Marc Worrell (marc@worrell.nl).
device_id() = binary() | undefined
delete_event/3 | Delete all entries for an event. |
init/1 | |
insert_event/4 | Insert an event, use the context for extra properties. |
insert_event/5 | Insert an event, with extra properties. |
is_event_limited/4 | Check if the key/device is rate limited due to previous events. |
list_event/3 | Return all entries for an event. |
m_get/3 | |
prune/1 |
delete_event(Type::atom(), Key::binary(), Context::z:context()) -> ok
Delete all entries for an event
init(Context::z:context()) -> ok
insert_event(Type::atom(), Key::binary(), Device::device_id(), Context::z:context()) -> ok | {error, term()}
Insert an event, use the context for extra properties.
insert_event(Type::atom(), Key::binary(), Device::device_id(), Props::proplists:proplist(), Context::z:context()) -> ok
Insert an event, with extra properties.
is_event_limited(Type::atom(), Key::binary(), Device::device_id(), Context::z:context()) -> boolean()
Check if the key/device is rate limited due to previous events.
list_event(Type::atom(), Key::binary(), Context::z:context()) -> list()
Return all entries for an event
m_get(Rest, Msg, Context) -> any()
prune(Context::z:context()) -> ok
Generated by EDoc