Skip to content

Commit

Permalink
fix(index): add missing Exists() method to the IndexInterface (#537)
Browse files Browse the repository at this point in the history
[changelog]

Because the Exists() method was missing, the Index could not be mocked
as expected.
  • Loading branch information
aseure committed Aug 21, 2019
1 parent e9b8596 commit c1812b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions algolia/search/index_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ type IndexInterface interface {
GetAppID() string
ClearObjects(opts ...interface{}) (res UpdateTaskRes, err error)
Delete(opts ...interface{}) (res DeleteTaskRes, err error)
Exists() (exists bool, err error)

// Indexing
GetObject(objectID string, object interface{}, opts ...interface{}) error
Expand Down

0 comments on commit c1812b9

Please sign in to comment.