Module riak_ensemble_util

Data Types

delta()

delta() = {any(), any()} | {'$none', any()} | {any(), '$none'}

orddict()

orddict() = orddict:orddict()

Function Index

cast_unreliable/2
md5/1
orddict_delta/2 Compare two orddicts, returning a list of differences between them.
read_file/1Similar to file:read_file/1 but uses raw file I/O.
replace_file/2
sha/1
shuffle/1

Function Details

cast_unreliable/2

cast_unreliable(Dest, Request) -> any()

md5/1

md5(Bin::iolist() | binary()) -> binary()

orddict_delta/2

orddict_delta(D1::orddict(), D2::orddict()) -> [{any(), delta()}]

Compare two orddicts, returning a list of differences between them. Differences come in three forms: {Val, '$none'} :: key is in D1 but not in D2 {'$none', Val} :: key is in D2 but not in D1 {Val1, Val2} :: key is in both orddicts but values differ

read_file/1

read_file(FName::file:filename()) -> {ok, binary()} | {error, term()}

Similar to file:read_file/1 but uses raw file I/O

replace_file/2

replace_file(FN::file:filename(), Data::iodata()) -> ok | {error, term()}

sha/1

sha(Bin::iolist() | binary()) -> binary()

shuffle/1

shuffle(L::[T]) -> [T]


Generated by EDoc