grpc

package
v0.0.0-...-963c118 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: PostgreSQL Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientToProto

func ClientToProto(cl client.ClientInfo) *protos.ClientInfo

TODO : unit tests

func PoolToProto

func PoolToProto(p pool.Pool, router string) *protos.PoolInfo

TODO : unit tests

func Register

func Register(server reflection.GRPCServer, qrouter qrouter.QueryRouter, mgr meta.EntityMgr, rr rulerouter.RuleRouter)

func ShardToProto

func ShardToProto(sh shard.Shardinfo) *protos.BackendConnectionsInfo

TODO : unit tests

Types

type LocalQrouterServer

func (*LocalQrouterServer) AddDataShard

func (l *LocalQrouterServer) AddDataShard(ctx context.Context, request *protos.AddShardRequest) (*emptypb.Empty, error)

func (*LocalQrouterServer) AddShardingRules

func (l *LocalQrouterServer) AddShardingRules(ctx context.Context, request *protos.AddShardingRuleRequest) (*emptypb.Empty, error)

TODO : unit tests

func (*LocalQrouterServer) AddWorldShard

func (l *LocalQrouterServer) AddWorldShard(ctx context.Context, request *protos.AddWorldShardRequest) (*emptypb.Empty, error)

func (*LocalQrouterServer) AlterDistributionAttach

func (l *LocalQrouterServer) AlterDistributionAttach(ctx context.Context, request *protos.AlterDistributionAttachRequest) (*emptypb.Empty, error)

AlterDistributionAttach attaches relation to distribution TODO: unit tests

func (*LocalQrouterServer) AlterDistributionDetach

func (l *LocalQrouterServer) AlterDistributionDetach(ctx context.Context, request *protos.AlterDistributionDetachRequest) (*emptypb.Empty, error)

AlterDistributionDetach detaches relation from distribution TODO: unit tests

func (*LocalQrouterServer) CloseRouter

func (l *LocalQrouterServer) CloseRouter(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

TODO : implement, unit tests

func (*LocalQrouterServer) CreateDistribution

func (l *LocalQrouterServer) CreateDistribution(ctx context.Context, request *protos.CreateDistributionRequest) (*emptypb.Empty, error)

CreateDistribution creates distribution in QDB TODO: unit tests

func (*LocalQrouterServer) CreateKeyRange

TODO : unit tests

func (*LocalQrouterServer) DropAllKeyRanges

TODO : unit tests

func (*LocalQrouterServer) DropDistribution

func (l *LocalQrouterServer) DropDistribution(ctx context.Context, request *protos.DropDistributionRequest) (*emptypb.Empty, error)

DropDistribution deletes distribution from QDB TODO: unit tests

func (*LocalQrouterServer) DropKeyRange

TODO : unit tests

func (*LocalQrouterServer) DropShardingRules

func (l *LocalQrouterServer) DropShardingRules(ctx context.Context, request *protos.DropShardingRuleRequest) (*emptypb.Empty, error)

TODO : unit tests

func (*LocalQrouterServer) GetBalancerTask

TODO: unit tests

func (*LocalQrouterServer) GetCoordinator

func (*LocalQrouterServer) GetDistribution

GetDistribution retrieves info about distribution from QDB TODO: unit tests

func (*LocalQrouterServer) GetKeyRange

GetKeyRange gets key ranges with given ids TODO unit tests

func (*LocalQrouterServer) GetMoveTaskGroup

TODO: unit tests

func (*LocalQrouterServer) GetRelationDistribution

GetRelationDistribution retrieves info about distribution attached to relation from QDB TODO: unit tests

func (*LocalQrouterServer) GetRouterStatus

TODO : unit tests

func (*LocalQrouterServer) GetShard

func (*LocalQrouterServer) ListAllKeyRanges

func (l *LocalQrouterServer) ListAllKeyRanges(ctx context.Context, _ *emptypb.Empty) (*protos.KeyRangeReply, error)

TODO : unit tests

func (*LocalQrouterServer) ListBackendConnections

TODO : unit tests

func (*LocalQrouterServer) ListClients

TODO : unit tests

func (*LocalQrouterServer) ListDistributions

ListDistributions returns all distributions from QDB TODO: unit tests

func (*LocalQrouterServer) ListKeyRange

TODO : unit tests

func (*LocalQrouterServer) ListPools

TODO : unit tests

func (*LocalQrouterServer) ListShardingRules

TODO : unit tests

func (*LocalQrouterServer) ListShards

func (*LocalQrouterServer) LockKeyRange

TODO : unit tests

func (*LocalQrouterServer) MergeKeyRange

TODO : unit tests

func (*LocalQrouterServer) MoveKeyRange

TODO : unit tests

func (*LocalQrouterServer) OpenRouter

func (l *LocalQrouterServer) OpenRouter(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

TODO : unit tests

func (*LocalQrouterServer) RemoveBalancerTask

func (l *LocalQrouterServer) RemoveBalancerTask(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

TODO: unit tests

func (*LocalQrouterServer) RemoveMoveTaskGroup

func (l *LocalQrouterServer) RemoveMoveTaskGroup(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

TODO: unit tests

func (*LocalQrouterServer) RenameKeyRange

func (l *LocalQrouterServer) RenameKeyRange(ctx context.Context, request *protos.RenameKeyRangeRequest) (*emptypb.Empty, error)

TODO: unit tests

func (*LocalQrouterServer) SplitKeyRange

TODO : unit tests

func (*LocalQrouterServer) UnlockKeyRange

TODO : unit tests

func (*LocalQrouterServer) UpdateCoordinator

TODO : unit tests

func (*LocalQrouterServer) WriteBalancerTask

func (l *LocalQrouterServer) WriteBalancerTask(ctx context.Context, request *protos.WriteBalancerTaskRequest) (*emptypb.Empty, error)

TODO: unit tests

func (*LocalQrouterServer) WriteMoveTaskGroup

func (l *LocalQrouterServer) WriteMoveTaskGroup(ctx context.Context, request *protos.WriteMoveTaskGroupRequest) (*emptypb.Empty, error)

TODO: unit tests

Jump to

Keyboard shortcuts

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