metapb

package
v0.0.0-...-a9a2a47 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMetapb = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMetapb   = fmt.Errorf("proto: integer overflow")
)
View Source
var StoreState_name = map[int32]string{
	0: "UP",
	1: "Down",
	2: "Tombstone",
}
View Source
var StoreState_value = map[string]int32{
	"UP":        0,
	"Down":      1,
	"Tombstone": 2,
}

Functions

This section is empty.

Types

type Cell

type Cell struct {
	ID                   uint64    `protobuf:"varint,1,opt,name=id" json:"id"`
	Start                []byte    `protobuf:"bytes,2,opt,name=start" json:"start,omitempty"`
	End                  []byte    `protobuf:"bytes,3,opt,name=end" json:"end,omitempty"`
	Epoch                CellEpoch `protobuf:"bytes,4,opt,name=epoch" json:"epoch"`
	Peers                []*Peer   `protobuf:"bytes,5,rep,name=peers" json:"peers,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*Cell) Descriptor

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

func (*Cell) GetEnd

func (m *Cell) GetEnd() []byte

func (*Cell) GetEpoch

func (m *Cell) GetEpoch() CellEpoch

func (*Cell) GetID

func (m *Cell) GetID() uint64

func (*Cell) GetPeers

func (m *Cell) GetPeers() []*Peer

func (*Cell) GetStart

func (m *Cell) GetStart() []byte

func (*Cell) Marshal

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

func (*Cell) MarshalTo

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

func (*Cell) MarshalToSizedBuffer

func (m *Cell) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Cell) ProtoMessage

func (*Cell) ProtoMessage()

func (*Cell) Reset

func (m *Cell) Reset()

func (*Cell) Size

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

func (*Cell) String

func (m *Cell) String() string

func (*Cell) Unmarshal

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

func (*Cell) XXX_DiscardUnknown

func (m *Cell) XXX_DiscardUnknown()

func (*Cell) XXX_Marshal

func (m *Cell) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Cell) XXX_Merge

func (m *Cell) XXX_Merge(src proto.Message)

func (*Cell) XXX_Size

func (m *Cell) XXX_Size() int

func (*Cell) XXX_Unmarshal

func (m *Cell) XXX_Unmarshal(b []byte) error

type CellEpoch

type CellEpoch struct {
	ConfVer              uint64   `protobuf:"varint,1,opt,name=confVer" json:"confVer"`
	CellVer              uint64   `protobuf:"varint,2,opt,name=cellVer" json:"cellVer"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CellEpoch) Descriptor

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

func (*CellEpoch) GetCellVer

func (m *CellEpoch) GetCellVer() uint64

func (*CellEpoch) GetConfVer

func (m *CellEpoch) GetConfVer() uint64

func (*CellEpoch) Marshal

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

func (*CellEpoch) MarshalTo

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

func (*CellEpoch) MarshalToSizedBuffer

func (m *CellEpoch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CellEpoch) ProtoMessage

func (*CellEpoch) ProtoMessage()

func (*CellEpoch) Reset

func (m *CellEpoch) Reset()

func (*CellEpoch) Size

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

func (*CellEpoch) String

func (m *CellEpoch) String() string

func (*CellEpoch) Unmarshal

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

func (*CellEpoch) XXX_DiscardUnknown

func (m *CellEpoch) XXX_DiscardUnknown()

func (*CellEpoch) XXX_Marshal

func (m *CellEpoch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CellEpoch) XXX_Merge

func (m *CellEpoch) XXX_Merge(src proto.Message)

func (*CellEpoch) XXX_Size

func (m *CellEpoch) XXX_Size() int

func (*CellEpoch) XXX_Unmarshal

func (m *CellEpoch) XXX_Unmarshal(b []byte) error

type Cluster

type Cluster struct {
	ID                   uint64   `protobuf:"varint,1,opt,name=id" json:"id"`
	MaxReplicas          uint32   `protobuf:"varint,2,opt,name=maxReplicas" json:"maxReplicas"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Cluster) Descriptor

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

func (*Cluster) GetID

func (m *Cluster) GetID() uint64

func (*Cluster) GetMaxReplicas

func (m *Cluster) GetMaxReplicas() uint32

func (*Cluster) Marshal

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

func (*Cluster) MarshalTo

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

func (*Cluster) MarshalToSizedBuffer

func (m *Cluster) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Cluster) ProtoMessage

func (*Cluster) ProtoMessage()

func (*Cluster) Reset

func (m *Cluster) Reset()

func (*Cluster) Size

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

func (*Cluster) String

func (m *Cluster) String() string

func (*Cluster) Unmarshal

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

func (*Cluster) XXX_DiscardUnknown

func (m *Cluster) XXX_DiscardUnknown()

func (*Cluster) XXX_Marshal

func (m *Cluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Cluster) XXX_Merge

func (m *Cluster) XXX_Merge(src proto.Message)

func (*Cluster) XXX_Size

func (m *Cluster) XXX_Size() int

func (*Cluster) XXX_Unmarshal

func (m *Cluster) XXX_Unmarshal(b []byte) error

type Label

type Label struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key" json:"key"`
	Value                string   `protobuf:"bytes,2,opt,name=value" json:"value"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Label) Descriptor

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

func (*Label) GetKey

func (m *Label) GetKey() string

func (*Label) GetValue

func (m *Label) GetValue() string

func (*Label) Marshal

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

func (*Label) MarshalTo

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

func (*Label) MarshalToSizedBuffer

func (m *Label) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Label) ProtoMessage

func (*Label) ProtoMessage()

func (*Label) Reset

func (m *Label) Reset()

func (*Label) Size

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

func (*Label) String

func (m *Label) String() string

func (*Label) Unmarshal

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

func (*Label) XXX_DiscardUnknown

func (m *Label) XXX_DiscardUnknown()

func (*Label) XXX_Marshal

func (m *Label) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Label) XXX_Merge

func (m *Label) XXX_Merge(src proto.Message)

func (*Label) XXX_Size

func (m *Label) XXX_Size() int

func (*Label) XXX_Unmarshal

func (m *Label) XXX_Unmarshal(b []byte) error

type Peer

type Peer struct {
	ID                   uint64   `protobuf:"varint,1,opt,name=id" json:"id"`
	StoreID              uint64   `protobuf:"varint,2,opt,name=storeID" json:"storeID"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Peer) Descriptor

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

func (*Peer) GetID

func (m *Peer) GetID() uint64

func (*Peer) GetStoreID

func (m *Peer) GetStoreID() uint64

func (*Peer) Marshal

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

func (*Peer) MarshalTo

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

func (*Peer) MarshalToSizedBuffer

func (m *Peer) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) Reset

func (m *Peer) Reset()

func (*Peer) Size

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

func (*Peer) String

func (m *Peer) String() string

func (*Peer) Unmarshal

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

func (*Peer) XXX_DiscardUnknown

func (m *Peer) XXX_DiscardUnknown()

func (*Peer) XXX_Marshal

func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Peer) XXX_Merge

func (m *Peer) XXX_Merge(src proto.Message)

func (*Peer) XXX_Size

func (m *Peer) XXX_Size() int

func (*Peer) XXX_Unmarshal

func (m *Peer) XXX_Unmarshal(b []byte) error

type Store

type Store struct {
	ID                   uint64     `protobuf:"varint,1,opt,name=id" json:"id"`
	Address              string     `protobuf:"bytes,2,opt,name=address" json:"address"`
	Lables               []Label    `protobuf:"bytes,3,rep,name=lables" json:"lables"`
	State                StoreState `protobuf:"varint,4,opt,name=state,enum=metapb.StoreState" json:"state"`
	ClientAddress        string     `protobuf:"bytes,5,opt,name=clientAddress" json:"clientAddress"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*Store) Descriptor

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

func (*Store) GetAddress

func (m *Store) GetAddress() string

func (*Store) GetClientAddress

func (m *Store) GetClientAddress() string

func (*Store) GetID

func (m *Store) GetID() uint64

func (*Store) GetLables

func (m *Store) GetLables() []Label

func (*Store) GetState

func (m *Store) GetState() StoreState

func (*Store) Marshal

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

func (*Store) MarshalTo

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

func (*Store) MarshalToSizedBuffer

func (m *Store) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Store) ProtoMessage

func (*Store) ProtoMessage()

func (*Store) Reset

func (m *Store) Reset()

func (*Store) Size

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

func (*Store) String

func (m *Store) String() string

func (*Store) Unmarshal

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

func (*Store) XXX_DiscardUnknown

func (m *Store) XXX_DiscardUnknown()

func (*Store) XXX_Marshal

func (m *Store) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Store) XXX_Merge

func (m *Store) XXX_Merge(src proto.Message)

func (*Store) XXX_Size

func (m *Store) XXX_Size() int

func (*Store) XXX_Unmarshal

func (m *Store) XXX_Unmarshal(b []byte) error

type StoreState

type StoreState int32
const (
	UP        StoreState = 0
	Down      StoreState = 1
	Tombstone StoreState = 2
)

func (StoreState) Enum

func (x StoreState) Enum() *StoreState

func (StoreState) EnumDescriptor

func (StoreState) EnumDescriptor() ([]byte, []int)

func (StoreState) String

func (x StoreState) String() string

func (*StoreState) UnmarshalJSON

func (x *StoreState) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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