Module m_client_session_storage

Store information in the sessionStorage on the client.

Copyright © 2019 Marc Worrell

Authors: Marc Worrell (marc@worrell.nl).

Description

Store information in the sessionStorage on the client.

Data Types

error()

error() = timeout | no_client | invalid_topic

key()

key() = binary() | atom()

value()

value() = number() | boolean() | binary() | #{key() => value()} | tuple()

Function Index

delete/2
delete/3
delete_subkey/3
delete_subkey/4
get/2
get/3
get_subkey/3
get_subkey/4
put/3
put/4
put_subkey/4
put_subkey/5

Function Details

delete/2

delete(Key::key(), Context::z:context()) -> ok | {error, error()}

delete/3

delete(Key::key(), BridgeTopic::mqtt_sessions:topic(), Context::z:context()) -> ok | {error, error()}

delete_subkey/3

delete_subkey(Key::key(), SubKey::key(), Context::z:context()) -> ok | {error, error()}

delete_subkey/4

delete_subkey(Key::key(), Subkey::key(), BridgeTopic::mqtt_sessions:topic(), Context::z:context()) -> ok | {error, error()}

get/2

get(Key::key(), Context::z:context()) -> {ok, value()} | {error, error()}

get/3

get(Key::key(), BridgeTopic::mqtt_sessions:topic(), Context::z:context()) -> {ok, value()} | {error, error()}

get_subkey/3

get_subkey(Key::key(), SubKey::key(), Context::z:context()) -> {ok, value()} | {error, error()}

get_subkey/4

get_subkey(Key::key(), SubKey::key(), BridgeTopic::mqtt_sessions:topic(), Context::z:context()) -> {ok, value()} | {error, error()}

put/3

put(Key::key(), Value::value(), Context::z:context()) -> ok | {error, error()}

put/4

put(Key::key(), Value::value(), BridgeTopic::mqtt_sessions:topic(), Context::z:context()) -> ok | {error, error()}

put_subkey/4

put_subkey(Key::key(), SubKey::key(), Value::value(), Context::z:context()) -> ok | {error, error()}

put_subkey/5

put_subkey(Key::key(), SubKey::key(), Value::value(), BridgeTopic::mqtt_sessions:topic(), Context::z:context()) -> ok | {error, error()}


Generated by EDoc