Update proto for coord's design in docs (#8294)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
pull/8064/head
xige-16 2021-09-22 16:11:59 +08:00 committed by GitHub
parent 6345d05bf4
commit dd963189ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 40 additions and 34 deletions

View File

@ -41,36 +41,19 @@ type MsgBase struct {
} }
``` ```
* *RegisterNode*
```go
type Address struct {
Ip string
port int64
}
type RegisterNodeRequest struct {
Base *commonpb.MsgBase
Address *commonpb.Address
}
type RegisterNodeResponse struct {
Status *commonpb.Status
InitParams *internalpb.InitParams
}
```
* *ShowCollections* * *ShowCollections*
```go ```go
type ShowCollectionRequest struct { type ShowCollectionRequest struct {
Base *commonpb.MsgBase Base *commonpb.MsgBase
DbID UniqueID DbID UniqueID
CollectionIDs []int64
} }
type ShowCollectionResponse struct { type ShowCollectionResponse struct {
Status *commonpb.Status Status *commonpb.Status
CollectionIDs []UniqueID CollectionIDs []UniqueID
InMemoryPercentages []int64
} }
``` ```
@ -102,11 +85,13 @@ type ShowPartitionRequest struct {
Base *commonpb.MsgBase Base *commonpb.MsgBase
DbID UniqueID DbID UniqueID
CollectionID UniqueID CollectionID UniqueID
PartitionIDs []int64
} }
type ShowPartitionResponse struct { type ShowPartitionResponse struct {
Status *commonpb.Status Status *commonpb.Status
PartitionIDs []UniqueID PartitionIDs []UniqueID
InMemoryPercentages []int64
} }
``` ```
@ -206,15 +191,18 @@ type GetSegmentInfoResponse struct {
```go ```go
type SearchRequest struct { type SearchRequest struct {
Base *commonpb.MsgBase Base *commonpb.MsgBase
ResultChannelID string ResultChannelID string
DbID int64 DbID int64
CollectionID int64 CollectionID int64
PartitionIDs []int64 PartitionIDs []int64
Dsl string Dsl string
// serialized `PlaceholderGroup` PlaceholderGroup []byte
PlaceholderGroup []byte DslType commonpb.DslType
Query *commonpb.Blob SerializedExprPlan []byte
OutputFieldsId []int64
TravelTimestamp uint64
GuaranteeTimestamp uint64
} }
type SearchMsg struct { type SearchMsg struct {
@ -223,7 +211,25 @@ type SearchMsg struct {
} }
``` ```
* *RetriveMsg*
```go
type RetriveRequest struct {
Base *commonpb.MsgBase
ResultChannelID string
DbID int64
CollectionID int64
PartitionIDs []int64
SerializedExprPlan []byte
OutputFieldsId []int64
TravelTimestamp uint64
GuaranteeTimestamp uint64
}
type RetriveMsg struct {
BaseMsg
RetrieveRequest
}
```
#### 8.2 Query Node Interface #### 8.2 Query Node Interface