elasticsearch/pull.go

21 lines
581 B
Go
Raw Normal View History

2022-03-19 04:59:43 +00:00
package elasticsearch
// Pull ...
type Pull struct {
}
// ProductUpsert ...
2022-03-21 02:19:46 +00:00
func (Pull) ProductUpsert(payload Payload) (bool, error) {
return publishWithJetStream(JetStreamSearchService, SubjectPullProductUpsert, toBytes(payload))
2022-03-19 04:59:43 +00:00
}
// UserUpsert ...
2022-03-21 02:19:46 +00:00
func (Pull) UserUpsert(payload Payload) (bool, error) {
return publishWithJetStream(JetStreamSearchService, SubjectPullUserUpsert, toBytes(payload))
2022-03-19 04:59:43 +00:00
}
// OrderUpsert ...
2022-03-21 02:19:46 +00:00
func (Pull) OrderUpsert(payload Payload) (bool, error) {
return publishWithJetStream(JetStreamSearchService, SubjectPullOrderUpsert, toBytes(payload))
2022-03-19 04:59:43 +00:00
}