~umgeher/utfs-core

02c837b1feab772ac2c91a56f2984d33bb315581 — Umgeher Torgersen 11 months ago 2aebac3
exports: si_get, si_range, si_set and tl_range
1 files changed, 27 insertions(+), 3 deletions(-)

M src/utfs_core.erl
M src/utfs_core.erl => src/utfs_core.erl +27 -3
@@ 8,12 8,18 @@
         kv_set/2,
         kv_set/3,
         local_notify/1,
         si_get/3,
         si_get/4,
         si_range/3,
         si_range/4,
         si_set/4,
         settings_riak/0,
         settings_riak_append/1,
         settings_riak_append/2,
         tl_add/2,
         tl_get/2,
         tl_last/1,
         tl_range/3,
         tl_range/4,
         tl_set/3,
         tl_uid/1
        ]).


@@ 48,8 54,20 @@ settings_riak_append(Host) ->
settings_riak_append(Host, Port) ->
    utfs_core_settings:riak_append(Host, Port).

tl_add(Timeline, Value) ->
    utfs_core_tl_add:add(Timeline, Value).
si_get(File, Index, Key) ->
    si_get(File, Index, Key, []).

si_get(File, Index, Key, Options) ->
    utfs_core_si_get:get(File, Index, Key, Options).

si_range(File, Index, Key) ->
    si_range(File, Index, Key, []).

si_range(File, Index, Key, Options) ->
    utfs_core_si_range:range(File, Index, Key, Options).

si_set(File, Key, Index, Value) ->
    utfs_core_si_set:set(File, Key, Index, Value).

tl_get(Timeline, Event) ->
    utfs_core_tl_get:get(Timeline, Event).


@@ 57,6 75,12 @@ tl_get(Timeline, Event) ->
tl_last(Timeline) ->
    utfs_core_tl_last:last(Timeline).

tl_range(Timeline, Index, Key) ->
    tl_range(Timeline, Index, Key, []).

tl_range(Timeline, Index, Key, Options) ->
    utfs_core_tl_range:range(Timeline, Index, Key, Options).

tl_set(Timeline, Event, Value) ->
    utfs_core_tl_set:set(Timeline, Event, Value).