Skip to content

Commit

Permalink
deprecated: Index.{Delete,Clear} replaced by Client.{Delete,Clear}Index
Browse files Browse the repository at this point in the history
  • Loading branch information
aseure committed Nov 27, 2018
1 parent 70ffd7d commit 799eff0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions algoliasearch/algoliasearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,25 @@ type Client interface {
ScopedCopyIndexWithRequestOptions(source, destination string, scopes []string, opts *RequestOptions) (UpdateTaskRes, error)

// DeleteIndex removes the `name` Algolia index.
//
// Deprecated: Use Index.Delete instead.
DeleteIndex(name string) (res DeleteTaskRes, err error)

// DeleteIndexWithRequestOptions is the same as DeleteIndex but it also
// accepts extra RequestOptions.
//
// Deprecated: Use Index.DeleteWithRequestOptions instead.
DeleteIndexWithRequestOptions(name string, opts *RequestOptions) (res DeleteTaskRes, err error)

// ClearIndex removes every record from the `name` Algolia index.
//
// Deprecated: Use Index.Clear instead.
ClearIndex(name string) (res UpdateTaskRes, err error)

// ClearIndexWithRequestOptions is the same as ClearIndex but it also
// accepts extra RequestOptions.
//
// Deprecated: Use Index.ClearWithRequestOptions instead.
ClearIndexWithRequestOptions(name string, opts *RequestOptions) (res UpdateTaskRes, err error)

// AddUserKey creates a new API key from the supplied `ACL` and the
Expand Down

0 comments on commit 799eff0

Please sign in to comment.