milvus/internal/util/mqclient/producer.go

23 lines
356 B
Go
Raw Normal View History

package mqclient
import "context"
type ProducerOptions struct {
Topic string
}
type ProducerMessage struct {
Payload []byte
Properties map[string]string
}
type Producer interface {
// return the topic which producer is publishing to
//Topic() string
// publish a message
Send(ctx context.Context, message *ProducerMessage) error
Close()
}