21 lines
641 B
Go
21 lines
641 B
Go
package elasticsearch
|
|
|
|
// Pull ...
|
|
type Pull struct {
|
|
}
|
|
|
|
// ProductUpsert ...
|
|
func (r Pull) ProductUpsert(query UpdateDataPayload) (bool, error) {
|
|
return GetClient().PublishWithJetStream(JetStreamSearchService, SubjectPullProductUpsert, toBytes(query))
|
|
}
|
|
|
|
// UserUpsert ...
|
|
func (r Pull) UserUpsert(query UpdateDataPayload) (bool, error) {
|
|
return GetClient().PublishWithJetStream(JetStreamSearchService, SubjectPullUserUpsert, toBytes(query))
|
|
}
|
|
|
|
// OrderUpsert ...
|
|
func (r Pull) OrderUpsert(query UpdateDataPayload) (bool, error) {
|
|
return GetClient().PublishWithJetStream(JetStreamSearchService, SubjectPullOrderUpsert, toBytes(query))
|
|
}
|