polypb

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: 11 Imported by: 8

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

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

func (m *BackupMeta) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*DiskMeta) GetAvail

func (m *DiskMeta) GetAvail() uint64

func (*DiskMeta) GetTotal

func (m *DiskMeta) GetTotal() uint64

func (*DiskMeta) Marshal

func (m *DiskMeta) Marshal() (dAtA []byte, err error)

func (*DiskMeta) MarshalTo

func (m *DiskMeta) MarshalTo(dAtA []byte) (int, error)

func (*DiskMeta) ProtoMessage

func (*DiskMeta) ProtoMessage()

func (*DiskMeta) Reset

func (m *DiskMeta) Reset()

func (*DiskMeta) Size

func (m *DiskMeta) Size() (n int)

func (*DiskMeta) String

func (m *DiskMeta) String() string

func (*DiskMeta) Unmarshal

func (m *DiskMeta) Unmarshal(dAtA []byte) error

type Key

type Key []byte

type NodeID

type NodeID []byte

func (*NodeID) Set

func (d *NodeID) Set(v string) error

func (*NodeID) String

func (d *NodeID) String() string

func (*NodeID) Type

func (d *NodeID) Type() string

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) Descriptor() ([]byte, []int)

func (*NodeMeta) GetAddr

func (m *NodeMeta) GetAddr() string

func (*NodeMeta) GetDisk

func (m *NodeMeta) GetDisk() *DiskMeta

func (*NodeMeta) GetNodeId

func (m *NodeMeta) GetNodeId() NodeID

func (*NodeMeta) GetStoreDir

func (m *NodeMeta) GetStoreDir() string

func (*NodeMeta) Marshal

func (m *NodeMeta) Marshal() (dAtA []byte, err error)

func (*NodeMeta) MarshalTo

func (m *NodeMeta) MarshalTo(dAtA []byte) (int, error)

func (*NodeMeta) ProtoMessage

func (*NodeMeta) ProtoMessage()

func (*NodeMeta) Reset

func (m *NodeMeta) Reset()

func (*NodeMeta) Size

func (m *NodeMeta) Size() (n int)

func (*NodeMeta) String

func (m *NodeMeta) String() string

func (*NodeMeta) Unmarshal

func (m *NodeMeta) Unmarshal(dAtA []byte) error

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

type TimePoint

type TimePoint []byte

func NewTimePoint

func NewTimePoint(t time.Time) TimePoint

func (TimePoint) AsTime

func (t TimePoint) AsTime() time.Time

func (TimePoint) Equal

func (t TimePoint) Equal(ot TimePoint) bool

Jump to

Keyboard shortcuts

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