mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 22:45:26 +08:00
29 lines
716 B
Go
29 lines
716 B
Go
package reader
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/czs007/suvlim/pulsar/schema"
|
|
)
|
|
|
|
type ResultEntityIds []int64
|
|
|
|
func getResultTopicByClientId(clientId int64) string {
|
|
// TODO: Result topic?
|
|
return "result-topic/partition-" + string(clientId)
|
|
}
|
|
|
|
func publishResult(ids *ResultEntityIds, clientId int64) schema.Status {
|
|
// TODO: Pulsar publish
|
|
var resultTopic = getResultTopicByClientId(clientId)
|
|
fmt.Println(resultTopic)
|
|
return schema.Status{Error_code: schema.ErrorCode_SUCCESS}
|
|
}
|
|
|
|
func publicStatistic(statisticTopic string) schema.Status {
|
|
// TODO: get statistic info
|
|
// getStatisticInfo()
|
|
// var info = getStatisticInfo()
|
|
// TODO: Pulsar publish
|
|
return schema.Status{Error_code: schema.ErrorCode_SUCCESS}
|
|
}
|