Documentation ¶
Index ¶
- func RegisterBackupServer(s *grpc.Server, srv BackupServer)
- type BackupClient
- type BackupServer
- type UnimplementedBackupServer
- func (*UnimplementedBackupServer) GetVector(ctx context.Context, req *payload.Backup_GetVector_Request) (*payload.Backup_Compressed_MetaVector, error)
- func (*UnimplementedBackupServer) Locations(ctx context.Context, req *payload.Backup_Locations_Request) (*payload.Info_IPs, error)
- func (*UnimplementedBackupServer) Register(ctx context.Context, req *payload.Backup_Compressed_MetaVector) (*payload.Empty, error)
- func (*UnimplementedBackupServer) RegisterIPs(ctx context.Context, req *payload.Backup_IP_Register_Request) (*payload.Empty, error)
- func (*UnimplementedBackupServer) RegisterMulti(ctx context.Context, req *payload.Backup_Compressed_MetaVectors) (*payload.Empty, error)
- func (*UnimplementedBackupServer) Remove(ctx context.Context, req *payload.Backup_Remove_Request) (*payload.Empty, error)
- func (*UnimplementedBackupServer) RemoveIPs(ctx context.Context, req *payload.Backup_IP_Remove_Request) (*payload.Empty, error)
- func (*UnimplementedBackupServer) RemoveMulti(ctx context.Context, req *payload.Backup_Remove_RequestMulti) (*payload.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBackupServer ¶
func RegisterBackupServer(s *grpc.Server, srv BackupServer)
Types ¶
type BackupClient ¶
type BackupClient interface { GetVector(ctx context.Context, in *payload.Backup_GetVector_Request, opts ...grpc.CallOption) (*payload.Backup_Compressed_MetaVector, error) Locations(ctx context.Context, in *payload.Backup_Locations_Request, opts ...grpc.CallOption) (*payload.Info_IPs, error) Register(ctx context.Context, in *payload.Backup_Compressed_MetaVector, opts ...grpc.CallOption) (*payload.Empty, error) RegisterMulti(ctx context.Context, in *payload.Backup_Compressed_MetaVectors, opts ...grpc.CallOption) (*payload.Empty, error) Remove(ctx context.Context, in *payload.Backup_Remove_Request, opts ...grpc.CallOption) (*payload.Empty, error) RemoveMulti(ctx context.Context, in *payload.Backup_Remove_RequestMulti, opts ...grpc.CallOption) (*payload.Empty, error) RegisterIPs(ctx context.Context, in *payload.Backup_IP_Register_Request, opts ...grpc.CallOption) (*payload.Empty, error) RemoveIPs(ctx context.Context, in *payload.Backup_IP_Remove_Request, opts ...grpc.CallOption) (*payload.Empty, error) }
BackupClient is the client API for Backup service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBackupClient ¶
func NewBackupClient(cc *grpc.ClientConn) BackupClient
type BackupServer ¶
type BackupServer interface { GetVector(context.Context, *payload.Backup_GetVector_Request) (*payload.Backup_Compressed_MetaVector, error) Locations(context.Context, *payload.Backup_Locations_Request) (*payload.Info_IPs, error) Register(context.Context, *payload.Backup_Compressed_MetaVector) (*payload.Empty, error) RegisterMulti(context.Context, *payload.Backup_Compressed_MetaVectors) (*payload.Empty, error) Remove(context.Context, *payload.Backup_Remove_Request) (*payload.Empty, error) RemoveMulti(context.Context, *payload.Backup_Remove_RequestMulti) (*payload.Empty, error) RegisterIPs(context.Context, *payload.Backup_IP_Register_Request) (*payload.Empty, error) RemoveIPs(context.Context, *payload.Backup_IP_Remove_Request) (*payload.Empty, error) }
BackupServer is the server API for Backup service.
type UnimplementedBackupServer ¶
type UnimplementedBackupServer struct { }
UnimplementedBackupServer can be embedded to have forward compatible implementations.
func (*UnimplementedBackupServer) GetVector ¶
func (*UnimplementedBackupServer) GetVector(ctx context.Context, req *payload.Backup_GetVector_Request) (*payload.Backup_Compressed_MetaVector, error)
func (*UnimplementedBackupServer) Locations ¶
func (*UnimplementedBackupServer) Locations(ctx context.Context, req *payload.Backup_Locations_Request) (*payload.Info_IPs, error)
func (*UnimplementedBackupServer) Register ¶
func (*UnimplementedBackupServer) Register(ctx context.Context, req *payload.Backup_Compressed_MetaVector) (*payload.Empty, error)
func (*UnimplementedBackupServer) RegisterIPs ¶
func (*UnimplementedBackupServer) RegisterIPs(ctx context.Context, req *payload.Backup_IP_Register_Request) (*payload.Empty, error)
func (*UnimplementedBackupServer) RegisterMulti ¶
func (*UnimplementedBackupServer) RegisterMulti(ctx context.Context, req *payload.Backup_Compressed_MetaVectors) (*payload.Empty, error)
func (*UnimplementedBackupServer) Remove ¶
func (*UnimplementedBackupServer) Remove(ctx context.Context, req *payload.Backup_Remove_Request) (*payload.Empty, error)
func (*UnimplementedBackupServer) RemoveIPs ¶
func (*UnimplementedBackupServer) RemoveIPs(ctx context.Context, req *payload.Backup_IP_Remove_Request) (*payload.Empty, error)
func (*UnimplementedBackupServer) RemoveMulti ¶
func (*UnimplementedBackupServer) RemoveMulti(ctx context.Context, req *payload.Backup_Remove_RequestMulti) (*payload.Empty, error)
Click to show internal directories.
Click to hide internal directories.