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: 0

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