V1 #7

Merged
trunglt251292 merged 5 commits from v1 into master 2022-04-18 07:41:39 +00:00
2 changed files with 7 additions and 0 deletions
Showing only changes of commit 297782f089 - Show all commits

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))
}