2021-01-14 06:24:14 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package milvus.proto.proxy;
|
|
|
|
|
2021-04-22 06:45:57 +00:00
|
|
|
option go_package = "github.com/milvus-io/milvus/internal/proto/proxypb";
|
2021-01-14 06:24:14 +00:00
|
|
|
|
|
|
|
import "common.proto";
|
|
|
|
import "internal.proto";
|
2021-01-26 06:55:57 +00:00
|
|
|
import "milvus.proto";
|
2021-01-14 06:24:14 +00:00
|
|
|
|
2021-06-22 08:14:09 +00:00
|
|
|
service Proxy {
|
2022-10-10 07:55:22 +00:00
|
|
|
rpc GetComponentStates(milvus.GetComponentStatesRequest) returns (milvus.ComponentStates) {}
|
2021-03-12 06:22:09 +00:00
|
|
|
rpc GetStatisticsChannel(internal.GetStatisticsChannelRequest) returns(milvus.StringResponse){}
|
|
|
|
|
|
|
|
rpc InvalidateCollectionMetaCache(InvalidateCollMetaCacheRequest) returns (common.Status) {}
|
|
|
|
rpc GetDdChannel(internal.GetDdChannelRequest) returns (milvus.StringResponse) {}
|
2021-06-17 09:45:56 +00:00
|
|
|
|
2022-04-11 11:49:34 +00:00
|
|
|
rpc InvalidateCredentialCache(InvalidateCredCacheRequest) returns (common.Status) {}
|
|
|
|
rpc UpdateCredentialCache(UpdateCredCacheRequest) returns (common.Status) {}
|
2022-05-27 16:04:01 +00:00
|
|
|
|
|
|
|
rpc RefreshPolicyInfoCache(RefreshPolicyInfoCacheRequest) returns (common.Status) {}
|
2022-09-16 01:56:47 +00:00
|
|
|
rpc GetProxyMetrics(milvus.GetMetricsRequest) returns (milvus.GetMetricsResponse) {}
|
|
|
|
rpc SetRates(SetRatesRequest) returns (common.Status) {}
|
2023-05-19 04:51:23 +00:00
|
|
|
|
|
|
|
rpc ListClientInfos(ListClientInfosRequest) returns (ListClientInfosResponse) {}
|
2021-03-12 06:22:09 +00:00
|
|
|
}
|
2021-01-14 06:24:14 +00:00
|
|
|
|
|
|
|
message InvalidateCollMetaCacheRequest {
|
2022-09-27 11:18:54 +00:00
|
|
|
// MsgType:
|
|
|
|
// DropCollection -> {meta cache, dml channels}
|
|
|
|
// Other -> {meta cache}
|
2021-01-16 07:06:19 +00:00
|
|
|
common.MsgBase base = 1;
|
2021-01-14 06:24:14 +00:00
|
|
|
string db_name = 2;
|
|
|
|
string collection_name = 3;
|
2022-05-19 02:13:56 +00:00
|
|
|
int64 collectionID = 4;
|
2024-01-30 08:45:02 +00:00
|
|
|
string partition_name = 5;
|
2021-01-14 06:24:14 +00:00
|
|
|
}
|
2021-06-17 09:45:56 +00:00
|
|
|
|
2022-04-11 11:49:34 +00:00
|
|
|
message InvalidateCredCacheRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
string username = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UpdateCredCacheRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
string username = 2;
|
2022-06-29 12:02:18 +00:00
|
|
|
// password stored in cache
|
2022-04-11 11:49:34 +00:00
|
|
|
string password = 3;
|
|
|
|
}
|
2022-05-27 16:04:01 +00:00
|
|
|
|
|
|
|
message RefreshPolicyInfoCacheRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
int32 opType = 2;
|
|
|
|
string opKey = 3;
|
2022-09-16 01:56:47 +00:00
|
|
|
}
|
|
|
|
|
2023-04-25 07:54:35 +00:00
|
|
|
message CollectionRate {
|
|
|
|
int64 collection = 1;
|
2022-09-16 01:56:47 +00:00
|
|
|
repeated internal.Rate rates = 2;
|
2022-12-30 10:35:32 +00:00
|
|
|
repeated milvus.QuotaState states = 3;
|
2023-01-06 06:31:37 +00:00
|
|
|
repeated common.ErrorCode codes = 4;
|
2022-09-16 01:56:47 +00:00
|
|
|
}
|
2023-04-25 07:54:35 +00:00
|
|
|
|
|
|
|
message SetRatesRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
repeated CollectionRate rates = 2;
|
|
|
|
}
|
2023-05-19 04:51:23 +00:00
|
|
|
|
|
|
|
message ListClientInfosRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ListClientInfosResponse {
|
|
|
|
common.Status status = 1;
|
|
|
|
repeated common.ClientInfo client_infos = 2;
|
|
|
|
}
|