Documentation ¶
Index ¶
- func RegisterVtctlServer(s *grpc.Server, srv VtctlServer)
- func RegisterVtctldServer(s *grpc.Server, srv VtctldServer)
- type UnimplementedVtctlServer
- type UnimplementedVtctldServer
- func (*UnimplementedVtctldServer) FindAllShardsInKeyspace(ctx context.Context, req *vtctldata.FindAllShardsInKeyspaceRequest) (*vtctldata.FindAllShardsInKeyspaceResponse, error)
- func (*UnimplementedVtctldServer) GetKeyspace(ctx context.Context, req *vtctldata.GetKeyspaceRequest) (*vtctldata.GetKeyspaceResponse, error)
- func (*UnimplementedVtctldServer) GetKeyspaces(ctx context.Context, req *vtctldata.GetKeyspacesRequest) (*vtctldata.GetKeyspacesResponse, error)
- type VtctlClient
- type VtctlServer
- type Vtctl_ExecuteVtctlCommandClient
- type Vtctl_ExecuteVtctlCommandServer
- type VtctldClient
- type VtctldServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterVtctlServer ¶
func RegisterVtctlServer(s *grpc.Server, srv VtctlServer)
func RegisterVtctldServer ¶ added in v0.9.0
func RegisterVtctldServer(s *grpc.Server, srv VtctldServer)
Types ¶
type UnimplementedVtctlServer ¶
type UnimplementedVtctlServer struct { }
UnimplementedVtctlServer can be embedded to have forward compatible implementations.
func (*UnimplementedVtctlServer) ExecuteVtctlCommand ¶
func (*UnimplementedVtctlServer) ExecuteVtctlCommand(req *vtctldata.ExecuteVtctlCommandRequest, srv Vtctl_ExecuteVtctlCommandServer) error
type UnimplementedVtctldServer ¶ added in v0.9.0
type UnimplementedVtctldServer struct { }
UnimplementedVtctldServer can be embedded to have forward compatible implementations.
func (*UnimplementedVtctldServer) FindAllShardsInKeyspace ¶ added in v0.9.0
func (*UnimplementedVtctldServer) FindAllShardsInKeyspace(ctx context.Context, req *vtctldata.FindAllShardsInKeyspaceRequest) (*vtctldata.FindAllShardsInKeyspaceResponse, error)
func (*UnimplementedVtctldServer) GetKeyspace ¶ added in v0.9.0
func (*UnimplementedVtctldServer) GetKeyspace(ctx context.Context, req *vtctldata.GetKeyspaceRequest) (*vtctldata.GetKeyspaceResponse, error)
func (*UnimplementedVtctldServer) GetKeyspaces ¶ added in v0.9.0
func (*UnimplementedVtctldServer) GetKeyspaces(ctx context.Context, req *vtctldata.GetKeyspacesRequest) (*vtctldata.GetKeyspacesResponse, error)
type VtctlClient ¶
type VtctlClient interface {
ExecuteVtctlCommand(ctx context.Context, in *vtctldata.ExecuteVtctlCommandRequest, opts ...grpc.CallOption) (Vtctl_ExecuteVtctlCommandClient, error)
}
VtctlClient is the client API for Vtctl service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewVtctlClient ¶
func NewVtctlClient(cc *grpc.ClientConn) VtctlClient
type VtctlServer ¶
type VtctlServer interface {
ExecuteVtctlCommand(*vtctldata.ExecuteVtctlCommandRequest, Vtctl_ExecuteVtctlCommandServer) error
}
VtctlServer is the server API for Vtctl service.
type Vtctl_ExecuteVtctlCommandClient ¶
type Vtctl_ExecuteVtctlCommandClient interface { Recv() (*vtctldata.ExecuteVtctlCommandResponse, error) grpc.ClientStream }
type Vtctl_ExecuteVtctlCommandServer ¶
type Vtctl_ExecuteVtctlCommandServer interface { Send(*vtctldata.ExecuteVtctlCommandResponse) error grpc.ServerStream }
type VtctldClient ¶ added in v0.9.0
type VtctldClient interface { // FindAllShardsInKeyspace returns a map of shard names to shard references for a given keyspace. FindAllShardsInKeyspace(ctx context.Context, in *vtctldata.FindAllShardsInKeyspaceRequest, opts ...grpc.CallOption) (*vtctldata.FindAllShardsInKeyspaceResponse, error) // GetKeyspace reads the given keyspace from the topo and returns it. GetKeyspace(ctx context.Context, in *vtctldata.GetKeyspaceRequest, opts ...grpc.CallOption) (*vtctldata.GetKeyspaceResponse, error) // GetKeyspaces returns the keyspace struct of all keyspaces in the topo. GetKeyspaces(ctx context.Context, in *vtctldata.GetKeyspacesRequest, opts ...grpc.CallOption) (*vtctldata.GetKeyspacesResponse, error) }
VtctldClient is the client API for Vtctld service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewVtctldClient ¶ added in v0.9.0
func NewVtctldClient(cc *grpc.ClientConn) VtctldClient
type VtctldServer ¶ added in v0.9.0
type VtctldServer interface { // FindAllShardsInKeyspace returns a map of shard names to shard references for a given keyspace. FindAllShardsInKeyspace(context.Context, *vtctldata.FindAllShardsInKeyspaceRequest) (*vtctldata.FindAllShardsInKeyspaceResponse, error) // GetKeyspace reads the given keyspace from the topo and returns it. GetKeyspace(context.Context, *vtctldata.GetKeyspaceRequest) (*vtctldata.GetKeyspaceResponse, error) // GetKeyspaces returns the keyspace struct of all keyspaces in the topo. GetKeyspaces(context.Context, *vtctldata.GetKeyspacesRequest) (*vtctldata.GetKeyspacesResponse, error) }
VtctldServer is the server API for Vtctld service.