grpcindexnode

package
v0.10.3-0...-f06509b Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 29 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 {
	// contains filtered or unexported fields
}

Server is the grpc wrapper of IndexNode.

func NewServer

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

NewServer create a new IndexNode grpc server.

func (*Server) CreateJob

func (s *Server) CreateJob(ctx context.Context, req *indexpb.CreateJobRequest) (*commonpb.Status, error)

CreateJob sends the create index request to IndexNode.

func (*Server) DropJobs

func (s *Server) DropJobs(ctx context.Context, req *indexpb.DropJobsRequest) (*commonpb.Status, error)

DropJobs drops index build jobs

func (*Server) GetComponentStates

GetComponentStates gets the component states of IndexNode.

func (*Server) GetJobStats

GetJobNum gets indexnode's job statisctics

func (*Server) GetMetrics

GetMetrics gets the metrics info of IndexNode.

func (*Server) GetStatisticsChannel

GetStatisticsChannel gets the statistics channel of IndexNode.

func (*Server) QueryJobs

QueryJobs querys index jobs statues

func (*Server) Run

func (s *Server) Run() error

Run initializes and starts IndexNode's grpc service.

func (*Server) SetEtcdClient

func (s *Server) SetEtcdClient(etcdCli *clientv3.Client)

SetEtcdClient sets the etcd client for QueryNode component.

func (*Server) ShowConfigurations

ShowConfigurations gets specified configurations para of IndexNode

func (*Server) Stop

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

Stop stops IndexNode's grpc service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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