summaryrefslogtreecommitdiff
path: root/internal/message/processor.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-05-29 19:39:43 +0200
committerLibravatar GitHub <noreply@github.com>2021-05-29 19:39:43 +0200
commit1fe5e36ac3a631a53724fe99583b7f11baa32c53 (patch)
tree40ae75c3613c9c6915273f98fe7ce41046d11381 /internal/message/processor.go
parentfederate account updates (diff)
downloadgotosocial-1fe5e36ac3a631a53724fe99583b7f11baa32c53.tar.xz
Search (#36)
First implementation of search functionality for remote account and status lookups.
Diffstat (limited to 'internal/message/processor.go')
-rw-r--r--internal/message/processor.go3
1 files changed, 3 insertions, 0 deletions
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.