milvus/reader/result.go
bigsheeper bb9c906ef6 Use go mod instead of GO_PATH and add more cgo interfeces
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
2020-09-01 16:23:39 +08:00

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