mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-05 05:18:52 +08:00
8b62790017
Signed-off-by: Xiangyu Wang <xiangyu.wang@zilliz.com>
18 lines
570 B
Go
18 lines
570 B
Go
package mqclient
|
|
|
|
type ConsumerMessage interface {
|
|
// Topic get the topic from which this message originated from
|
|
Topic() string
|
|
|
|
// Properties are application defined key/value pairs that will be attached to the message.
|
|
// Return the properties attached to the message.
|
|
Properties() map[string]string
|
|
|
|
// Payload get the payload of the message
|
|
Payload() []byte
|
|
|
|
// ID get the unique message ID associated with this message.
|
|
// The message id can be used to univocally refer to a message without having the keep the entire payload in memory.
|
|
ID() MessageID
|
|
}
|