V1 #7
|
@ -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 (
|
||||||
|
|
|
@ -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))
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue