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