mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 18:18:30 +08:00
33 lines
669 B
Go
33 lines
669 B
Go
package writerclient
|
|
|
|
import "github.com/zilliztech/milvus-distributed/internal/util/typeutil"
|
|
|
|
type UniqueID = typeutil.UniqueID
|
|
|
|
type Timestamp = typeutil.Timestamp
|
|
|
|
type Client struct {
|
|
}
|
|
|
|
type SegmentDescription struct {
|
|
SegmentID UniqueID
|
|
IsClosed bool
|
|
OpenTime Timestamp
|
|
CloseTime Timestamp
|
|
}
|
|
|
|
func (c *Client) FlushSegment(semgentID UniqueID) error {
|
|
// push msg to pulsar channel
|
|
return nil
|
|
}
|
|
|
|
func (c *Client) DescribeSegment(semgentID UniqueID) (*SegmentDescription, error) {
|
|
// query etcd
|
|
return &SegmentDescription{}, nil
|
|
}
|
|
|
|
func (c *Client) GetInsertBinlogPaths(semgentID UniqueID) (map[int32][]string, error) {
|
|
// query etcd
|
|
return nil, nil
|
|
}
|