summaryrefslogtreecommitdiff
path: root/src/ts.erl
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2014-09-12 17:11:23 +0200
committerLinus Nordberg <linus@nordberg.se>2014-09-12 17:11:23 +0200
commit3c07310c7d2b35c97ff96266f701444ba37433a7 (patch)
tree4184a29cab8661df88e898f1932fced48b1788bb /src/ts.erl
parent25ccd682ed4adddaa7f33ddc421e04b6988abc68 (diff)
Add support for retrieving historical tree heads.
Diffstat (limited to 'src/ts.erl')
-rw-r--r--src/ts.erl9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ts.erl b/src/ts.erl
index 841fdd7..e60a114 100644
--- a/src/ts.erl
+++ b/src/ts.erl
@@ -1,9 +1,16 @@
-% tree storage
+%%% Copyright (c) 2014, NORDUnet A/S.
+%%% See LICENSE for licensing information.
+%%%
+
+%% tree storage, TODO: docdoc
+
-module(ts).
-include_lib("eunit/include/eunit.hrl").
-export_type([tree_store/0]).
-export([new/0, store/3, append/3, truncate/2, retrieve/2, retrieve_hash/2, delete/2]).
+%% FIXME: swap IR -> RI for consistency with ht
+
%% FIXME: Keep the arrays in an array instead of in a map? Or maybe an
%% array of binaries? Hashes do have fixed lenght.
-record(tree_store, {arrays :: map()}). % Map of arrays, indexed by layer.