Copyright © 2019 Klarna Bank AB (publ)
This module assembles payloads transferred in chunks into files. Empty files aren't created.
User needs to specify the location where files will be created.
#{location := file:filename_all()}
#{ key := binary() , value := binary() , headers := [{<<"slice_cnt">>, binary()}, % e.g. <<"42">> ,{<<"slice_num">>, binary()} % e.g. <<"1">> (1-based) ,{<<"deleted">>,<<"0">> | <<"1">>} ] , ... }
#{ key := binary() , retransmission := boolean() , deleted := boolean() }
This module is designed to survive the following permutations of the messages:
[1, 2, 3, 1, 2,
3, 4, 5]
[1, 2, 3,
2, 3, 4, 5]
[3, 4, 5]
chunk_count/1 | |
chunk_num/1 | |
in/6 | |
out/2 |
chunk_count(X1) -> any()
chunk_num(X1) -> any()
in(Offset, SliceNum, SliceCnt, Msg, State, Config) -> any()
out(State, X2) -> any()
Generated by EDoc