Handler handles search queries.
| 64 | |
| 65 | // Handler handles search queries. |
| 66 | type Handler struct { |
| 67 | index index.Interface |
| 68 | owner *index.Owner |
| 69 | // optional for search aliases |
| 70 | fetcher blob.Fetcher |
| 71 | |
| 72 | // Corpus optionally specifies the full in-memory metadata corpus |
| 73 | // to use. |
| 74 | // TODO: this may be required in the future, or folded into the index |
| 75 | // interface. |
| 76 | corpus *index.Corpus |
| 77 | |
| 78 | lh *index.LocationHelper |
| 79 | |
| 80 | // WebSocket hub |
| 81 | wsHub *wsHub |
| 82 | } |
| 83 | |
| 84 | // GetRecentPermanoder is the interface containing the GetRecentPermanodes method. |
| 85 | type GetRecentPermanoder interface { |
nothing calls this directly
no outgoing calls
no test coverage detected