grpc

package
v1.0.0-alpha02 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 17 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")
)

Functions

This section is empty.

Types

type Handler

type Handler interface {
	GetClusterManager() cluster.Manager
	GetLeader(ctx context.Context) (*member.GetLeaderResp, error)
	GetProcedureFactory() *procedure.Factory
	GetProcedureManager() procedure.Manager
}

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