[Add] Create index #6

Merged
trunglt251292 merged 1 commits from v1 into master 2022-03-25 03:02:11 +00:00
2 changed files with 7 additions and 0 deletions
Showing only changes of commit 4e39cd3861 - Show all commits

View File

@ -16,6 +16,8 @@ const (
SubjectRequestKeywordUpsert = "selly.request.keyword.upsert"
SubjectPullKeywordUpsert = "selly.pull.keyword.upsert"
SubjectRequestKeywordSearch = "selly.request.keyword.search"
SubjectRequestCreateIndex = "selly.request.es.create_index"
)
const (

View File

@ -43,3 +43,8 @@ func (Request) KeywordSearch(query ESQuery) (*Response, error) {
func (Request) KeywordUpsert(payload Payload) (*Response, error) {
return requestNats(SubjectRequestKeywordUpsert, toBytes(payload))
}
// CreateIndex ...
func (Request) CreateIndex(payload Payload) (*Response, error) {
return requestNats(SubjectRequestCreateIndex, toBytes(payload))
}