From 3c07310c7d2b35c97ff96266f701444ba37433a7 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 12 Sep 2014 17:11:23 +0200 Subject: Add support for retrieving historical tree heads. --- src/ts.erl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/ts.erl') 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. -- cgit v1.1