repo: initialize storage (e.g., rebuild index)

Change-Id: Iba8d5db1ecfb67c085f7f6355726a41b3f48aafa
Refs: #1831
diff --git a/src/repo.hpp b/src/repo.hpp
index ba518d1..e1feea6 100644
--- a/src/repo.hpp
+++ b/src/repo.hpp
@@ -72,6 +72,10 @@
 public:
   Repo(boost::asio::io_service& ioService, const RepoConfig& config);
 
+  //@brief rebuild index from storage file when repo starts.
+  void
+  initializeStorage();
+
   void
   enableListening();