grpc

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRecvHeartbeat         = coderr.NewCodeError(coderr.Internal, "receive heartbeat")
	ErrBindHeartbeatStream   = coderr.NewCodeError(coderr.Internal, "bind heartbeat sender")
	ErrUnbindHeartbeatStream = coderr.NewCodeError(coderr.Internal, "unbind heartbeat sender")
	ErrForward               = coderr.NewCodeError(coderr.Internal, "grpc forward")
	ErrFlowLimit             = coderr.NewCodeError(coderr.TooManyRequests, "flow limit")
)

Functions

This section is empty.

Types

type Handler

type Handler interface {
	GetClusterManager() cluster.Manager
	GetLeader(ctx context.Context) (member.GetLeaderAddrResp, error)
	GetFlowLimiter() (*limiter.FlowLimiter, error)
}

Handler is needed by grpc service to process the requests.

type Service

type Service struct {
	metaservicepb.UnimplementedCeresmetaRpcServiceServer
	// contains filtered or unexported fields
}

func NewService

func NewService(opTimeout time.Duration, h Handler) *Service

func (*Service) AllocSchemaID

AllocSchemaID implements gRPC CeresmetaServer.

func (*Service) CreateTable

CreateTable implements gRPC CeresmetaServer.

func (*Service) DropTable

DropTable implements gRPC CeresmetaServer.

func (*Service) GetNodes

GetNodes implements gRPC CeresmetaServer.

func (*Service) GetTablesOfShards

GetTablesOfShards implements gRPC CeresmetaServer.

func (*Service) NodeHeartbeat

NodeHeartbeat implements gRPC CeresmetaServer.

func (*Service) RouteTables

RouteTables implements gRPC CeresmetaServer.

Jump to

Keyboard shortcuts

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