grpcindexnode

package
v0.10.3-0...-92e6ee6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 27 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 *workerpb.CreateJobRequest) (*commonpb.Status, error)

CreateJob sends the create index request to IndexNode.

func (*Server) CreateJobV2

func (s *Server) CreateJobV2(ctx context.Context, request *workerpb.CreateJobV2Request) (*commonpb.Status, error)

func (*Server) DropJobs

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

DropJobs drops index build jobs

func (*Server) DropJobsV2

func (s *Server) DropJobsV2(ctx context.Context, request *workerpb.DropJobsV2Request) (*commonpb.Status, error)

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) Prepare

func (s *Server) Prepare() error

func (*Server) QueryJobs

QueryJobs querys index jobs statues

func (*Server) QueryJobsV2

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