[Update] Delete multiple index

This commit is contained in:
trunglt251292 2022-04-01 10:15:11 +07:00
parent 68fefbfe24
commit 297782f089
2 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,8 @@ const (
SubjectPullUserUpsert = "selly.pull.user.upsert" SubjectPullUserUpsert = "selly.pull.user.upsert"
SubjectRequestUserSearch = "selly.request.user.search" SubjectRequestUserSearch = "selly.request.user.search"
SubjectRequestUserCreateIndex = "selly.request.user.create_index" SubjectRequestUserCreateIndex = "selly.request.user.create_index"
SubjectRequestDeleteMultipleIndex = "selly.request.delete.multiple_index"
) )
const ( const (

View File

@ -63,3 +63,8 @@ func (Request) KeywordUpsert(payload Payload) (*Response, error) {
func (Request) KeywordCreateIndex() (*Response, error) { func (Request) KeywordCreateIndex() (*Response, error) {
return requestNats(SubjectRequestKeywordCreateIndex, toBytes(Payload{})) return requestNats(SubjectRequestKeywordCreateIndex, toBytes(Payload{}))
} }
// DeleteMultipleIndex ...
func (Request) DeleteMultipleIndex(indexes []string) (*Response, error) {
return requestNats(SubjectRequestDeleteMultipleIndex, toBytes(indexes))
}