storagepb

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 License: Apache-2.0 Imports: 5 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
GetBestStartTimeRequest
GetBestStartTimeResponse
FullBackupContentStream
IncBackupContentStream
BackupReply
PostCheckpointsRequest
PostCheckpointsResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStorageServiceServer

func RegisterStorageServiceServer(s *grpc.Server, srv StorageServiceServer)

Types

type BackupFileInfo

type BackupFileInfo struct {
	StorageType string `protobuf:"bytes,1,opt,name=storage_type,json=storageType" json:"storage_type,omitempty"`
	BackupType  string `protobuf:"bytes,2,opt,name=backup_type,json=backupType" json:"backup_type,omitempty"`
	Key         string `protobuf:"bytes,3,opt,name=key" json:"key,omitempty"`
	Size        int64  `protobuf:"varint,4,opt,name=size" json:"size,omitempty"`
}

func (*BackupFileInfo) Descriptor

func (*BackupFileInfo) Descriptor() ([]byte, []int)

func (*BackupFileInfo) GetBackupType

func (m *BackupFileInfo) GetBackupType() string

func (*BackupFileInfo) GetKey

func (m *BackupFileInfo) GetKey() string

func (*BackupFileInfo) GetSize

func (m *BackupFileInfo) GetSize() int64

func (*BackupFileInfo) GetStorageType

func (m *BackupFileInfo) GetStorageType() string

func (*BackupFileInfo) ProtoMessage

func (*BackupFileInfo) ProtoMessage()

func (*BackupFileInfo) Reset

func (m *BackupFileInfo) Reset()

func (*BackupFileInfo) String

func (m *BackupFileInfo) String() string

type BackupReply added in v0.4.7

type BackupReply struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
	Key     string `protobuf:"bytes,2,opt,name=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() string

func (*BackupReply) GetMessage added in v0.4.7

func (m *BackupReply) GetMessage() string

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) String added in v0.4.7

func (m *BackupReply) String() string

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) ProtoMessage

func (*FileStream) ProtoMessage()

func (*FileStream) Reset

func (m *FileStream) Reset()

func (*FileStream) String

func (m *FileStream) String() string

type FullBackupContentStream added in v0.4.7

type FullBackupContentStream struct {
	Db      string `protobuf:"bytes,1,opt,name=db" 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() string

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) String added in v0.4.7

func (m *FullBackupContentStream) String() string

type GetBestStartTimeRequest

type GetBestStartTimeRequest struct {
}

func (*GetBestStartTimeRequest) Descriptor

func (*GetBestStartTimeRequest) Descriptor() ([]byte, []int)

func (*GetBestStartTimeRequest) ProtoMessage

func (*GetBestStartTimeRequest) ProtoMessage()

func (*GetBestStartTimeRequest) Reset

func (m *GetBestStartTimeRequest) Reset()

func (*GetBestStartTimeRequest) String

func (m *GetBestStartTimeRequest) String() string

type GetBestStartTimeResponse

type GetBestStartTimeResponse struct {
	Minute int32 `protobuf:"varint,1,opt,name=minute" json:"minute,omitempty"`
	Hour   int32 `protobuf:"varint,2,opt,name=hour" json:"hour,omitempty"`
}

func (*GetBestStartTimeResponse) Descriptor

func (*GetBestStartTimeResponse) Descriptor() ([]byte, []int)

func (*GetBestStartTimeResponse) GetHour

func (m *GetBestStartTimeResponse) GetHour() int32

func (*GetBestStartTimeResponse) GetMinute

func (m *GetBestStartTimeResponse) GetMinute() int32

func (*GetBestStartTimeResponse) ProtoMessage

func (*GetBestStartTimeResponse) ProtoMessage()

func (*GetBestStartTimeResponse) Reset

func (m *GetBestStartTimeResponse) Reset()

func (*GetBestStartTimeResponse) String

func (m *GetBestStartTimeResponse) String() string

type GetFileByKeyRequest

type GetFileByKeyRequest struct {
	Key         string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
	StorageType string `protobuf:"bytes,2,opt,name=storage_type,json=storageType" json:"storage_type,omitempty"`
}

func (*GetFileByKeyRequest) Descriptor

func (*GetFileByKeyRequest) Descriptor() ([]byte, []int)

func (*GetFileByKeyRequest) GetKey

func (m *GetFileByKeyRequest) GetKey() string

func (*GetFileByKeyRequest) GetStorageType

func (m *GetFileByKeyRequest) GetStorageType() string

func (*GetFileByKeyRequest) ProtoMessage

func (*GetFileByKeyRequest) ProtoMessage()

func (*GetFileByKeyRequest) Reset

func (m *GetFileByKeyRequest) Reset()

func (*GetFileByKeyRequest) String

func (m *GetFileByKeyRequest) String() string

type GetKeysAtPointRequest

type GetKeysAtPointRequest struct {
	Db   string `protobuf:"bytes,1,opt,name=db" json:"db,omitempty"`
	From string `protobuf:"bytes,2,opt,name=from" json:"from,omitempty"`
}

func (*GetKeysAtPointRequest) Descriptor

func (*GetKeysAtPointRequest) Descriptor() ([]byte, []int)

func (*GetKeysAtPointRequest) GetDb

func (m *GetKeysAtPointRequest) GetDb() string

func (*GetKeysAtPointRequest) GetFrom

func (m *GetKeysAtPointRequest) GetFrom() string

func (*GetKeysAtPointRequest) ProtoMessage

func (*GetKeysAtPointRequest) ProtoMessage()

func (*GetKeysAtPointRequest) Reset

func (m *GetKeysAtPointRequest) Reset()

func (*GetKeysAtPointRequest) String

func (m *GetKeysAtPointRequest) String() string

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) ProtoMessage

func (*GetKeysAtPointResponse) ProtoMessage()

func (*GetKeysAtPointResponse) Reset

func (m *GetKeysAtPointResponse) Reset()

func (*GetKeysAtPointResponse) String

func (m *GetKeysAtPointResponse) String() string

type GetLatestToLSNRequest

type GetLatestToLSNRequest struct {
	Db string `protobuf:"bytes,1,opt,name=db" json:"db,omitempty"`
}

func (*GetLatestToLSNRequest) Descriptor

func (*GetLatestToLSNRequest) Descriptor() ([]byte, []int)

func (*GetLatestToLSNRequest) GetDb

func (m *GetLatestToLSNRequest) GetDb() string

func (*GetLatestToLSNRequest) ProtoMessage

func (*GetLatestToLSNRequest) ProtoMessage()

func (*GetLatestToLSNRequest) Reset

func (m *GetLatestToLSNRequest) Reset()

func (*GetLatestToLSNRequest) String

func (m *GetLatestToLSNRequest) String() string

type GetLatestToLSNResponse

type GetLatestToLSNResponse struct {
	Lsn string `protobuf:"bytes,1,opt,name=lsn" json:"lsn,omitempty"`
}

func (*GetLatestToLSNResponse) Descriptor

func (*GetLatestToLSNResponse) Descriptor() ([]byte, []int)

func (*GetLatestToLSNResponse) GetLsn

func (m *GetLatestToLSNResponse) GetLsn() string

func (*GetLatestToLSNResponse) ProtoMessage

func (*GetLatestToLSNResponse) ProtoMessage()

func (*GetLatestToLSNResponse) Reset

func (m *GetLatestToLSNResponse) Reset()

func (*GetLatestToLSNResponse) String

func (m *GetLatestToLSNResponse) String() string

type IncBackupContentStream added in v0.4.7

type IncBackupContentStream struct {
	Db      string `protobuf:"bytes,1,opt,name=db" json:"db,omitempty"`
	Lsn     string `protobuf:"bytes,2,opt,name=lsn" 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() string

func (*IncBackupContentStream) GetLsn added in v0.4.7

func (m *IncBackupContentStream) GetLsn() string

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) String added in v0.4.7

func (m *IncBackupContentStream) String() string

type PostCheckpointsRequest added in v0.4.7

type PostCheckpointsRequest struct {
	Key     string `protobuf:"bytes,1,opt,name=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() string

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) String added in v0.4.7

func (m *PostCheckpointsRequest) String() string

type PostCheckpointsResponse added in v0.4.7

type PostCheckpointsResponse struct {
	Message string `protobuf:"bytes,1,opt,name=message" 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) ProtoMessage added in v0.4.7

func (*PostCheckpointsResponse) ProtoMessage()

func (*PostCheckpointsResponse) Reset added in v0.4.7

func (m *PostCheckpointsResponse) Reset()

func (*PostCheckpointsResponse) String added in v0.4.7

func (m *PostCheckpointsResponse) String() string

type PurgePrevBackupRequest

type PurgePrevBackupRequest struct {
	Db string `protobuf:"bytes,1,opt,name=db" json:"db,omitempty"`
}

func (*PurgePrevBackupRequest) Descriptor

func (*PurgePrevBackupRequest) Descriptor() ([]byte, []int)

func (*PurgePrevBackupRequest) GetDb

func (m *PurgePrevBackupRequest) GetDb() string

func (*PurgePrevBackupRequest) ProtoMessage

func (*PurgePrevBackupRequest) ProtoMessage()

func (*PurgePrevBackupRequest) Reset

func (m *PurgePrevBackupRequest) Reset()

func (*PurgePrevBackupRequest) String

func (m *PurgePrevBackupRequest) String() string

type PurgePrevBackupResponse

type PurgePrevBackupResponse struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

func (*PurgePrevBackupResponse) Descriptor

func (*PurgePrevBackupResponse) Descriptor() ([]byte, []int)

func (*PurgePrevBackupResponse) GetMessage

func (m *PurgePrevBackupResponse) GetMessage() string

func (*PurgePrevBackupResponse) ProtoMessage

func (*PurgePrevBackupResponse) ProtoMessage()

func (*PurgePrevBackupResponse) Reset

func (m *PurgePrevBackupResponse) Reset()

func (*PurgePrevBackupResponse) String

func (m *PurgePrevBackupResponse) String() string

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