Xiangyu Wang 8b62790017 Reorganize mqclient
Signed-off-by: Xiangyu Wang <xiangyu.wang@zilliz.com>
2021-04-02 10:01:11 +08:00

23 lines
356 B
Go

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()
}