identt
LookupService.hpp
1 
33 #ifndef _IDENTT_STORE_LOOKUP_SERVICE_HPP_
34 #define _IDENTT_STORE_LOOKUP_SERVICE_HPP_
35 
36 #include <query/SignedJson.hpp>
37 #include <store/StoreBase.hpp>
38 #include <mutex>
39 
40 namespace identt {
41 namespace store {
42 
44 public:
45 
58  void LookupAction(
59  ::identt::utils::SharedTable::pointer stptr,
60  ::identt::query::LookupDataT* lact);
61 
74  void BulkLookupAction(
75  ::identt::utils::SharedTable::pointer stptr,
76  ::identt::query::BulkLookupDataT* blact);
77 
78 private:
80  std::mutex read_mutex;
81 
94  void LookupGlobal(
95  ::identt::utils::SharedTable::pointer stptr,
96  ::identt::query::LookupQueryT* query,
97  ::identt::query::LookupResultT* result);
98 
117  void BulkLookupGlobal(
118  ::identt::utils::SharedTable::pointer stptr,
119  ::identt::query::BulkLookupDataT* blact,
120  size_t start, size_t end);
121 
134  void LookupLocal(
135  ::identt::utils::SharedTable::pointer stptr,
136  ::identt::query::LookupQueryT* query,
137  ::identt::query::LookupResultT* result);
138 
157  void BulkLookupLocal(
158  ::identt::utils::SharedTable::pointer stptr,
159  ::identt::query::BulkLookupDataT* blact,
160  size_t start, size_t end);
161 
162 };
163 } // namespace query
164 } // namespace identt
165 
166 #endif // _IDENTT_STORE_LOOKUP_SERVICE_HPP_
Definition: SignedJson.hpp:43
Definition: StoreBase.hpp:58
Definition: CryptoBase.hpp:49
void BulkLookupAction(::identt::utils::SharedTable::pointer stptr, ::identt::query::BulkLookupDataT *blact)
BulkLookupAction : Service Endpoint Lookup.
Definition: LookupService.cc:62
Definition: LookupService.hpp:43
void LookupAction(::identt::utils::SharedTable::pointer stptr, ::identt::query::LookupDataT *lact)
LookupAction : Service Endpoint Lookup.
Definition: LookupService.cc:47