Documentation
¶
Overview ¶
Package polypb is a generated protocol buffer package.
It is generated from these files:
polypb/metadata.proto
It has these top-level messages:
DiskMeta NodeMeta BackupMeta
Index ¶
- Variables
- type BackupMeta
- func (*BackupMeta) Descriptor() ([]byte, []int)
- func (m *BackupMeta) GetBackupType() BackupType
- func (m *BackupMeta) GetBaseTimePoint() TimePoint
- func (m *BackupMeta) GetDb() DatabaseID
- func (m *BackupMeta) GetEndTime() *time.Time
- func (m *BackupMeta) GetFileSize() int64
- func (m *BackupMeta) GetHost() string
- func (m *BackupMeta) GetKey() Key
- func (m *BackupMeta) GetNodeId() NodeID
- func (m *BackupMeta) GetStorageType() StorageType
- func (m *BackupMeta) GetStoredTime() *time.Time
- func (m *BackupMeta) GetToLsn() string
- func (m *BackupMeta) Marshal() (dAtA []byte, err error)
- func (m *BackupMeta) MarshalTo(dAtA []byte) (int, error)
- func (*BackupMeta) ProtoMessage()
- func (m *BackupMeta) Reset()
- func (m *BackupMeta) Size() (n int)
- func (m *BackupMeta) String() string
- func (m *BackupMeta) Unmarshal(dAtA []byte) error
- type BackupMetaKey
- type BackupMetaSlice
- type BackupType
- type DatabaseID
- type DiskMeta
- func (*DiskMeta) Descriptor() ([]byte, []int)
- func (m *DiskMeta) GetAvail() uint64
- func (m *DiskMeta) GetTotal() uint64
- func (m *DiskMeta) Marshal() (dAtA []byte, err error)
- func (m *DiskMeta) MarshalTo(dAtA []byte) (int, error)
- func (*DiskMeta) ProtoMessage()
- func (m *DiskMeta) Reset()
- func (m *DiskMeta) Size() (n int)
- func (m *DiskMeta) String() string
- func (m *DiskMeta) Unmarshal(dAtA []byte) error
- type Key
- type NodeID
- type NodeMeta
- func (*NodeMeta) Descriptor() ([]byte, []int)
- func (m *NodeMeta) GetAddr() string
- func (m *NodeMeta) GetDisk() *DiskMeta
- func (m *NodeMeta) GetNodeId() NodeID
- func (m *NodeMeta) GetStoreDir() string
- func (m *NodeMeta) Marshal() (dAtA []byte, err error)
- func (m *NodeMeta) MarshalTo(dAtA []byte) (int, error)
- func (*NodeMeta) ProtoMessage()
- func (m *NodeMeta) Reset()
- func (m *NodeMeta) Size() (n int)
- func (m *NodeMeta) String() string
- func (m *NodeMeta) Unmarshal(dAtA []byte) error
- type NodeMetaKey
- type StorageType
- type TimePoint
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMetadata = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMetadata = fmt.Errorf("proto: integer overflow") )
View Source
var BackupType_name = map[int32]string{
0: "FULL",
1: "INC",
}
View Source
var BackupType_value = map[string]int32{
"FULL": 0,
"INC": 1,
}
View Source
var StorageType_name = map[int32]string{
0: "LOCAL",
}
View Source
var StorageType_value = map[string]int32{
"LOCAL": 0,
}
Functions ¶
This section is empty.
Types ¶
type BackupMeta ¶
type BackupMeta struct {
StoredTime *time.Time `protobuf:"bytes,1,opt,name=stored_time,json=storedTime,stdtime" json:"stored_time,omitempty"`
NodeId NodeID `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3,casttype=NodeID" json:"node_id,omitempty"`
Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"`
StorageType StorageType `protobuf:"varint,4,opt,name=storage_type,json=storageType,proto3,enum=polypb.StorageType" json:"storage_type,omitempty"`
EndTime *time.Time `protobuf:"bytes,5,opt,name=end_time,json=endTime,stdtime" json:"end_time,omitempty"`
FileSize int64 `protobuf:"varint,6,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"`
BackupType BackupType `protobuf:"varint,7,opt,name=backup_type,json=backupType,proto3,enum=polypb.BackupType" json:"backup_type,omitempty"`
Db DatabaseID `protobuf:"bytes,8,opt,name=db,proto3,casttype=DatabaseID" json:"db,omitempty"`
ToLsn string `protobuf:"bytes,9,opt,name=to_lsn,json=toLsn,proto3" json:"to_lsn,omitempty"`
Key Key `protobuf:"bytes,10,opt,name=key,proto3,casttype=Key" json:"key,omitempty"`
BaseTimePoint TimePoint `protobuf:"bytes,11,opt,name=base_time_point,json=baseTimePoint,proto3,casttype=TimePoint" json:"base_time_point,omitempty"`
}
BackupMeta is a metadata about a backup file.
func (*BackupMeta) Descriptor ¶
func (*BackupMeta) Descriptor() ([]byte, []int)
func (*BackupMeta) GetBackupType ¶
func (m *BackupMeta) GetBackupType() BackupType
func (*BackupMeta) GetBaseTimePoint ¶
func (m *BackupMeta) GetBaseTimePoint() TimePoint
func (*BackupMeta) GetDb ¶
func (m *BackupMeta) GetDb() DatabaseID
func (*BackupMeta) GetEndTime ¶
func (m *BackupMeta) GetEndTime() *time.Time
func (*BackupMeta) GetFileSize ¶
func (m *BackupMeta) GetFileSize() int64
func (*BackupMeta) GetHost ¶
func (m *BackupMeta) GetHost() string
func (*BackupMeta) GetKey ¶
func (m *BackupMeta) GetKey() Key
func (*BackupMeta) GetNodeId ¶
func (m *BackupMeta) GetNodeId() NodeID
func (*BackupMeta) GetStorageType ¶
func (m *BackupMeta) GetStorageType() StorageType
func (*BackupMeta) GetStoredTime ¶
func (m *BackupMeta) GetStoredTime() *time.Time
func (*BackupMeta) GetToLsn ¶
func (m *BackupMeta) GetToLsn() string
func (*BackupMeta) Marshal ¶
func (m *BackupMeta) Marshal() (dAtA []byte, err error)
func (*BackupMeta) ProtoMessage ¶
func (*BackupMeta) ProtoMessage()
func (*BackupMeta) Reset ¶
func (m *BackupMeta) Reset()
func (*BackupMeta) Size ¶
func (m *BackupMeta) Size() (n int)
func (*BackupMeta) String ¶
func (m *BackupMeta) String() string
func (*BackupMeta) Unmarshal ¶
func (m *BackupMeta) Unmarshal(dAtA []byte) error
type BackupMetaKey ¶
type BackupMetaKey Key
type BackupMetaSlice ¶
type BackupMetaSlice []*BackupMeta
func (BackupMetaSlice) Sort ¶
func (s BackupMetaSlice) Sort()
type BackupType ¶
type BackupType int32
BackupType
const ( BackupType_FULL BackupType = 0 BackupType_INC BackupType = 1 )
func (BackupType) EnumDescriptor ¶
func (BackupType) EnumDescriptor() ([]byte, []int)
func (BackupType) String ¶
func (x BackupType) String() string
type DatabaseID ¶
type DatabaseID []byte
func (*DatabaseID) Set ¶
func (d *DatabaseID) Set(v string) error
func (*DatabaseID) String ¶
func (d *DatabaseID) String() string
func (*DatabaseID) Type ¶
func (d *DatabaseID) Type() string
type DiskMeta ¶
type DiskMeta struct {
Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
Avail uint64 `protobuf:"varint,2,opt,name=avail,proto3" json:"avail,omitempty"`
}
DiskMeta is a metadata about a disk.
func (*DiskMeta) Descriptor ¶
func (*DiskMeta) ProtoMessage ¶
func (*DiskMeta) ProtoMessage()
type NodeMeta ¶
type NodeMeta struct {
Disk *DiskMeta `protobuf:"bytes,1,opt,name=disk" json:"disk,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
StoreDir string `protobuf:"bytes,3,opt,name=store_dir,json=storeDir,proto3" json:"store_dir,omitempty"`
NodeId NodeID `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3,casttype=NodeID" json:"node_id,omitempty"`
}
NodeMeta is a metadata about a node.
func (*NodeMeta) Descriptor ¶
func (*NodeMeta) GetStoreDir ¶
func (*NodeMeta) ProtoMessage ¶
func (*NodeMeta) ProtoMessage()
type NodeMetaKey ¶
type NodeMetaKey Key
type StorageType ¶
type StorageType int32
StorageType
const (
StorageType_LOCAL StorageType = 0
)
func (StorageType) EnumDescriptor ¶
func (StorageType) EnumDescriptor() ([]byte, []int)
func (StorageType) String ¶
func (x StorageType) String() string
Click to show internal directories.
Click to hide internal directories.