[Update] Delete multiple index
This commit is contained in:
parent
68fefbfe24
commit
297782f089
|
@ -20,6 +20,8 @@ const (
|
|||
SubjectPullUserUpsert = "selly.pull.user.upsert"
|
||||
SubjectRequestUserSearch = "selly.request.user.search"
|
||||
SubjectRequestUserCreateIndex = "selly.request.user.create_index"
|
||||
|
||||
SubjectRequestDeleteMultipleIndex = "selly.request.delete.multiple_index"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -63,3 +63,8 @@ func (Request) KeywordUpsert(payload Payload) (*Response, error) {
|
|||
func (Request) KeywordCreateIndex() (*Response, error) {
|
||||
return requestNats(SubjectRequestKeywordCreateIndex, toBytes(Payload{}))
|
||||
}
|
||||
|
||||
// DeleteMultipleIndex ...
|
||||
func (Request) DeleteMultipleIndex(indexes []string) (*Response, error) {
|
||||
return requestNats(SubjectRequestDeleteMultipleIndex, toBytes(indexes))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue