From 0fe853b1ee644703e2273ed4ce331cfd377af268 Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Sat, 29 May 2021 19:36:54 +0200 Subject: first implementation of search feature --- internal/message/processor.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/message/processor.go') diff --git a/internal/message/processor.go b/internal/message/processor.go index 49a4f6f05..e22ed33d6 100644 --- a/internal/message/processor.go +++ b/internal/message/processor.go @@ -109,6 +109,9 @@ type Processor interface { // NotificationsGet NotificationsGet(authed *oauth.Auth, limit int, maxID string) ([]*apimodel.Notification, ErrorWithCode) + // SearchGet performs a search with the given params, resolving/dereferencing remotely as desired + SearchGet(authed *oauth.Auth, searchQuery *apimodel.SearchQuery) (*apimodel.SearchResult, ErrorWithCode) + // StatusCreate processes the given form to create a new status, returning the api model representation of that status if it's OK. StatusCreate(authed *oauth.Auth, form *apimodel.AdvancedStatusCreateForm) (*apimodel.Status, error) // StatusDelete processes the delete of a given status, returning the deleted status if the delete goes through. -- cgit v1.2.3