diff options
Diffstat (limited to 'connector/connector.go')
-rw-r--r-- | connector/connector.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/connector/connector.go b/connector/connector.go index 48fc9e7..c2edda4 100644 --- a/connector/connector.go +++ b/connector/connector.go @@ -59,6 +59,9 @@ type Connector interface { // Leave a channel Leave(roomId RoomID) + // Search for users + SearchForUsers(query string) ([]UserSearchResult, error) + // Send an event. Returns the ID of the created remote message. // This ID is used to deduplicate messages: if it comes back, it should have the same Id // than the one returned here. @@ -153,6 +156,11 @@ type RoomInfo struct { Picture SMediaObject `json:"picture"` } +type UserSearchResult struct { + ID UserID `json:"id"` + DisplayName string `json:"display_name"` +} + type MediaObject interface { Filename() string Size() int64 |