yukun 432b53149b Refactor msgstream
Signed-off-by: yukun <kun.yu@zilliz.com>
2021-03-26 20:10:11 +08:00

23 lines
354 B
Go

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