Documentation ¶
Index ¶
- func RegisterReplicationServer(s *grpc.Server, srv ReplicationServer)
- type ReplicationClient
- type ReplicationServer
- type UnimplementedReplicationServer
- func (*UnimplementedReplicationServer) AgentInfo(ctx context.Context, req *payload.Empty) (*payload.Replication_Agents, error)
- func (*UnimplementedReplicationServer) Rebalance(ctx context.Context, req *payload.Replication_Rebalance) (*payload.Empty, error)
- func (*UnimplementedReplicationServer) Recover(ctx context.Context, req *payload.Replication_Recovery) (*payload.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterReplicationServer ¶
func RegisterReplicationServer(s *grpc.Server, srv ReplicationServer)
Types ¶
type ReplicationClient ¶
type ReplicationClient interface { Recover(ctx context.Context, in *payload.Replication_Recovery, opts ...grpc.CallOption) (*payload.Empty, error) Rebalance(ctx context.Context, in *payload.Replication_Rebalance, opts ...grpc.CallOption) (*payload.Empty, error) AgentInfo(ctx context.Context, in *payload.Empty, opts ...grpc.CallOption) (*payload.Replication_Agents, error) }
ReplicationClient is the client API for Replication service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewReplicationClient ¶
func NewReplicationClient(cc *grpc.ClientConn) ReplicationClient
type ReplicationServer ¶
type ReplicationServer interface { Recover(context.Context, *payload.Replication_Recovery) (*payload.Empty, error) Rebalance(context.Context, *payload.Replication_Rebalance) (*payload.Empty, error) AgentInfo(context.Context, *payload.Empty) (*payload.Replication_Agents, error) }
ReplicationServer is the server API for Replication service.
type UnimplementedReplicationServer ¶
type UnimplementedReplicationServer struct { }
UnimplementedReplicationServer can be embedded to have forward compatible implementations.
func (*UnimplementedReplicationServer) AgentInfo ¶
func (*UnimplementedReplicationServer) AgentInfo(ctx context.Context, req *payload.Empty) (*payload.Replication_Agents, error)
func (*UnimplementedReplicationServer) Rebalance ¶
func (*UnimplementedReplicationServer) Rebalance(ctx context.Context, req *payload.Replication_Rebalance) (*payload.Empty, error)
func (*UnimplementedReplicationServer) Recover ¶
func (*UnimplementedReplicationServer) Recover(ctx context.Context, req *payload.Replication_Recovery) (*payload.Empty, error)
Click to show internal directories.
Click to hide internal directories.