Documentation
¶
Overview ¶
Package storagepb is a generated protocol buffer package.
It is generated from these files:
storage/storagepb/storage.proto
It has these top-level messages:
GetLatestToLSNRequest GetLatestToLSNResponse GetKeysAtPointRequest GetKeysAtPointResponse BackupFileInfo GetFileByKeyRequest FileStream PurgePrevBackupRequest PurgePrevBackupResponse FullBackupContentStream IncBackupContentStream BackupReply PostCheckpointsRequest PostCheckpointsResponse
Index ¶
- Variables
- func RegisterStorageServiceServer(s *grpc.Server, srv StorageServiceServer)
- type BackupFileInfo
- func (*BackupFileInfo) Descriptor() ([]byte, []int)
- func (m *BackupFileInfo) GetBackupType() polypb.BackupType
- func (m *BackupFileInfo) GetFileSize() int64
- func (m *BackupFileInfo) GetKey() github_com_taku_k_polymerase_pkg_polypb.Key
- func (m *BackupFileInfo) GetStorageType() polypb.StorageType
- func (m *BackupFileInfo) Marshal() (dAtA []byte, err error)
- func (m *BackupFileInfo) MarshalTo(dAtA []byte) (int, error)
- func (*BackupFileInfo) ProtoMessage()
- func (m *BackupFileInfo) Reset()
- func (m *BackupFileInfo) Size() (n int)
- func (m *BackupFileInfo) String() string
- func (m *BackupFileInfo) Unmarshal(dAtA []byte) error
- type BackupReply
- func (*BackupReply) Descriptor() ([]byte, []int)
- func (m *BackupReply) GetKey() github_com_taku_k_polymerase_pkg_polypb.Key
- func (m *BackupReply) GetMessage() string
- func (m *BackupReply) Marshal() (dAtA []byte, err error)
- func (m *BackupReply) MarshalTo(dAtA []byte) (int, error)
- func (*BackupReply) ProtoMessage()
- func (m *BackupReply) Reset()
- func (m *BackupReply) Size() (n int)
- func (m *BackupReply) String() string
- func (m *BackupReply) Unmarshal(dAtA []byte) error
- type FileStream
- func (*FileStream) Descriptor() ([]byte, []int)
- func (m *FileStream) GetContent() []byte
- func (m *FileStream) Marshal() (dAtA []byte, err error)
- func (m *FileStream) MarshalTo(dAtA []byte) (int, error)
- func (*FileStream) ProtoMessage()
- func (m *FileStream) Reset()
- func (m *FileStream) Size() (n int)
- func (m *FileStream) String() string
- func (m *FileStream) Unmarshal(dAtA []byte) error
- type FullBackupContentStream
- func (*FullBackupContentStream) Descriptor() ([]byte, []int)
- func (m *FullBackupContentStream) GetContent() []byte
- func (m *FullBackupContentStream) GetDb() github_com_taku_k_polymerase_pkg_polypb.DatabaseID
- func (m *FullBackupContentStream) Marshal() (dAtA []byte, err error)
- func (m *FullBackupContentStream) MarshalTo(dAtA []byte) (int, error)
- func (*FullBackupContentStream) ProtoMessage()
- func (m *FullBackupContentStream) Reset()
- func (m *FullBackupContentStream) Size() (n int)
- func (m *FullBackupContentStream) String() string
- func (m *FullBackupContentStream) Unmarshal(dAtA []byte) error
- type GetFileByKeyRequest
- func (*GetFileByKeyRequest) Descriptor() ([]byte, []int)
- func (m *GetFileByKeyRequest) GetKey() github_com_taku_k_polymerase_pkg_polypb.Key
- func (m *GetFileByKeyRequest) GetStorageType() polypb.StorageType
- func (m *GetFileByKeyRequest) Marshal() (dAtA []byte, err error)
- func (m *GetFileByKeyRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetFileByKeyRequest) ProtoMessage()
- func (m *GetFileByKeyRequest) Reset()
- func (m *GetFileByKeyRequest) Size() (n int)
- func (m *GetFileByKeyRequest) String() string
- func (m *GetFileByKeyRequest) Unmarshal(dAtA []byte) error
- type GetKeysAtPointRequest
- func (*GetKeysAtPointRequest) Descriptor() ([]byte, []int)
- func (m *GetKeysAtPointRequest) GetDb() github_com_taku_k_polymerase_pkg_polypb.DatabaseID
- func (m *GetKeysAtPointRequest) GetFrom() string
- func (m *GetKeysAtPointRequest) Marshal() (dAtA []byte, err error)
- func (m *GetKeysAtPointRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetKeysAtPointRequest) ProtoMessage()
- func (m *GetKeysAtPointRequest) Reset()
- func (m *GetKeysAtPointRequest) Size() (n int)
- func (m *GetKeysAtPointRequest) String() string
- func (m *GetKeysAtPointRequest) Unmarshal(dAtA []byte) error
- type GetKeysAtPointResponse
- func (*GetKeysAtPointResponse) Descriptor() ([]byte, []int)
- func (m *GetKeysAtPointResponse) GetKeys() []*BackupFileInfo
- func (m *GetKeysAtPointResponse) Marshal() (dAtA []byte, err error)
- func (m *GetKeysAtPointResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GetKeysAtPointResponse) ProtoMessage()
- func (m *GetKeysAtPointResponse) Reset()
- func (m *GetKeysAtPointResponse) Size() (n int)
- func (m *GetKeysAtPointResponse) String() string
- func (m *GetKeysAtPointResponse) Unmarshal(dAtA []byte) error
- type GetLatestToLSNRequest
- func (*GetLatestToLSNRequest) Descriptor() ([]byte, []int)
- func (m *GetLatestToLSNRequest) GetDb() github_com_taku_k_polymerase_pkg_polypb.DatabaseID
- func (m *GetLatestToLSNRequest) Marshal() (dAtA []byte, err error)
- func (m *GetLatestToLSNRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetLatestToLSNRequest) ProtoMessage()
- func (m *GetLatestToLSNRequest) Reset()
- func (m *GetLatestToLSNRequest) Size() (n int)
- func (m *GetLatestToLSNRequest) String() string
- func (m *GetLatestToLSNRequest) Unmarshal(dAtA []byte) error
- type GetLatestToLSNResponse
- func (*GetLatestToLSNResponse) Descriptor() ([]byte, []int)
- func (m *GetLatestToLSNResponse) GetLsn() string
- func (m *GetLatestToLSNResponse) Marshal() (dAtA []byte, err error)
- func (m *GetLatestToLSNResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GetLatestToLSNResponse) ProtoMessage()
- func (m *GetLatestToLSNResponse) Reset()
- func (m *GetLatestToLSNResponse) Size() (n int)
- func (m *GetLatestToLSNResponse) String() string
- func (m *GetLatestToLSNResponse) Unmarshal(dAtA []byte) error
- type IncBackupContentStream
- func (*IncBackupContentStream) Descriptor() ([]byte, []int)
- func (m *IncBackupContentStream) GetContent() []byte
- func (m *IncBackupContentStream) GetDb() github_com_taku_k_polymerase_pkg_polypb.DatabaseID
- func (m *IncBackupContentStream) GetLsn() string
- func (m *IncBackupContentStream) Marshal() (dAtA []byte, err error)
- func (m *IncBackupContentStream) MarshalTo(dAtA []byte) (int, error)
- func (*IncBackupContentStream) ProtoMessage()
- func (m *IncBackupContentStream) Reset()
- func (m *IncBackupContentStream) Size() (n int)
- func (m *IncBackupContentStream) String() string
- func (m *IncBackupContentStream) Unmarshal(dAtA []byte) error
- type PostCheckpointsRequest
- func (*PostCheckpointsRequest) Descriptor() ([]byte, []int)
- func (m *PostCheckpointsRequest) GetContent() []byte
- func (m *PostCheckpointsRequest) GetKey() github_com_taku_k_polymerase_pkg_polypb.Key
- func (m *PostCheckpointsRequest) Marshal() (dAtA []byte, err error)
- func (m *PostCheckpointsRequest) MarshalTo(dAtA []byte) (int, error)
- func (*PostCheckpointsRequest) ProtoMessage()
- func (m *PostCheckpointsRequest) Reset()
- func (m *PostCheckpointsRequest) Size() (n int)
- func (m *PostCheckpointsRequest) String() string
- func (m *PostCheckpointsRequest) Unmarshal(dAtA []byte) error
- type PostCheckpointsResponse
- func (*PostCheckpointsResponse) Descriptor() ([]byte, []int)
- func (m *PostCheckpointsResponse) GetMessage() string
- func (m *PostCheckpointsResponse) Marshal() (dAtA []byte, err error)
- func (m *PostCheckpointsResponse) MarshalTo(dAtA []byte) (int, error)
- func (*PostCheckpointsResponse) ProtoMessage()
- func (m *PostCheckpointsResponse) Reset()
- func (m *PostCheckpointsResponse) Size() (n int)
- func (m *PostCheckpointsResponse) String() string
- func (m *PostCheckpointsResponse) Unmarshal(dAtA []byte) error
- type PurgePrevBackupRequest
- func (*PurgePrevBackupRequest) Descriptor() ([]byte, []int)
- func (m *PurgePrevBackupRequest) GetDb() github_com_taku_k_polymerase_pkg_polypb.DatabaseID
- func (m *PurgePrevBackupRequest) Marshal() (dAtA []byte, err error)
- func (m *PurgePrevBackupRequest) MarshalTo(dAtA []byte) (int, error)
- func (*PurgePrevBackupRequest) ProtoMessage()
- func (m *PurgePrevBackupRequest) Reset()
- func (m *PurgePrevBackupRequest) Size() (n int)
- func (m *PurgePrevBackupRequest) String() string
- func (m *PurgePrevBackupRequest) Unmarshal(dAtA []byte) error
- type PurgePrevBackupResponse
- func (*PurgePrevBackupResponse) Descriptor() ([]byte, []int)
- func (m *PurgePrevBackupResponse) GetMessage() string
- func (m *PurgePrevBackupResponse) Marshal() (dAtA []byte, err error)
- func (m *PurgePrevBackupResponse) MarshalTo(dAtA []byte) (int, error)
- func (*PurgePrevBackupResponse) ProtoMessage()
- func (m *PurgePrevBackupResponse) Reset()
- func (m *PurgePrevBackupResponse) Size() (n int)
- func (m *PurgePrevBackupResponse) String() string
- func (m *PurgePrevBackupResponse) Unmarshal(dAtA []byte) error
- type StorageServiceClient
- type StorageServiceServer
- type StorageService_GetFileByKeyClient
- type StorageService_GetFileByKeyServer
- type StorageService_TransferFullBackupClient
- type StorageService_TransferFullBackupServer
- type StorageService_TransferIncBackupClient
- type StorageService_TransferIncBackupServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthStorage = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowStorage = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterStorageServiceServer ¶
func RegisterStorageServiceServer(s *grpc.Server, srv StorageServiceServer)
Types ¶
type BackupFileInfo ¶
type BackupFileInfo struct {
StorageType polypb.StorageType `protobuf:"varint,1,opt,name=storage_type,json=storageType,proto3,enum=polypb.StorageType" json:"storage_type,omitempty"`
BackupType polypb.BackupType `protobuf:"varint,2,opt,name=backup_type,json=backupType,proto3,enum=polypb.BackupType" json:"backup_type,omitempty"`
Key github_com_taku_k_polymerase_pkg_polypb.Key `protobuf:"bytes,3,opt,name=key,proto3,casttype=github.com/taku-k/polymerase/pkg/polypb.Key" json:"key,omitempty"`
FileSize int64 `protobuf:"varint,4,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"`
}
func (*BackupFileInfo) Descriptor ¶
func (*BackupFileInfo) Descriptor() ([]byte, []int)
func (*BackupFileInfo) GetBackupType ¶
func (m *BackupFileInfo) GetBackupType() polypb.BackupType
func (*BackupFileInfo) GetFileSize ¶ added in v0.4.9
func (m *BackupFileInfo) GetFileSize() int64
func (*BackupFileInfo) GetKey ¶
func (m *BackupFileInfo) GetKey() github_com_taku_k_polymerase_pkg_polypb.Key
func (*BackupFileInfo) GetStorageType ¶
func (m *BackupFileInfo) GetStorageType() polypb.StorageType
func (*BackupFileInfo) Marshal ¶ added in v0.4.9
func (m *BackupFileInfo) Marshal() (dAtA []byte, err error)
func (*BackupFileInfo) MarshalTo ¶ added in v0.4.9
func (m *BackupFileInfo) MarshalTo(dAtA []byte) (int, error)
func (*BackupFileInfo) ProtoMessage ¶
func (*BackupFileInfo) ProtoMessage()
func (*BackupFileInfo) Reset ¶
func (m *BackupFileInfo) Reset()
func (*BackupFileInfo) Size ¶
func (m *BackupFileInfo) Size() (n int)
func (*BackupFileInfo) String ¶
func (m *BackupFileInfo) String() string
func (*BackupFileInfo) Unmarshal ¶ added in v0.4.9
func (m *BackupFileInfo) Unmarshal(dAtA []byte) error
type BackupReply ¶ added in v0.4.7
type BackupReply struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
Key github_com_taku_k_polymerase_pkg_polypb.Key `protobuf:"bytes,2,opt,name=key,proto3,casttype=github.com/taku-k/polymerase/pkg/polypb.Key" json:"key,omitempty"`
}
func (*BackupReply) Descriptor ¶ added in v0.4.7
func (*BackupReply) Descriptor() ([]byte, []int)
func (*BackupReply) GetKey ¶ added in v0.4.7
func (m *BackupReply) GetKey() github_com_taku_k_polymerase_pkg_polypb.Key
func (*BackupReply) GetMessage ¶ added in v0.4.7
func (m *BackupReply) GetMessage() string
func (*BackupReply) Marshal ¶ added in v0.4.9
func (m *BackupReply) Marshal() (dAtA []byte, err error)
func (*BackupReply) MarshalTo ¶ added in v0.4.9
func (m *BackupReply) MarshalTo(dAtA []byte) (int, error)
func (*BackupReply) ProtoMessage ¶ added in v0.4.7
func (*BackupReply) ProtoMessage()
func (*BackupReply) Reset ¶ added in v0.4.7
func (m *BackupReply) Reset()
func (*BackupReply) Size ¶ added in v0.4.9
func (m *BackupReply) Size() (n int)
func (*BackupReply) String ¶ added in v0.4.7
func (m *BackupReply) String() string
func (*BackupReply) Unmarshal ¶ added in v0.4.9
func (m *BackupReply) Unmarshal(dAtA []byte) error
type FileStream ¶
type FileStream struct {
Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
}
func (*FileStream) Descriptor ¶
func (*FileStream) Descriptor() ([]byte, []int)
func (*FileStream) GetContent ¶
func (m *FileStream) GetContent() []byte
func (*FileStream) Marshal ¶ added in v0.4.9
func (m *FileStream) Marshal() (dAtA []byte, err error)
func (*FileStream) MarshalTo ¶ added in v0.4.9
func (m *FileStream) MarshalTo(dAtA []byte) (int, error)
func (*FileStream) ProtoMessage ¶
func (*FileStream) ProtoMessage()
func (*FileStream) Reset ¶
func (m *FileStream) Reset()
func (*FileStream) Size ¶ added in v0.4.9
func (m *FileStream) Size() (n int)
func (*FileStream) String ¶
func (m *FileStream) String() string
func (*FileStream) Unmarshal ¶ added in v0.4.9
func (m *FileStream) Unmarshal(dAtA []byte) error
type FullBackupContentStream ¶ added in v0.4.7
type FullBackupContentStream struct {
Db github_com_taku_k_polymerase_pkg_polypb.DatabaseID `protobuf:"bytes,1,opt,name=db,proto3,casttype=github.com/taku-k/polymerase/pkg/polypb.DatabaseID" json:"db,omitempty"`
Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
}
func (*FullBackupContentStream) Descriptor ¶ added in v0.4.7
func (*FullBackupContentStream) Descriptor() ([]byte, []int)
func (*FullBackupContentStream) GetContent ¶ added in v0.4.7
func (m *FullBackupContentStream) GetContent() []byte
func (*FullBackupContentStream) GetDb ¶ added in v0.4.7
func (m *FullBackupContentStream) GetDb() github_com_taku_k_polymerase_pkg_polypb.DatabaseID
func (*FullBackupContentStream) Marshal ¶ added in v0.4.9
func (m *FullBackupContentStream) Marshal() (dAtA []byte, err error)
func (*FullBackupContentStream) MarshalTo ¶ added in v0.4.9
func (m *FullBackupContentStream) MarshalTo(dAtA []byte) (int, error)
func (*FullBackupContentStream) ProtoMessage ¶ added in v0.4.7
func (*FullBackupContentStream) ProtoMessage()
func (*FullBackupContentStream) Reset ¶ added in v0.4.7
func (m *FullBackupContentStream) Reset()
func (*FullBackupContentStream) Size ¶ added in v0.4.9
func (m *FullBackupContentStream) Size() (n int)
func (*FullBackupContentStream) String ¶ added in v0.4.7
func (m *FullBackupContentStream) String() string
func (*FullBackupContentStream) Unmarshal ¶ added in v0.4.9
func (m *FullBackupContentStream) Unmarshal(dAtA []byte) error
type GetFileByKeyRequest ¶
type GetFileByKeyRequest struct {
Key github_com_taku_k_polymerase_pkg_polypb.Key `protobuf:"bytes,1,opt,name=key,proto3,casttype=github.com/taku-k/polymerase/pkg/polypb.Key" json:"key,omitempty"`
StorageType polypb.StorageType `protobuf:"varint,2,opt,name=storage_type,json=storageType,proto3,enum=polypb.StorageType" json:"storage_type,omitempty"`
}
func (*GetFileByKeyRequest) Descriptor ¶
func (*GetFileByKeyRequest) Descriptor() ([]byte, []int)
func (*GetFileByKeyRequest) GetKey ¶
func (m *GetFileByKeyRequest) GetKey() github_com_taku_k_polymerase_pkg_polypb.Key
func (*GetFileByKeyRequest) GetStorageType ¶
func (m *GetFileByKeyRequest) GetStorageType() polypb.StorageType
func (*GetFileByKeyRequest) Marshal ¶ added in v0.4.9
func (m *GetFileByKeyRequest) Marshal() (dAtA []byte, err error)
func (*GetFileByKeyRequest) MarshalTo ¶ added in v0.4.9
func (m *GetFileByKeyRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetFileByKeyRequest) ProtoMessage ¶
func (*GetFileByKeyRequest) ProtoMessage()
func (*GetFileByKeyRequest) Reset ¶
func (m *GetFileByKeyRequest) Reset()
func (*GetFileByKeyRequest) Size ¶ added in v0.4.9
func (m *GetFileByKeyRequest) Size() (n int)
func (*GetFileByKeyRequest) String ¶
func (m *GetFileByKeyRequest) String() string
func (*GetFileByKeyRequest) Unmarshal ¶ added in v0.4.9
func (m *GetFileByKeyRequest) Unmarshal(dAtA []byte) error
type GetKeysAtPointRequest ¶
type GetKeysAtPointRequest struct {
Db github_com_taku_k_polymerase_pkg_polypb.DatabaseID `protobuf:"bytes,1,opt,name=db,proto3,casttype=github.com/taku-k/polymerase/pkg/polypb.DatabaseID" json:"db,omitempty"`
From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
}
func (*GetKeysAtPointRequest) Descriptor ¶
func (*GetKeysAtPointRequest) Descriptor() ([]byte, []int)
func (*GetKeysAtPointRequest) GetDb ¶
func (m *GetKeysAtPointRequest) GetDb() github_com_taku_k_polymerase_pkg_polypb.DatabaseID
func (*GetKeysAtPointRequest) GetFrom ¶
func (m *GetKeysAtPointRequest) GetFrom() string
func (*GetKeysAtPointRequest) Marshal ¶ added in v0.4.9
func (m *GetKeysAtPointRequest) Marshal() (dAtA []byte, err error)
func (*GetKeysAtPointRequest) MarshalTo ¶ added in v0.4.9
func (m *GetKeysAtPointRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetKeysAtPointRequest) ProtoMessage ¶
func (*GetKeysAtPointRequest) ProtoMessage()
func (*GetKeysAtPointRequest) Reset ¶
func (m *GetKeysAtPointRequest) Reset()
func (*GetKeysAtPointRequest) Size ¶ added in v0.4.9
func (m *GetKeysAtPointRequest) Size() (n int)
func (*GetKeysAtPointRequest) String ¶
func (m *GetKeysAtPointRequest) String() string
func (*GetKeysAtPointRequest) Unmarshal ¶ added in v0.4.9
func (m *GetKeysAtPointRequest) Unmarshal(dAtA []byte) error
type GetKeysAtPointResponse ¶
type GetKeysAtPointResponse struct {
Keys []*BackupFileInfo `protobuf:"bytes,1,rep,name=keys" json:"keys,omitempty"`
}
func (*GetKeysAtPointResponse) Descriptor ¶
func (*GetKeysAtPointResponse) Descriptor() ([]byte, []int)
func (*GetKeysAtPointResponse) GetKeys ¶
func (m *GetKeysAtPointResponse) GetKeys() []*BackupFileInfo
func (*GetKeysAtPointResponse) Marshal ¶ added in v0.4.9
func (m *GetKeysAtPointResponse) Marshal() (dAtA []byte, err error)
func (*GetKeysAtPointResponse) MarshalTo ¶ added in v0.4.9
func (m *GetKeysAtPointResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetKeysAtPointResponse) ProtoMessage ¶
func (*GetKeysAtPointResponse) ProtoMessage()
func (*GetKeysAtPointResponse) Reset ¶
func (m *GetKeysAtPointResponse) Reset()
func (*GetKeysAtPointResponse) Size ¶ added in v0.4.9
func (m *GetKeysAtPointResponse) Size() (n int)
func (*GetKeysAtPointResponse) String ¶
func (m *GetKeysAtPointResponse) String() string
func (*GetKeysAtPointResponse) Unmarshal ¶ added in v0.4.9
func (m *GetKeysAtPointResponse) Unmarshal(dAtA []byte) error
type GetLatestToLSNRequest ¶
type GetLatestToLSNRequest struct {
Db github_com_taku_k_polymerase_pkg_polypb.DatabaseID `protobuf:"bytes,1,opt,name=db,proto3,casttype=github.com/taku-k/polymerase/pkg/polypb.DatabaseID" json:"db,omitempty"`
}
func (*GetLatestToLSNRequest) Descriptor ¶
func (*GetLatestToLSNRequest) Descriptor() ([]byte, []int)
func (*GetLatestToLSNRequest) GetDb ¶
func (m *GetLatestToLSNRequest) GetDb() github_com_taku_k_polymerase_pkg_polypb.DatabaseID
func (*GetLatestToLSNRequest) Marshal ¶ added in v0.4.9
func (m *GetLatestToLSNRequest) Marshal() (dAtA []byte, err error)
func (*GetLatestToLSNRequest) MarshalTo ¶ added in v0.4.9
func (m *GetLatestToLSNRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetLatestToLSNRequest) ProtoMessage ¶
func (*GetLatestToLSNRequest) ProtoMessage()
func (*GetLatestToLSNRequest) Reset ¶
func (m *GetLatestToLSNRequest) Reset()
func (*GetLatestToLSNRequest) Size ¶ added in v0.4.9
func (m *GetLatestToLSNRequest) Size() (n int)
func (*GetLatestToLSNRequest) String ¶
func (m *GetLatestToLSNRequest) String() string
func (*GetLatestToLSNRequest) Unmarshal ¶ added in v0.4.9
func (m *GetLatestToLSNRequest) Unmarshal(dAtA []byte) error
type GetLatestToLSNResponse ¶
type GetLatestToLSNResponse struct {
Lsn string `protobuf:"bytes,1,opt,name=lsn,proto3" json:"lsn,omitempty"`
}
func (*GetLatestToLSNResponse) Descriptor ¶
func (*GetLatestToLSNResponse) Descriptor() ([]byte, []int)
func (*GetLatestToLSNResponse) GetLsn ¶
func (m *GetLatestToLSNResponse) GetLsn() string
func (*GetLatestToLSNResponse) Marshal ¶ added in v0.4.9
func (m *GetLatestToLSNResponse) Marshal() (dAtA []byte, err error)
func (*GetLatestToLSNResponse) MarshalTo ¶ added in v0.4.9
func (m *GetLatestToLSNResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetLatestToLSNResponse) ProtoMessage ¶
func (*GetLatestToLSNResponse) ProtoMessage()
func (*GetLatestToLSNResponse) Reset ¶
func (m *GetLatestToLSNResponse) Reset()
func (*GetLatestToLSNResponse) Size ¶ added in v0.4.9
func (m *GetLatestToLSNResponse) Size() (n int)
func (*GetLatestToLSNResponse) String ¶
func (m *GetLatestToLSNResponse) String() string
func (*GetLatestToLSNResponse) Unmarshal ¶ added in v0.4.9
func (m *GetLatestToLSNResponse) Unmarshal(dAtA []byte) error
type IncBackupContentStream ¶ added in v0.4.7
type IncBackupContentStream struct {
Db github_com_taku_k_polymerase_pkg_polypb.DatabaseID `protobuf:"bytes,1,opt,name=db,proto3,casttype=github.com/taku-k/polymerase/pkg/polypb.DatabaseID" json:"db,omitempty"`
Lsn string `protobuf:"bytes,2,opt,name=lsn,proto3" json:"lsn,omitempty"`
Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
}
func (*IncBackupContentStream) Descriptor ¶ added in v0.4.7
func (*IncBackupContentStream) Descriptor() ([]byte, []int)
func (*IncBackupContentStream) GetContent ¶ added in v0.4.7
func (m *IncBackupContentStream) GetContent() []byte
func (*IncBackupContentStream) GetDb ¶ added in v0.4.7
func (m *IncBackupContentStream) GetDb() github_com_taku_k_polymerase_pkg_polypb.DatabaseID
func (*IncBackupContentStream) GetLsn ¶ added in v0.4.7
func (m *IncBackupContentStream) GetLsn() string
func (*IncBackupContentStream) Marshal ¶ added in v0.4.9
func (m *IncBackupContentStream) Marshal() (dAtA []byte, err error)
func (*IncBackupContentStream) MarshalTo ¶ added in v0.4.9
func (m *IncBackupContentStream) MarshalTo(dAtA []byte) (int, error)
func (*IncBackupContentStream) ProtoMessage ¶ added in v0.4.7
func (*IncBackupContentStream) ProtoMessage()
func (*IncBackupContentStream) Reset ¶ added in v0.4.7
func (m *IncBackupContentStream) Reset()
func (*IncBackupContentStream) Size ¶ added in v0.4.9
func (m *IncBackupContentStream) Size() (n int)
func (*IncBackupContentStream) String ¶ added in v0.4.7
func (m *IncBackupContentStream) String() string
func (*IncBackupContentStream) Unmarshal ¶ added in v0.4.9
func (m *IncBackupContentStream) Unmarshal(dAtA []byte) error
type PostCheckpointsRequest ¶ added in v0.4.7
type PostCheckpointsRequest struct {
Key github_com_taku_k_polymerase_pkg_polypb.Key `protobuf:"bytes,1,opt,name=key,proto3,casttype=github.com/taku-k/polymerase/pkg/polypb.Key" json:"key,omitempty"`
Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
}
func (*PostCheckpointsRequest) Descriptor ¶ added in v0.4.7
func (*PostCheckpointsRequest) Descriptor() ([]byte, []int)
func (*PostCheckpointsRequest) GetContent ¶ added in v0.4.7
func (m *PostCheckpointsRequest) GetContent() []byte
func (*PostCheckpointsRequest) GetKey ¶ added in v0.4.7
func (m *PostCheckpointsRequest) GetKey() github_com_taku_k_polymerase_pkg_polypb.Key
func (*PostCheckpointsRequest) Marshal ¶ added in v0.4.9
func (m *PostCheckpointsRequest) Marshal() (dAtA []byte, err error)
func (*PostCheckpointsRequest) MarshalTo ¶ added in v0.4.9
func (m *PostCheckpointsRequest) MarshalTo(dAtA []byte) (int, error)
func (*PostCheckpointsRequest) ProtoMessage ¶ added in v0.4.7
func (*PostCheckpointsRequest) ProtoMessage()
func (*PostCheckpointsRequest) Reset ¶ added in v0.4.7
func (m *PostCheckpointsRequest) Reset()
func (*PostCheckpointsRequest) Size ¶ added in v0.4.9
func (m *PostCheckpointsRequest) Size() (n int)
func (*PostCheckpointsRequest) String ¶ added in v0.4.7
func (m *PostCheckpointsRequest) String() string
func (*PostCheckpointsRequest) Unmarshal ¶ added in v0.4.9
func (m *PostCheckpointsRequest) Unmarshal(dAtA []byte) error
type PostCheckpointsResponse ¶ added in v0.4.7
type PostCheckpointsResponse struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}
func (*PostCheckpointsResponse) Descriptor ¶ added in v0.4.7
func (*PostCheckpointsResponse) Descriptor() ([]byte, []int)
func (*PostCheckpointsResponse) GetMessage ¶ added in v0.4.7
func (m *PostCheckpointsResponse) GetMessage() string
func (*PostCheckpointsResponse) Marshal ¶ added in v0.4.9
func (m *PostCheckpointsResponse) Marshal() (dAtA []byte, err error)
func (*PostCheckpointsResponse) MarshalTo ¶ added in v0.4.9
func (m *PostCheckpointsResponse) MarshalTo(dAtA []byte) (int, error)
func (*PostCheckpointsResponse) ProtoMessage ¶ added in v0.4.7
func (*PostCheckpointsResponse) ProtoMessage()
func (*PostCheckpointsResponse) Reset ¶ added in v0.4.7
func (m *PostCheckpointsResponse) Reset()
func (*PostCheckpointsResponse) Size ¶ added in v0.4.9
func (m *PostCheckpointsResponse) Size() (n int)
func (*PostCheckpointsResponse) String ¶ added in v0.4.7
func (m *PostCheckpointsResponse) String() string
func (*PostCheckpointsResponse) Unmarshal ¶ added in v0.4.9
func (m *PostCheckpointsResponse) Unmarshal(dAtA []byte) error
type PurgePrevBackupRequest ¶
type PurgePrevBackupRequest struct {
Db github_com_taku_k_polymerase_pkg_polypb.DatabaseID `protobuf:"bytes,1,opt,name=db,proto3,casttype=github.com/taku-k/polymerase/pkg/polypb.DatabaseID" json:"db,omitempty"`
}
func (*PurgePrevBackupRequest) Descriptor ¶
func (*PurgePrevBackupRequest) Descriptor() ([]byte, []int)
func (*PurgePrevBackupRequest) GetDb ¶
func (m *PurgePrevBackupRequest) GetDb() github_com_taku_k_polymerase_pkg_polypb.DatabaseID
func (*PurgePrevBackupRequest) Marshal ¶ added in v0.4.9
func (m *PurgePrevBackupRequest) Marshal() (dAtA []byte, err error)
func (*PurgePrevBackupRequest) MarshalTo ¶ added in v0.4.9
func (m *PurgePrevBackupRequest) MarshalTo(dAtA []byte) (int, error)
func (*PurgePrevBackupRequest) ProtoMessage ¶
func (*PurgePrevBackupRequest) ProtoMessage()
func (*PurgePrevBackupRequest) Reset ¶
func (m *PurgePrevBackupRequest) Reset()
func (*PurgePrevBackupRequest) Size ¶ added in v0.4.9
func (m *PurgePrevBackupRequest) Size() (n int)
func (*PurgePrevBackupRequest) String ¶
func (m *PurgePrevBackupRequest) String() string
func (*PurgePrevBackupRequest) Unmarshal ¶ added in v0.4.9
func (m *PurgePrevBackupRequest) Unmarshal(dAtA []byte) error
type PurgePrevBackupResponse ¶
type PurgePrevBackupResponse struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}
func (*PurgePrevBackupResponse) Descriptor ¶
func (*PurgePrevBackupResponse) Descriptor() ([]byte, []int)
func (*PurgePrevBackupResponse) GetMessage ¶
func (m *PurgePrevBackupResponse) GetMessage() string
func (*PurgePrevBackupResponse) Marshal ¶ added in v0.4.9
func (m *PurgePrevBackupResponse) Marshal() (dAtA []byte, err error)
func (*PurgePrevBackupResponse) MarshalTo ¶ added in v0.4.9
func (m *PurgePrevBackupResponse) MarshalTo(dAtA []byte) (int, error)
func (*PurgePrevBackupResponse) ProtoMessage ¶
func (*PurgePrevBackupResponse) ProtoMessage()
func (*PurgePrevBackupResponse) Reset ¶
func (m *PurgePrevBackupResponse) Reset()
func (*PurgePrevBackupResponse) Size ¶ added in v0.4.9
func (m *PurgePrevBackupResponse) Size() (n int)
func (*PurgePrevBackupResponse) String ¶
func (m *PurgePrevBackupResponse) String() string
func (*PurgePrevBackupResponse) Unmarshal ¶ added in v0.4.9
func (m *PurgePrevBackupResponse) Unmarshal(dAtA []byte) error
type StorageServiceClient ¶
type StorageServiceClient interface {
GetLatestToLSN(ctx context.Context, in *GetLatestToLSNRequest, opts ...grpc.CallOption) (*GetLatestToLSNResponse, error)
GetKeysAtPoint(ctx context.Context, in *GetKeysAtPointRequest, opts ...grpc.CallOption) (*GetKeysAtPointResponse, error)
GetFileByKey(ctx context.Context, in *GetFileByKeyRequest, opts ...grpc.CallOption) (StorageService_GetFileByKeyClient, error)
PurgePrevBackup(ctx context.Context, in *PurgePrevBackupRequest, opts ...grpc.CallOption) (*PurgePrevBackupResponse, error)
TransferFullBackup(ctx context.Context, opts ...grpc.CallOption) (StorageService_TransferFullBackupClient, error)
TransferIncBackup(ctx context.Context, opts ...grpc.CallOption) (StorageService_TransferIncBackupClient, error)
PostCheckpoints(ctx context.Context, in *PostCheckpointsRequest, opts ...grpc.CallOption) (*PostCheckpointsResponse, error)
}
func NewStorageServiceClient ¶
func NewStorageServiceClient(cc *grpc.ClientConn) StorageServiceClient
type StorageServiceServer ¶
type StorageServiceServer interface {
GetLatestToLSN(context.Context, *GetLatestToLSNRequest) (*GetLatestToLSNResponse, error)
GetKeysAtPoint(context.Context, *GetKeysAtPointRequest) (*GetKeysAtPointResponse, error)
GetFileByKey(*GetFileByKeyRequest, StorageService_GetFileByKeyServer) error
PurgePrevBackup(context.Context, *PurgePrevBackupRequest) (*PurgePrevBackupResponse, error)
TransferFullBackup(StorageService_TransferFullBackupServer) error
TransferIncBackup(StorageService_TransferIncBackupServer) error
PostCheckpoints(context.Context, *PostCheckpointsRequest) (*PostCheckpointsResponse, error)
}
type StorageService_GetFileByKeyClient ¶
type StorageService_GetFileByKeyClient interface {
Recv() (*FileStream, error)
grpc.ClientStream
}
type StorageService_GetFileByKeyServer ¶
type StorageService_GetFileByKeyServer interface {
Send(*FileStream) error
grpc.ServerStream
}
type StorageService_TransferFullBackupClient ¶ added in v0.4.7
type StorageService_TransferFullBackupClient interface {
Send(*FullBackupContentStream) error
CloseAndRecv() (*BackupReply, error)
grpc.ClientStream
}
type StorageService_TransferFullBackupServer ¶ added in v0.4.7
type StorageService_TransferFullBackupServer interface {
SendAndClose(*BackupReply) error
Recv() (*FullBackupContentStream, error)
grpc.ServerStream
}
type StorageService_TransferIncBackupClient ¶ added in v0.4.7
type StorageService_TransferIncBackupClient interface {
Send(*IncBackupContentStream) error
CloseAndRecv() (*BackupReply, error)
grpc.ClientStream
}
type StorageService_TransferIncBackupServer ¶ added in v0.4.7
type StorageService_TransferIncBackupServer interface {
SendAndClose(*BackupReply) error
Recv() (*IncBackupContentStream, error)
grpc.ServerStream
}
Click to show internal directories.
Click to hide internal directories.