storagepb

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

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

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 (*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 (*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 (*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 (*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 (*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 (*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 (*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 (*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 (*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 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
}

Jump to

Keyboard shortcuts

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