26 lines
761 B
Go
26 lines
761 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))
|
|
}
|
|
|
|
// KeywordUpsert ...
|
|
func (Pull) KeywordUpsert(payload Payload) (bool, error) {
|
|
return publishWithJetStream(JetStreamSearchService, SubjectPullKeywordUpsert, toBytes(payload))
|
|
}
|