grpcproxy

package
v0.0.0-...-34e0b2d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 57 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	milvuspb.UnimplementedMilvusServiceServer
	// contains filtered or unexported fields
}

Server is the Proxy Server

func NewServer

func NewServer(ctx context.Context, factory dependency.Factory) (*Server, error)

NewServer create a Proxy server.

func (*Server) AlterAlias

func (s *Server) AlterAlias(ctx context.Context, request *milvuspb.AlterAliasRequest) (*commonpb.Status, error)

AlterAlias alters the alias for the specified collection.

func (*Server) AlterCollection

func (s *Server) AlterCollection(ctx context.Context, request *milvuspb.AlterCollectionRequest) (*commonpb.Status, error)

func (*Server) AlterDatabase

func (s *Server) AlterDatabase(ctx context.Context, req *milvuspb.AlterDatabaseRequest) (*commonpb.Status, error)

func (*Server) AlterIndex

func (s *Server) AlterIndex(ctx context.Context, request *milvuspb.AlterIndexRequest) (*commonpb.Status, error)

AlterIndex notifies Proxy to alter index

func (*Server) CalcDistance

func (*Server) Check

Check is required by gRPC healthy checking

func (*Server) CheckHealth

func (*Server) Connect

func (*Server) CreateAlias

func (s *Server) CreateAlias(ctx context.Context, request *milvuspb.CreateAliasRequest) (*commonpb.Status, error)

CreateAlias notifies Proxy to create alias

func (*Server) CreateCollection

func (s *Server) CreateCollection(ctx context.Context, request *milvuspb.CreateCollectionRequest) (*commonpb.Status, error)

CreateCollection notifies Proxy to create a collection

func (*Server) CreateCredential

func (s *Server) CreateCredential(ctx context.Context, req *milvuspb.CreateCredentialRequest) (*commonpb.Status, error)

func (*Server) CreateDatabase

func (s *Server) CreateDatabase(ctx context.Context, request *milvuspb.CreateDatabaseRequest) (*commonpb.Status, error)

func (*Server) CreateIndex

func (s *Server) CreateIndex(ctx context.Context, request *milvuspb.CreateIndexRequest) (*commonpb.Status, error)

CreateIndex notifies Proxy to create index

func (*Server) CreatePartition

func (s *Server) CreatePartition(ctx context.Context, request *milvuspb.CreatePartitionRequest) (*commonpb.Status, error)

CreatePartition notifies Proxy to create a partition

func (*Server) CreateResourceGroup

func (s *Server) CreateResourceGroup(ctx context.Context, req *milvuspb.CreateResourceGroupRequest) (*commonpb.Status, error)

func (*Server) CreateRole

func (s *Server) CreateRole(ctx context.Context, req *milvuspb.CreateRoleRequest) (*commonpb.Status, error)

func (*Server) Delete

func (*Server) DeleteCredential

func (s *Server) DeleteCredential(ctx context.Context, req *milvuspb.DeleteCredentialRequest) (*commonpb.Status, error)

func (*Server) DescribeAlias

DescribeAlias show the alias-collection relation for the specified alias.

func (*Server) DescribeCollection

DescribeCollection notifies Proxy to describe a collection

func (*Server) DescribeIndex

DescribeIndex notifies Proxy to get index describe

func (*Server) DropAlias

func (s *Server) DropAlias(ctx context.Context, request *milvuspb.DropAliasRequest) (*commonpb.Status, error)

DropAlias notifies Proxy to drop an alias

func (*Server) DropCollection

func (s *Server) DropCollection(ctx context.Context, request *milvuspb.DropCollectionRequest) (*commonpb.Status, error)

DropCollection notifies Proxy to drop a collection

func (*Server) DropDatabase

func (s *Server) DropDatabase(ctx context.Context, request *milvuspb.DropDatabaseRequest) (*commonpb.Status, error)

func (*Server) DropIndex

func (s *Server) DropIndex(ctx context.Context, request *milvuspb.DropIndexRequest) (*commonpb.Status, error)

DropIndex notifies Proxy to drop index

func (*Server) DropPartition

func (s *Server) DropPartition(ctx context.Context, request *milvuspb.DropPartitionRequest) (*commonpb.Status, error)

DropPartition notifies Proxy to drop a partition

func (*Server) DropResourceGroup

func (s *Server) DropResourceGroup(ctx context.Context, req *milvuspb.DropResourceGroupRequest) (*commonpb.Status, error)

func (*Server) DropRole

func (s *Server) DropRole(ctx context.Context, req *milvuspb.DropRoleRequest) (*commonpb.Status, error)

func (*Server) Dummy

func (s *Server) Dummy(ctx context.Context, request *milvuspb.DummyRequest) (*milvuspb.DummyResponse, error)

func (*Server) Flush

func (s *Server) Flush(ctx context.Context, request *milvuspb.FlushRequest) (*milvuspb.FlushResponse, error)

func (*Server) FlushAll

func (*Server) GetCollectionStatistics

GetCollectionStatistics notifies Proxy to get a collection's Statistics

func (*Server) GetCompactionState

GetCompactionState gets the state of a compaction

func (*Server) GetCompactionStateWithPlans

func (s *Server) GetCompactionStateWithPlans(ctx context.Context, req *milvuspb.GetCompactionPlansRequest) (*milvuspb.GetCompactionPlansResponse, error)

GetCompactionStateWithPlans gets the state of a compaction by plan

func (*Server) GetComponentStates

func (s *Server) GetComponentStates(ctx context.Context, request *milvuspb.GetComponentStatesRequest) (*milvuspb.ComponentStates, error)

GetComponentStates get the component states

func (*Server) GetDdChannel

func (s *Server) GetDdChannel(ctx context.Context, request *internalpb.GetDdChannelRequest) (*milvuspb.StringResponse, error)

func (*Server) GetFlushAllState

GetFlushAllState checks if all DML messages before `FlushAllTs` have been flushed.

func (*Server) GetFlushState

GetFlushState gets the flush state of the collection based on the provided flush ts and segment IDs.

func (*Server) GetIndexBuildProgress

GetIndexBuildProgress gets index build progress with field_name and index_name. IndexRows is the num of indexed rows. And TotalRows is the total number of segment rows. Deprecated: use DescribeIndex instead

func (*Server) GetIndexState

GetIndexState gets the index states from proxy. Deprecated: use DescribeIndex instead

func (*Server) GetIndexStatistics

GetIndexStatistics get the information of index.

func (*Server) GetLoadState

func (*Server) GetMetrics

GetMetrics gets the metrics info of proxy.

func (*Server) GetPartitionStatistics

GetPartitionStatistics notifies Proxy to get the partitions Statistics info.

func (*Server) GetPersistentSegmentInfo

GetPersistentSegmentInfo notifies Proxy to get persistent segment info.

func (*Server) GetProxyMetrics

func (s *Server) GetProxyMetrics(ctx context.Context, request *milvuspb.GetMetricsRequest) (*milvuspb.GetMetricsResponse, error)

GetProxyMetrics gets the metrics of proxy.

func (*Server) GetQuerySegmentInfo

GetQuerySegmentInfo notifies Proxy to get query segment info.

func (*Server) GetReplicas

func (*Server) GetStatisticsChannel

func (s *Server) GetStatisticsChannel(ctx context.Context, request *internalpb.GetStatisticsChannelRequest) (*milvuspb.StringResponse, error)

GetStatisticsChannel get the statistics channel

func (*Server) GetVersion

func (*Server) HasCollection

func (s *Server) HasCollection(ctx context.Context, request *milvuspb.HasCollectionRequest) (*milvuspb.BoolResponse, error)

HasCollection notifies Proxy to check a collection's existence at specified timestamp

func (*Server) HasPartition

func (s *Server) HasPartition(ctx context.Context, request *milvuspb.HasPartitionRequest) (*milvuspb.BoolResponse, error)

HasPartition notifies Proxy to check a partition's existence

func (*Server) HybridSearch

func (s *Server) HybridSearch(ctx context.Context, request *milvuspb.HybridSearchRequest) (*milvuspb.SearchResults, error)

func (*Server) Import

func (*Server) ImportV2

func (*Server) Insert

func (*Server) InvalidateCollectionMetaCache

func (s *Server) InvalidateCollectionMetaCache(ctx context.Context, request *proxypb.InvalidateCollMetaCacheRequest) (*commonpb.Status, error)

InvalidateCollectionMetaCache notifies Proxy to clear all the meta cache of specific collection.

func (*Server) InvalidateCredentialCache

func (s *Server) InvalidateCredentialCache(ctx context.Context, request *proxypb.InvalidateCredCacheRequest) (*commonpb.Status, error)

func (*Server) InvalidateShardLeaderCache

func (s *Server) InvalidateShardLeaderCache(ctx context.Context, req *proxypb.InvalidateShardLeaderCacheRequest) (*commonpb.Status, error)

func (*Server) ListAliases

ListAliases list all the alias for the specified db, collection.

func (*Server) ListCredUsers

func (*Server) ListDatabases

func (*Server) LoadBalance

func (s *Server) LoadBalance(ctx context.Context, request *milvuspb.LoadBalanceRequest) (*commonpb.Status, error)

func (*Server) LoadCollection

func (s *Server) LoadCollection(ctx context.Context, request *milvuspb.LoadCollectionRequest) (*commonpb.Status, error)

LoadCollection notifies Proxy to load a collection's data

func (*Server) LoadPartitions

func (s *Server) LoadPartitions(ctx context.Context, request *milvuspb.LoadPartitionsRequest) (*commonpb.Status, error)

LoadPartitions notifies Proxy to load the partitions data

func (*Server) OperatePrivilege

func (s *Server) OperatePrivilege(ctx context.Context, req *milvuspb.OperatePrivilegeRequest) (*commonpb.Status, error)

func (*Server) OperateUserRole

func (s *Server) OperateUserRole(ctx context.Context, req *milvuspb.OperateUserRoleRequest) (*commonpb.Status, error)

func (*Server) Query

func (s *Server) Query(ctx context.Context, request *milvuspb.QueryRequest) (*milvuspb.QueryResults, error)

func (*Server) RefreshPolicyInfoCache

func (s *Server) RefreshPolicyInfoCache(ctx context.Context, req *proxypb.RefreshPolicyInfoCacheRequest) (*commonpb.Status, error)

func (*Server) ReleaseCollection

func (s *Server) ReleaseCollection(ctx context.Context, request *milvuspb.ReleaseCollectionRequest) (*commonpb.Status, error)

ReleaseCollection notifies Proxy to release a collection's data

func (*Server) ReleasePartitions

func (s *Server) ReleasePartitions(ctx context.Context, request *milvuspb.ReleasePartitionsRequest) (*commonpb.Status, error)

ReleasePartitions notifies Proxy to release the partitions data

func (*Server) RenameCollection

func (s *Server) RenameCollection(ctx context.Context, req *milvuspb.RenameCollectionRequest) (*commonpb.Status, error)

func (*Server) Run

func (s *Server) Run() error

Start start the Proxy Server

func (*Server) Search

func (s *Server) Search(ctx context.Context, request *milvuspb.SearchRequest) (*milvuspb.SearchResults, error)

func (*Server) SelectGrant

func (*Server) SelectRole

func (*Server) SelectUser

func (*Server) SetRates

func (s *Server) SetRates(ctx context.Context, request *proxypb.SetRatesRequest) (*commonpb.Status, error)

SetRates notifies Proxy to limit rates of requests.

func (*Server) ShowCollections

func (*Server) ShowPartitions

ShowPartitions notifies Proxy to show the partitions

func (*Server) Stop

func (s *Server) Stop() (err error)

Stop stop the Proxy Server

func (*Server) TransferNode

func (s *Server) TransferNode(ctx context.Context, req *milvuspb.TransferNodeRequest) (*commonpb.Status, error)

func (*Server) TransferReplica

func (s *Server) TransferReplica(ctx context.Context, req *milvuspb.TransferReplicaRequest) (*commonpb.Status, error)

func (*Server) UpdateCredential

func (s *Server) UpdateCredential(ctx context.Context, req *milvuspb.UpdateCredentialRequest) (*commonpb.Status, error)

func (*Server) UpdateCredentialCache

func (s *Server) UpdateCredentialCache(ctx context.Context, request *proxypb.UpdateCredCacheRequest) (*commonpb.Status, error)

func (*Server) UpdateResourceGroups

func (s *Server) UpdateResourceGroups(ctx context.Context, req *milvuspb.UpdateResourceGroupsRequest) (*commonpb.Status, error)

func (*Server) Upsert

func (*Server) Watch

Watch is required by gRPC healthy checking

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL