Copyright © 2012 Zuse Institute Berlin
Version: $Id$
Authors: Florian Schintke (schintke@zib.de).
client_key() = [unicode_char()]
client_value() = any()
commit_result() = {struct, [{status, string()} | {reason, string()} | {keys, {array, [string()]}}]}
read_result() = {struct, [{status, string()} | {reason, string()} | {value, value()}]}
request() = {string(), client_key()} | {string(), {struct, [{client_key(), value()}]}} | {string(), {struct, [{string(), client_key()} | {string(), {array, [client_value()]}}]}} | {string(), {struct, [{client_key(), client_value()}]}} | {string(), {struct, [{string(), client_key()} | {string(), value()}]}} | {string(), any()}
result() = read_result() | write_result() | commit_result()
unicode_char() = 0..55295 | 57344..65533 | 65536..1114111
value() = {struct, [{type | string(), string()} | {value | string(), client_value()}]}
{"value", ...}
write_result() = {struct, [{status, string()} | {reason, string()}]}
add_del_on_list/3 | |
add_on_nr/2 | |
handler/2 | |
json_to_value/1 | |
read/1 | |
req_list/1 | |
req_list/2 | |
req_list_commit_each/1 | |
result_to_json/1 | |
results_to_json/1 | |
test_and_set/3 | |
value_to_json/1 | |
write/2 |
handler(AnyOp :: atom(), AnyParams :: list()) -> any()
req_list(ReqList :: {array, [request()]}) -> {struct, [{tlog, string()} | {results, {array, [result()]}}]}
req_list(JSON_TLog :: string(), JSON_ReqList :: {array, [request()]}) -> {struct, [{tlog, string()} | {results, {array, [result()]}}]}
read(Key :: client_key()) -> read_result()
write(Key :: client_key(), Value :: value()) -> commit_result()
add_del_on_list(Key :: client_key(), ToAdd :: {array, [client_value()]}, ToRemove :: {array, [client_value()]}) -> commit_result() | {struct, [{status, string()} | {reason, string()}]}
add_on_nr(Key :: client_key(), ToAdd :: number()) -> commit_result() | {struct, [{status, string()} | {reason, string()}]}
test_and_set(Key :: client_key(), OldValue :: value(), NewValue :: value()) -> commit_result() | {struct, [{status, string()} | {reason, string()} | {value, value()}]}
results_to_json(Results :: [api_tx:result()]) -> {array, [result()]}
result_to_json(Result :: api_tx:result()) -> result()
value_to_json(Value :: client_value()) -> {value, value()}
json_to_value(X1 :: value()) -> client_value()
Generated by EDoc, Feb 29 2016, 16:12:12.