Copyright © 2019 Marc Worrell
Authors: Marc Worrell (marc@worrell.nl).
error() = timeout | no_client | invalid_topic | forged | badarg | expired
key() = binary() | atom()
value() = number() | boolean() | binary() | #{key() => value()} | tuple()
delete/2 | |
delete/3 | |
device_id/1 | |
get/2 | |
get/3 | |
get_secure/2 | |
put/3 | |
put/4 | |
put_secure/4 |
delete(Key::key(), Context::z:context()) -> ok | {error, error()}
delete(Key::key(), BridgeTopic::mqtt_sessions:topic(), Context::z:context()) -> ok | {error, error()}
device_id(Context::z:context()) -> {{ok, binary()}, z:context()} | {{error, error()}, z:context()}
get(Key::key(), Context::z:context()) -> {ok, value()} | {error, error()}
get(Key::key(), BridgeTopic::mqtt_sessions:topic(), Context::z:context()) -> {ok, value()} | {error, error()}
get_secure(Key::key(), Context::z:context()) -> ok | {error, error()}
put(Key::key(), Value::value(), Context::z:context()) -> ok | {error, error()}
put(Key::key(), Value::value(), BridgeTopic::mqtt_sessions:topic(), Context::z:context()) -> ok | {error, error()}
put_secure(Key::key(), Value::value(), TTL::pos_integer(), Context::z:context()) -> ok | {error, error()}
Generated by EDoc