grpcvtctldserver

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(s *grpc.Server, ts *topo.Server)

StartServer registers a VtctldServer for RPCs on the given gRPC server.

Types

type VtctldServer

type VtctldServer struct {
	// contains filtered or unexported fields
}

VtctldServer implements the Vtctld RPC service protocol.

func NewVtctldServer

func NewVtctldServer(ts *topo.Server) *VtctldServer

NewVtctldServer returns a new VtctldServer for the given topo server.

func (*VtctldServer) ChangeTabletType added in v0.10.0

ChangeTabletType is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) CreateKeyspace added in v0.10.0

CreateKeyspace is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) CreateShard added in v0.10.0

CreateShard is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) DeleteKeyspace added in v0.10.0

DeleteKeyspace is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) DeleteShards added in v0.10.0

DeleteShards is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) DeleteTablets added in v0.10.0

DeleteTablets is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) EmergencyReparentShard added in v0.10.0

EmergencyReparentShard is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) FindAllShardsInKeyspace

FindAllShardsInKeyspace is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetBackups added in v0.10.0

GetBackups is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) GetCellInfo added in v0.10.0

GetCellInfo is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetCellInfoNames added in v0.10.0

GetCellInfoNames is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetCellsAliases added in v0.10.0

GetCellsAliases is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetKeyspace

GetKeyspace is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetKeyspaces

GetKeyspaces is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetSchema added in v0.10.0

GetSchema is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetShard added in v0.10.0

GetShard is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetSrvKeyspaces added in v0.10.0

GetSrvKeyspaces is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetSrvVSchema added in v0.10.0

GetSrvVSchema is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetTablet added in v0.10.0

GetTablet is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetTablets added in v0.10.0

GetTablets is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetVSchema added in v0.10.0

GetVSchema is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetWorkflows added in v0.10.0

GetWorkflows is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) InitShardPrimary added in v0.10.0

InitShardPrimary is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) InitShardPrimaryLocked added in v0.10.0

func (s *VtctldServer) InitShardPrimaryLocked(
	ctx context.Context,
	ev *events.Reparent,
	req *vtctldatapb.InitShardPrimaryRequest,
	waitReplicasTimeout time.Duration,
	tmc tmclient.TabletManagerClient,
	logger logutil.Logger,
) error

InitShardPrimaryLocked is the main work of doing an InitShardPrimary. It should only called by callers that have already locked the shard in the topo. It is only public so that it can be used in wrangler and legacy vtctl server.

func (*VtctldServer) PlannedReparentShard added in v0.10.0

PlannedReparentShard is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) RemoveKeyspaceCell added in v0.10.0

RemoveKeyspaceCell is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) RemoveShardCell added in v0.10.0

RemoveShardCell is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ReparentTablet added in v0.10.0

ReparentTablet is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) ShardReplicationPositions added in v0.10.0

ShardReplicationPositions is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) TabletExternallyReparented added in v0.10.0

TabletExternallyReparented is part of the vtctldservicepb.VtctldServer interface.

Directories

Path Synopsis
Package testutil contains utility functions for writing tests for the grpcvtctldserver.
Package testutil contains utility functions for writing tests for the grpcvtctldserver.

Jump to

Keyboard shortcuts

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