mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-04 09:52:30 +08:00
19 lines
428 B
Go
19 lines
428 B
Go
package client
|
|
|
|
type Client interface {
|
|
// Create a producer instance
|
|
CreateProducer(options ProducerOptions) (Producer, error)
|
|
|
|
// Create a consumer instance and subscribe a topic
|
|
Subscribe(options ConsumerOptions) (Consumer, error)
|
|
|
|
// Get the earliest MessageID
|
|
EarliestMessageID() MessageID
|
|
|
|
// String to msg ID
|
|
StringToMsgID(string) (MessageID, error)
|
|
|
|
// Close the client and free associated resources
|
|
Close()
|
|
}
|