mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 04:49:08 +08:00
73463d030d
Signed-off-by: longjiquan <jiquan.long@zilliz.com> Signed-off-by: longjiquan <jiquan.long@zilliz.com>
718 lines
30 KiB
Go
718 lines
30 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: proxy.proto
|
|
|
|
package proxypb
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
commonpb "github.com/milvus-io/milvus/api/commonpb"
|
|
milvuspb "github.com/milvus-io/milvus/api/milvuspb"
|
|
internalpb "github.com/milvus-io/milvus/internal/proto/internalpb"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type InvalidateCollMetaCacheRequest struct {
|
|
// MsgType:
|
|
// DropCollection -> {meta cache, dml channels}
|
|
// Other -> {meta cache}
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"`
|
|
CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"`
|
|
CollectionID int64 `protobuf:"varint,4,opt,name=collectionID,proto3" json:"collectionID,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *InvalidateCollMetaCacheRequest) Reset() { *m = InvalidateCollMetaCacheRequest{} }
|
|
func (m *InvalidateCollMetaCacheRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*InvalidateCollMetaCacheRequest) ProtoMessage() {}
|
|
func (*InvalidateCollMetaCacheRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_700b50b08ed8dbaf, []int{0}
|
|
}
|
|
|
|
func (m *InvalidateCollMetaCacheRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_InvalidateCollMetaCacheRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *InvalidateCollMetaCacheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_InvalidateCollMetaCacheRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *InvalidateCollMetaCacheRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_InvalidateCollMetaCacheRequest.Merge(m, src)
|
|
}
|
|
func (m *InvalidateCollMetaCacheRequest) XXX_Size() int {
|
|
return xxx_messageInfo_InvalidateCollMetaCacheRequest.Size(m)
|
|
}
|
|
func (m *InvalidateCollMetaCacheRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_InvalidateCollMetaCacheRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_InvalidateCollMetaCacheRequest proto.InternalMessageInfo
|
|
|
|
func (m *InvalidateCollMetaCacheRequest) GetBase() *commonpb.MsgBase {
|
|
if m != nil {
|
|
return m.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *InvalidateCollMetaCacheRequest) GetDbName() string {
|
|
if m != nil {
|
|
return m.DbName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *InvalidateCollMetaCacheRequest) GetCollectionName() string {
|
|
if m != nil {
|
|
return m.CollectionName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *InvalidateCollMetaCacheRequest) GetCollectionID() int64 {
|
|
if m != nil {
|
|
return m.CollectionID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type InvalidateCredCacheRequest struct {
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *InvalidateCredCacheRequest) Reset() { *m = InvalidateCredCacheRequest{} }
|
|
func (m *InvalidateCredCacheRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*InvalidateCredCacheRequest) ProtoMessage() {}
|
|
func (*InvalidateCredCacheRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_700b50b08ed8dbaf, []int{1}
|
|
}
|
|
|
|
func (m *InvalidateCredCacheRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_InvalidateCredCacheRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *InvalidateCredCacheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_InvalidateCredCacheRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *InvalidateCredCacheRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_InvalidateCredCacheRequest.Merge(m, src)
|
|
}
|
|
func (m *InvalidateCredCacheRequest) XXX_Size() int {
|
|
return xxx_messageInfo_InvalidateCredCacheRequest.Size(m)
|
|
}
|
|
func (m *InvalidateCredCacheRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_InvalidateCredCacheRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_InvalidateCredCacheRequest proto.InternalMessageInfo
|
|
|
|
func (m *InvalidateCredCacheRequest) GetBase() *commonpb.MsgBase {
|
|
if m != nil {
|
|
return m.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *InvalidateCredCacheRequest) GetUsername() string {
|
|
if m != nil {
|
|
return m.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UpdateCredCacheRequest struct {
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
|
// password stored in cache
|
|
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *UpdateCredCacheRequest) Reset() { *m = UpdateCredCacheRequest{} }
|
|
func (m *UpdateCredCacheRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*UpdateCredCacheRequest) ProtoMessage() {}
|
|
func (*UpdateCredCacheRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_700b50b08ed8dbaf, []int{2}
|
|
}
|
|
|
|
func (m *UpdateCredCacheRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_UpdateCredCacheRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *UpdateCredCacheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_UpdateCredCacheRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *UpdateCredCacheRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_UpdateCredCacheRequest.Merge(m, src)
|
|
}
|
|
func (m *UpdateCredCacheRequest) XXX_Size() int {
|
|
return xxx_messageInfo_UpdateCredCacheRequest.Size(m)
|
|
}
|
|
func (m *UpdateCredCacheRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_UpdateCredCacheRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_UpdateCredCacheRequest proto.InternalMessageInfo
|
|
|
|
func (m *UpdateCredCacheRequest) GetBase() *commonpb.MsgBase {
|
|
if m != nil {
|
|
return m.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *UpdateCredCacheRequest) GetUsername() string {
|
|
if m != nil {
|
|
return m.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *UpdateCredCacheRequest) GetPassword() string {
|
|
if m != nil {
|
|
return m.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RefreshPolicyInfoCacheRequest struct {
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
OpType int32 `protobuf:"varint,2,opt,name=opType,proto3" json:"opType,omitempty"`
|
|
OpKey string `protobuf:"bytes,3,opt,name=opKey,proto3" json:"opKey,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RefreshPolicyInfoCacheRequest) Reset() { *m = RefreshPolicyInfoCacheRequest{} }
|
|
func (m *RefreshPolicyInfoCacheRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*RefreshPolicyInfoCacheRequest) ProtoMessage() {}
|
|
func (*RefreshPolicyInfoCacheRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_700b50b08ed8dbaf, []int{3}
|
|
}
|
|
|
|
func (m *RefreshPolicyInfoCacheRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RefreshPolicyInfoCacheRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *RefreshPolicyInfoCacheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RefreshPolicyInfoCacheRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RefreshPolicyInfoCacheRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RefreshPolicyInfoCacheRequest.Merge(m, src)
|
|
}
|
|
func (m *RefreshPolicyInfoCacheRequest) XXX_Size() int {
|
|
return xxx_messageInfo_RefreshPolicyInfoCacheRequest.Size(m)
|
|
}
|
|
func (m *RefreshPolicyInfoCacheRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RefreshPolicyInfoCacheRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RefreshPolicyInfoCacheRequest proto.InternalMessageInfo
|
|
|
|
func (m *RefreshPolicyInfoCacheRequest) GetBase() *commonpb.MsgBase {
|
|
if m != nil {
|
|
return m.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RefreshPolicyInfoCacheRequest) GetOpType() int32 {
|
|
if m != nil {
|
|
return m.OpType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *RefreshPolicyInfoCacheRequest) GetOpKey() string {
|
|
if m != nil {
|
|
return m.OpKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SetRatesRequest struct {
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
Rates []*internalpb.Rate `protobuf:"bytes,2,rep,name=rates,proto3" json:"rates,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SetRatesRequest) Reset() { *m = SetRatesRequest{} }
|
|
func (m *SetRatesRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*SetRatesRequest) ProtoMessage() {}
|
|
func (*SetRatesRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_700b50b08ed8dbaf, []int{4}
|
|
}
|
|
|
|
func (m *SetRatesRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SetRatesRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *SetRatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SetRatesRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *SetRatesRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SetRatesRequest.Merge(m, src)
|
|
}
|
|
func (m *SetRatesRequest) XXX_Size() int {
|
|
return xxx_messageInfo_SetRatesRequest.Size(m)
|
|
}
|
|
func (m *SetRatesRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SetRatesRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SetRatesRequest proto.InternalMessageInfo
|
|
|
|
func (m *SetRatesRequest) GetBase() *commonpb.MsgBase {
|
|
if m != nil {
|
|
return m.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *SetRatesRequest) GetRates() []*internalpb.Rate {
|
|
if m != nil {
|
|
return m.Rates
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*InvalidateCollMetaCacheRequest)(nil), "milvus.proto.proxy.InvalidateCollMetaCacheRequest")
|
|
proto.RegisterType((*InvalidateCredCacheRequest)(nil), "milvus.proto.proxy.InvalidateCredCacheRequest")
|
|
proto.RegisterType((*UpdateCredCacheRequest)(nil), "milvus.proto.proxy.UpdateCredCacheRequest")
|
|
proto.RegisterType((*RefreshPolicyInfoCacheRequest)(nil), "milvus.proto.proxy.RefreshPolicyInfoCacheRequest")
|
|
proto.RegisterType((*SetRatesRequest)(nil), "milvus.proto.proxy.SetRatesRequest")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("proxy.proto", fileDescriptor_700b50b08ed8dbaf) }
|
|
|
|
var fileDescriptor_700b50b08ed8dbaf = []byte{
|
|
// 575 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xdd, 0x6e, 0xda, 0x30,
|
|
0x18, 0x6d, 0xda, 0xd2, 0x76, 0x1f, 0xa8, 0x48, 0x56, 0xc7, 0x58, 0xba, 0x4e, 0x28, 0x95, 0x5a,
|
|
0x54, 0x69, 0xd0, 0xb2, 0x3d, 0x41, 0xa9, 0x84,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d, 0xe8, 0x06, 0x00, 0x00,
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// ProxyClient is the client API for Proxy service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type ProxyClient interface {
|
|
GetComponentStates(ctx context.Context, in *internalpb.GetComponentStatesRequest, opts ...grpc.CallOption) (*internalpb.ComponentStates, error)
|
|
GetStatisticsChannel(ctx context.Context, in *internalpb.GetStatisticsChannelRequest, opts ...grpc.CallOption) (*milvuspb.StringResponse, error)
|
|
InvalidateCollectionMetaCache(ctx context.Context, in *InvalidateCollMetaCacheRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
|
GetDdChannel(ctx context.Context, in *internalpb.GetDdChannelRequest, opts ...grpc.CallOption) (*milvuspb.StringResponse, error)
|
|
InvalidateCredentialCache(ctx context.Context, in *InvalidateCredCacheRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
|
UpdateCredentialCache(ctx context.Context, in *UpdateCredCacheRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
|
RefreshPolicyInfoCache(ctx context.Context, in *RefreshPolicyInfoCacheRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
|
GetProxyMetrics(ctx context.Context, in *milvuspb.GetMetricsRequest, opts ...grpc.CallOption) (*milvuspb.GetMetricsResponse, error)
|
|
SetRates(ctx context.Context, in *SetRatesRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
|
}
|
|
|
|
type proxyClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewProxyClient(cc *grpc.ClientConn) ProxyClient {
|
|
return &proxyClient{cc}
|
|
}
|
|
|
|
func (c *proxyClient) GetComponentStates(ctx context.Context, in *internalpb.GetComponentStatesRequest, opts ...grpc.CallOption) (*internalpb.ComponentStates, error) {
|
|
out := new(internalpb.ComponentStates)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.proxy.Proxy/GetComponentStates", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *proxyClient) GetStatisticsChannel(ctx context.Context, in *internalpb.GetStatisticsChannelRequest, opts ...grpc.CallOption) (*milvuspb.StringResponse, error) {
|
|
out := new(milvuspb.StringResponse)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.proxy.Proxy/GetStatisticsChannel", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *proxyClient) InvalidateCollectionMetaCache(ctx context.Context, in *InvalidateCollMetaCacheRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
out := new(commonpb.Status)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.proxy.Proxy/InvalidateCollectionMetaCache", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *proxyClient) GetDdChannel(ctx context.Context, in *internalpb.GetDdChannelRequest, opts ...grpc.CallOption) (*milvuspb.StringResponse, error) {
|
|
out := new(milvuspb.StringResponse)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.proxy.Proxy/GetDdChannel", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *proxyClient) InvalidateCredentialCache(ctx context.Context, in *InvalidateCredCacheRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
out := new(commonpb.Status)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.proxy.Proxy/InvalidateCredentialCache", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *proxyClient) UpdateCredentialCache(ctx context.Context, in *UpdateCredCacheRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
out := new(commonpb.Status)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.proxy.Proxy/UpdateCredentialCache", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *proxyClient) RefreshPolicyInfoCache(ctx context.Context, in *RefreshPolicyInfoCacheRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
out := new(commonpb.Status)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.proxy.Proxy/RefreshPolicyInfoCache", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *proxyClient) GetProxyMetrics(ctx context.Context, in *milvuspb.GetMetricsRequest, opts ...grpc.CallOption) (*milvuspb.GetMetricsResponse, error) {
|
|
out := new(milvuspb.GetMetricsResponse)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.proxy.Proxy/GetProxyMetrics", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *proxyClient) SetRates(ctx context.Context, in *SetRatesRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
out := new(commonpb.Status)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.proxy.Proxy/SetRates", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// ProxyServer is the server API for Proxy service.
|
|
type ProxyServer interface {
|
|
GetComponentStates(context.Context, *internalpb.GetComponentStatesRequest) (*internalpb.ComponentStates, error)
|
|
GetStatisticsChannel(context.Context, *internalpb.GetStatisticsChannelRequest) (*milvuspb.StringResponse, error)
|
|
InvalidateCollectionMetaCache(context.Context, *InvalidateCollMetaCacheRequest) (*commonpb.Status, error)
|
|
GetDdChannel(context.Context, *internalpb.GetDdChannelRequest) (*milvuspb.StringResponse, error)
|
|
InvalidateCredentialCache(context.Context, *InvalidateCredCacheRequest) (*commonpb.Status, error)
|
|
UpdateCredentialCache(context.Context, *UpdateCredCacheRequest) (*commonpb.Status, error)
|
|
RefreshPolicyInfoCache(context.Context, *RefreshPolicyInfoCacheRequest) (*commonpb.Status, error)
|
|
GetProxyMetrics(context.Context, *milvuspb.GetMetricsRequest) (*milvuspb.GetMetricsResponse, error)
|
|
SetRates(context.Context, *SetRatesRequest) (*commonpb.Status, error)
|
|
}
|
|
|
|
// UnimplementedProxyServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedProxyServer struct {
|
|
}
|
|
|
|
func (*UnimplementedProxyServer) GetComponentStates(ctx context.Context, req *internalpb.GetComponentStatesRequest) (*internalpb.ComponentStates, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetComponentStates not implemented")
|
|
}
|
|
func (*UnimplementedProxyServer) GetStatisticsChannel(ctx context.Context, req *internalpb.GetStatisticsChannelRequest) (*milvuspb.StringResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetStatisticsChannel not implemented")
|
|
}
|
|
func (*UnimplementedProxyServer) InvalidateCollectionMetaCache(ctx context.Context, req *InvalidateCollMetaCacheRequest) (*commonpb.Status, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method InvalidateCollectionMetaCache not implemented")
|
|
}
|
|
func (*UnimplementedProxyServer) GetDdChannel(ctx context.Context, req *internalpb.GetDdChannelRequest) (*milvuspb.StringResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetDdChannel not implemented")
|
|
}
|
|
func (*UnimplementedProxyServer) InvalidateCredentialCache(ctx context.Context, req *InvalidateCredCacheRequest) (*commonpb.Status, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method InvalidateCredentialCache not implemented")
|
|
}
|
|
func (*UnimplementedProxyServer) UpdateCredentialCache(ctx context.Context, req *UpdateCredCacheRequest) (*commonpb.Status, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateCredentialCache not implemented")
|
|
}
|
|
func (*UnimplementedProxyServer) RefreshPolicyInfoCache(ctx context.Context, req *RefreshPolicyInfoCacheRequest) (*commonpb.Status, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method RefreshPolicyInfoCache not implemented")
|
|
}
|
|
func (*UnimplementedProxyServer) GetProxyMetrics(ctx context.Context, req *milvuspb.GetMetricsRequest) (*milvuspb.GetMetricsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetProxyMetrics not implemented")
|
|
}
|
|
func (*UnimplementedProxyServer) SetRates(ctx context.Context, req *SetRatesRequest) (*commonpb.Status, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method SetRates not implemented")
|
|
}
|
|
|
|
func RegisterProxyServer(s *grpc.Server, srv ProxyServer) {
|
|
s.RegisterService(&_Proxy_serviceDesc, srv)
|
|
}
|
|
|
|
func _Proxy_GetComponentStates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(internalpb.GetComponentStatesRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProxyServer).GetComponentStates(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.proxy.Proxy/GetComponentStates",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProxyServer).GetComponentStates(ctx, req.(*internalpb.GetComponentStatesRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Proxy_GetStatisticsChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(internalpb.GetStatisticsChannelRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProxyServer).GetStatisticsChannel(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.proxy.Proxy/GetStatisticsChannel",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProxyServer).GetStatisticsChannel(ctx, req.(*internalpb.GetStatisticsChannelRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Proxy_InvalidateCollectionMetaCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InvalidateCollMetaCacheRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProxyServer).InvalidateCollectionMetaCache(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.proxy.Proxy/InvalidateCollectionMetaCache",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProxyServer).InvalidateCollectionMetaCache(ctx, req.(*InvalidateCollMetaCacheRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Proxy_GetDdChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(internalpb.GetDdChannelRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProxyServer).GetDdChannel(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.proxy.Proxy/GetDdChannel",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProxyServer).GetDdChannel(ctx, req.(*internalpb.GetDdChannelRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Proxy_InvalidateCredentialCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InvalidateCredCacheRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProxyServer).InvalidateCredentialCache(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.proxy.Proxy/InvalidateCredentialCache",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProxyServer).InvalidateCredentialCache(ctx, req.(*InvalidateCredCacheRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Proxy_UpdateCredentialCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UpdateCredCacheRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProxyServer).UpdateCredentialCache(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.proxy.Proxy/UpdateCredentialCache",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProxyServer).UpdateCredentialCache(ctx, req.(*UpdateCredCacheRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Proxy_RefreshPolicyInfoCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RefreshPolicyInfoCacheRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProxyServer).RefreshPolicyInfoCache(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.proxy.Proxy/RefreshPolicyInfoCache",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProxyServer).RefreshPolicyInfoCache(ctx, req.(*RefreshPolicyInfoCacheRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Proxy_GetProxyMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(milvuspb.GetMetricsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProxyServer).GetProxyMetrics(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.proxy.Proxy/GetProxyMetrics",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProxyServer).GetProxyMetrics(ctx, req.(*milvuspb.GetMetricsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Proxy_SetRates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(SetRatesRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProxyServer).SetRates(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.proxy.Proxy/SetRates",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProxyServer).SetRates(ctx, req.(*SetRatesRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Proxy_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "milvus.proto.proxy.Proxy",
|
|
HandlerType: (*ProxyServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "GetComponentStates",
|
|
Handler: _Proxy_GetComponentStates_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetStatisticsChannel",
|
|
Handler: _Proxy_GetStatisticsChannel_Handler,
|
|
},
|
|
{
|
|
MethodName: "InvalidateCollectionMetaCache",
|
|
Handler: _Proxy_InvalidateCollectionMetaCache_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetDdChannel",
|
|
Handler: _Proxy_GetDdChannel_Handler,
|
|
},
|
|
{
|
|
MethodName: "InvalidateCredentialCache",
|
|
Handler: _Proxy_InvalidateCredentialCache_Handler,
|
|
},
|
|
{
|
|
MethodName: "UpdateCredentialCache",
|
|
Handler: _Proxy_UpdateCredentialCache_Handler,
|
|
},
|
|
{
|
|
MethodName: "RefreshPolicyInfoCache",
|
|
Handler: _Proxy_RefreshPolicyInfoCache_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetProxyMetrics",
|
|
Handler: _Proxy_GetProxyMetrics_Handler,
|
|
},
|
|
{
|
|
MethodName: "SetRates",
|
|
Handler: _Proxy_SetRates_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "proxy.proto",
|
|
}
|