21 lines
581 B
Go
21 lines
581 B
Go
package elasticsearch
|
|
|
|
// Pull ...
|
|
type Pull struct {
|
|
}
|
|
|
|
// ProductUpsert ...
|
|
func (Pull) ProductUpsert(payload Payload) (bool, error) {
|
|
return publishWithJetStream(JetStreamSearchService, SubjectPullProductUpsert, toBytes(payload))
|
|
}
|
|
|
|
// UserUpsert ...
|
|
func (Pull) UserUpsert(payload Payload) (bool, error) {
|
|
return publishWithJetStream(JetStreamSearchService, SubjectPullUserUpsert, toBytes(payload))
|
|
}
|
|
|
|
// OrderUpsert ...
|
|
func (Pull) OrderUpsert(payload Payload) (bool, error) {
|
|
return publishWithJetStream(JetStreamSearchService, SubjectPullOrderUpsert, toBytes(payload))
|
|
}
|