Documentation
¶
Overview ¶
Package mspb is a generated protocol buffer package.
It is generated from these files:
mspb.proto
It has these top-level messages:
MSLeader GetMSLeaderRequest GetMSLeaderResponse PeerStatus RangeStats RangeHeartbeatRequest RangeHeartbeatResponse NodeStats NodeHeartbeatRequest NodeHeartbeatResponse AskSplitRequest AskSplitResponse ReportSplitRequest ReportSplitResponse NodeLoginRequest NodeLoginResponse GetNodeIdRequest GetNodeIdResponse GetRouteRequest GetRouteResponse GetNodeRequest GetNodeResponse GetDBRequest GetDBResponse GetTableRequest GetTableByIdRequest GetTableResponse GetTableByIdResponse GetColumnsRequest GetColumnsResponse GetColumnByNameRequest GetColumnByNameResponse GetColumnByIdRequest GetColumnByIdResponse AddColumnRequest AddColumnResponse TruncateTableRequest TruncateTableResponse CreateDatabaseRequest CreateDatabaseResponse CreateTableRequest CreateTableResponse RequestHeader ResponseHeader LeaderHint NoLeader Error
Index ¶
- Variables
- func RegisterMsServerServer(s *grpc.Server, srv MsServerServer)
- type AddColumnRequest
- func (*AddColumnRequest) Descriptor() ([]byte, []int)
- func (m *AddColumnRequest) GetColumns() []*metapb.Column
- func (m *AddColumnRequest) GetDbId() uint64
- func (m *AddColumnRequest) GetHeader() *RequestHeader
- func (m *AddColumnRequest) GetTableId() uint64
- func (m *AddColumnRequest) Marshal() (dAtA []byte, err error)
- func (m *AddColumnRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AddColumnRequest) ProtoMessage()
- func (m *AddColumnRequest) Reset()
- func (m *AddColumnRequest) Size() (n int)
- func (m *AddColumnRequest) String() string
- func (m *AddColumnRequest) Unmarshal(dAtA []byte) error
- type AddColumnResponse
- func (*AddColumnResponse) Descriptor() ([]byte, []int)
- func (m *AddColumnResponse) GetColumns() []*metapb.Column
- func (m *AddColumnResponse) GetHeader() *ResponseHeader
- func (m *AddColumnResponse) Marshal() (dAtA []byte, err error)
- func (m *AddColumnResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AddColumnResponse) ProtoMessage()
- func (m *AddColumnResponse) Reset()
- func (m *AddColumnResponse) Size() (n int)
- func (m *AddColumnResponse) String() string
- func (m *AddColumnResponse) Unmarshal(dAtA []byte) error
- type AskSplitRequest
- func (*AskSplitRequest) Descriptor() ([]byte, []int)
- func (m *AskSplitRequest) GetHeader() *RequestHeader
- func (m *AskSplitRequest) GetRange() *metapb.Range
- func (m *AskSplitRequest) GetSplitKey() []byte
- func (m *AskSplitRequest) Marshal() (dAtA []byte, err error)
- func (m *AskSplitRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AskSplitRequest) ProtoMessage()
- func (m *AskSplitRequest) Reset()
- func (m *AskSplitRequest) Size() (n int)
- func (m *AskSplitRequest) String() string
- func (m *AskSplitRequest) Unmarshal(dAtA []byte) error
- type AskSplitResponse
- func (*AskSplitResponse) Descriptor() ([]byte, []int)
- func (m *AskSplitResponse) GetHeader() *ResponseHeader
- func (m *AskSplitResponse) GetNewPeerIds() []uint64
- func (m *AskSplitResponse) GetNewRangeId() uint64
- func (m *AskSplitResponse) GetRange() *metapb.Range
- func (m *AskSplitResponse) GetSplitKey() []byte
- func (m *AskSplitResponse) Marshal() (dAtA []byte, err error)
- func (m *AskSplitResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AskSplitResponse) ProtoMessage()
- func (m *AskSplitResponse) Reset()
- func (m *AskSplitResponse) Size() (n int)
- func (m *AskSplitResponse) String() string
- func (m *AskSplitResponse) Unmarshal(dAtA []byte) error
- type CreateDatabaseRequest
- func (*CreateDatabaseRequest) Descriptor() ([]byte, []int)
- func (m *CreateDatabaseRequest) GetDbName() string
- func (m *CreateDatabaseRequest) GetHeader() *RequestHeader
- func (m *CreateDatabaseRequest) Marshal() (dAtA []byte, err error)
- func (m *CreateDatabaseRequest) MarshalTo(dAtA []byte) (int, error)
- func (*CreateDatabaseRequest) ProtoMessage()
- func (m *CreateDatabaseRequest) Reset()
- func (m *CreateDatabaseRequest) Size() (n int)
- func (m *CreateDatabaseRequest) String() string
- func (m *CreateDatabaseRequest) Unmarshal(dAtA []byte) error
- type CreateDatabaseResponse
- func (*CreateDatabaseResponse) Descriptor() ([]byte, []int)
- func (m *CreateDatabaseResponse) GetHeader() *ResponseHeader
- func (m *CreateDatabaseResponse) Marshal() (dAtA []byte, err error)
- func (m *CreateDatabaseResponse) MarshalTo(dAtA []byte) (int, error)
- func (*CreateDatabaseResponse) ProtoMessage()
- func (m *CreateDatabaseResponse) Reset()
- func (m *CreateDatabaseResponse) Size() (n int)
- func (m *CreateDatabaseResponse) String() string
- func (m *CreateDatabaseResponse) Unmarshal(dAtA []byte) error
- type CreateTableRequest
- func (*CreateTableRequest) Descriptor() ([]byte, []int)
- func (m *CreateTableRequest) GetDbName() string
- func (m *CreateTableRequest) GetHeader() *RequestHeader
- func (m *CreateTableRequest) GetProperties() string
- func (m *CreateTableRequest) GetTableName() string
- func (m *CreateTableRequest) Marshal() (dAtA []byte, err error)
- func (m *CreateTableRequest) MarshalTo(dAtA []byte) (int, error)
- func (*CreateTableRequest) ProtoMessage()
- func (m *CreateTableRequest) Reset()
- func (m *CreateTableRequest) Size() (n int)
- func (m *CreateTableRequest) String() string
- func (m *CreateTableRequest) Unmarshal(dAtA []byte) error
- type CreateTableResponse
- func (*CreateTableResponse) Descriptor() ([]byte, []int)
- func (m *CreateTableResponse) GetHeader() *ResponseHeader
- func (m *CreateTableResponse) Marshal() (dAtA []byte, err error)
- func (m *CreateTableResponse) MarshalTo(dAtA []byte) (int, error)
- func (*CreateTableResponse) ProtoMessage()
- func (m *CreateTableResponse) Reset()
- func (m *CreateTableResponse) Size() (n int)
- func (m *CreateTableResponse) String() string
- func (m *CreateTableResponse) Unmarshal(dAtA []byte) error
- type Error
- func (*Error) Descriptor() ([]byte, []int)
- func (m *Error) GetNewLeader() *LeaderHint
- func (m *Error) GetNoLeader() *NoLeader
- func (m *Error) Marshal() (dAtA []byte, err error)
- func (m *Error) MarshalTo(dAtA []byte) (int, error)
- func (*Error) ProtoMessage()
- func (m *Error) Reset()
- func (m *Error) Size() (n int)
- func (m *Error) String() string
- func (m *Error) Unmarshal(dAtA []byte) error
- type GetColumnByIdRequest
- func (*GetColumnByIdRequest) Descriptor() ([]byte, []int)
- func (m *GetColumnByIdRequest) GetColId() uint64
- func (m *GetColumnByIdRequest) GetDbId() uint64
- func (m *GetColumnByIdRequest) GetHeader() *RequestHeader
- func (m *GetColumnByIdRequest) GetTableId() uint64
- func (m *GetColumnByIdRequest) Marshal() (dAtA []byte, err error)
- func (m *GetColumnByIdRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetColumnByIdRequest) ProtoMessage()
- func (m *GetColumnByIdRequest) Reset()
- func (m *GetColumnByIdRequest) Size() (n int)
- func (m *GetColumnByIdRequest) String() string
- func (m *GetColumnByIdRequest) Unmarshal(dAtA []byte) error
- type GetColumnByIdResponse
- func (*GetColumnByIdResponse) Descriptor() ([]byte, []int)
- func (m *GetColumnByIdResponse) GetColumn() *metapb.Column
- func (m *GetColumnByIdResponse) GetHeader() *ResponseHeader
- func (m *GetColumnByIdResponse) Marshal() (dAtA []byte, err error)
- func (m *GetColumnByIdResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GetColumnByIdResponse) ProtoMessage()
- func (m *GetColumnByIdResponse) Reset()
- func (m *GetColumnByIdResponse) Size() (n int)
- func (m *GetColumnByIdResponse) String() string
- func (m *GetColumnByIdResponse) Unmarshal(dAtA []byte) error
- type GetColumnByNameRequest
- func (*GetColumnByNameRequest) Descriptor() ([]byte, []int)
- func (m *GetColumnByNameRequest) GetColName() string
- func (m *GetColumnByNameRequest) GetDbId() uint64
- func (m *GetColumnByNameRequest) GetHeader() *RequestHeader
- func (m *GetColumnByNameRequest) GetTableId() uint64
- func (m *GetColumnByNameRequest) Marshal() (dAtA []byte, err error)
- func (m *GetColumnByNameRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetColumnByNameRequest) ProtoMessage()
- func (m *GetColumnByNameRequest) Reset()
- func (m *GetColumnByNameRequest) Size() (n int)
- func (m *GetColumnByNameRequest) String() string
- func (m *GetColumnByNameRequest) Unmarshal(dAtA []byte) error
- type GetColumnByNameResponse
- func (*GetColumnByNameResponse) Descriptor() ([]byte, []int)
- func (m *GetColumnByNameResponse) GetColumn() *metapb.Column
- func (m *GetColumnByNameResponse) GetHeader() *ResponseHeader
- func (m *GetColumnByNameResponse) Marshal() (dAtA []byte, err error)
- func (m *GetColumnByNameResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GetColumnByNameResponse) ProtoMessage()
- func (m *GetColumnByNameResponse) Reset()
- func (m *GetColumnByNameResponse) Size() (n int)
- func (m *GetColumnByNameResponse) String() string
- func (m *GetColumnByNameResponse) Unmarshal(dAtA []byte) error
- type GetColumnsRequest
- func (*GetColumnsRequest) Descriptor() ([]byte, []int)
- func (m *GetColumnsRequest) GetDbId() uint64
- func (m *GetColumnsRequest) GetHeader() *RequestHeader
- func (m *GetColumnsRequest) GetTableId() uint64
- func (m *GetColumnsRequest) Marshal() (dAtA []byte, err error)
- func (m *GetColumnsRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetColumnsRequest) ProtoMessage()
- func (m *GetColumnsRequest) Reset()
- func (m *GetColumnsRequest) Size() (n int)
- func (m *GetColumnsRequest) String() string
- func (m *GetColumnsRequest) Unmarshal(dAtA []byte) error
- type GetColumnsResponse
- func (*GetColumnsResponse) Descriptor() ([]byte, []int)
- func (m *GetColumnsResponse) GetColumns() []*metapb.Column
- func (m *GetColumnsResponse) GetHeader() *ResponseHeader
- func (m *GetColumnsResponse) Marshal() (dAtA []byte, err error)
- func (m *GetColumnsResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GetColumnsResponse) ProtoMessage()
- func (m *GetColumnsResponse) Reset()
- func (m *GetColumnsResponse) Size() (n int)
- func (m *GetColumnsResponse) String() string
- func (m *GetColumnsResponse) Unmarshal(dAtA []byte) error
- type GetDBRequest
- func (*GetDBRequest) Descriptor() ([]byte, []int)
- func (m *GetDBRequest) GetHeader() *RequestHeader
- func (m *GetDBRequest) GetName() string
- func (m *GetDBRequest) Marshal() (dAtA []byte, err error)
- func (m *GetDBRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetDBRequest) ProtoMessage()
- func (m *GetDBRequest) Reset()
- func (m *GetDBRequest) Size() (n int)
- func (m *GetDBRequest) String() string
- func (m *GetDBRequest) Unmarshal(dAtA []byte) error
- type GetDBResponse
- func (*GetDBResponse) Descriptor() ([]byte, []int)
- func (m *GetDBResponse) GetDb() *metapb.DataBase
- func (m *GetDBResponse) GetHeader() *ResponseHeader
- func (m *GetDBResponse) Marshal() (dAtA []byte, err error)
- func (m *GetDBResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GetDBResponse) ProtoMessage()
- func (m *GetDBResponse) Reset()
- func (m *GetDBResponse) Size() (n int)
- func (m *GetDBResponse) String() string
- func (m *GetDBResponse) Unmarshal(dAtA []byte) error
- type GetMSLeaderRequest
- func (*GetMSLeaderRequest) Descriptor() ([]byte, []int)
- func (m *GetMSLeaderRequest) GetHeader() *RequestHeader
- func (m *GetMSLeaderRequest) Marshal() (dAtA []byte, err error)
- func (m *GetMSLeaderRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetMSLeaderRequest) ProtoMessage()
- func (m *GetMSLeaderRequest) Reset()
- func (m *GetMSLeaderRequest) Size() (n int)
- func (m *GetMSLeaderRequest) String() string
- func (m *GetMSLeaderRequest) Unmarshal(dAtA []byte) error
- type GetMSLeaderResponse
- func (*GetMSLeaderResponse) Descriptor() ([]byte, []int)
- func (m *GetMSLeaderResponse) GetHeader() *ResponseHeader
- func (m *GetMSLeaderResponse) GetLeader() *MSLeader
- func (m *GetMSLeaderResponse) Marshal() (dAtA []byte, err error)
- func (m *GetMSLeaderResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GetMSLeaderResponse) ProtoMessage()
- func (m *GetMSLeaderResponse) Reset()
- func (m *GetMSLeaderResponse) Size() (n int)
- func (m *GetMSLeaderResponse) String() string
- func (m *GetMSLeaderResponse) Unmarshal(dAtA []byte) error
- type GetNodeIdRequest
- func (*GetNodeIdRequest) Descriptor() ([]byte, []int)
- func (m *GetNodeIdRequest) GetHeader() *RequestHeader
- func (m *GetNodeIdRequest) GetHttpPort() uint32
- func (m *GetNodeIdRequest) GetRaftPort() uint32
- func (m *GetNodeIdRequest) GetServerPort() uint32
- func (m *GetNodeIdRequest) GetVersion() string
- func (m *GetNodeIdRequest) Marshal() (dAtA []byte, err error)
- func (m *GetNodeIdRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetNodeIdRequest) ProtoMessage()
- func (m *GetNodeIdRequest) Reset()
- func (m *GetNodeIdRequest) Size() (n int)
- func (m *GetNodeIdRequest) String() string
- func (m *GetNodeIdRequest) Unmarshal(dAtA []byte) error
- type GetNodeIdResponse
- func (*GetNodeIdResponse) Descriptor() ([]byte, []int)
- func (m *GetNodeIdResponse) GetClearup() bool
- func (m *GetNodeIdResponse) GetHeader() *ResponseHeader
- func (m *GetNodeIdResponse) GetNodeId() uint64
- func (m *GetNodeIdResponse) Marshal() (dAtA []byte, err error)
- func (m *GetNodeIdResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GetNodeIdResponse) ProtoMessage()
- func (m *GetNodeIdResponse) Reset()
- func (m *GetNodeIdResponse) Size() (n int)
- func (m *GetNodeIdResponse) String() string
- func (m *GetNodeIdResponse) Unmarshal(dAtA []byte) error
- type GetNodeRequest
- func (*GetNodeRequest) Descriptor() ([]byte, []int)
- func (m *GetNodeRequest) GetHeader() *RequestHeader
- func (m *GetNodeRequest) GetId() uint64
- func (m *GetNodeRequest) Marshal() (dAtA []byte, err error)
- func (m *GetNodeRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetNodeRequest) ProtoMessage()
- func (m *GetNodeRequest) Reset()
- func (m *GetNodeRequest) Size() (n int)
- func (m *GetNodeRequest) String() string
- func (m *GetNodeRequest) Unmarshal(dAtA []byte) error
- type GetNodeResponse
- func (*GetNodeResponse) Descriptor() ([]byte, []int)
- func (m *GetNodeResponse) GetHeader() *ResponseHeader
- func (m *GetNodeResponse) GetNode() *metapb.Node
- func (m *GetNodeResponse) Marshal() (dAtA []byte, err error)
- func (m *GetNodeResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GetNodeResponse) ProtoMessage()
- func (m *GetNodeResponse) Reset()
- func (m *GetNodeResponse) Size() (n int)
- func (m *GetNodeResponse) String() string
- func (m *GetNodeResponse) Unmarshal(dAtA []byte) error
- type GetRouteRequest
- func (*GetRouteRequest) Descriptor() ([]byte, []int)
- func (m *GetRouteRequest) GetDbId() uint64
- func (m *GetRouteRequest) GetHeader() *RequestHeader
- func (m *GetRouteRequest) GetKey() []byte
- func (m *GetRouteRequest) GetTableId() uint64
- func (m *GetRouteRequest) Marshal() (dAtA []byte, err error)
- func (m *GetRouteRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetRouteRequest) ProtoMessage()
- func (m *GetRouteRequest) Reset()
- func (m *GetRouteRequest) Size() (n int)
- func (m *GetRouteRequest) String() string
- func (m *GetRouteRequest) Unmarshal(dAtA []byte) error
- type GetRouteResponse
- func (*GetRouteResponse) Descriptor() ([]byte, []int)
- func (m *GetRouteResponse) GetHeader() *ResponseHeader
- func (m *GetRouteResponse) GetRoutes() []*metapb.Route
- func (m *GetRouteResponse) Marshal() (dAtA []byte, err error)
- func (m *GetRouteResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GetRouteResponse) ProtoMessage()
- func (m *GetRouteResponse) Reset()
- func (m *GetRouteResponse) Size() (n int)
- func (m *GetRouteResponse) String() string
- func (m *GetRouteResponse) Unmarshal(dAtA []byte) error
- type GetTableByIdRequest
- func (*GetTableByIdRequest) Descriptor() ([]byte, []int)
- func (m *GetTableByIdRequest) GetDbId() uint64
- func (m *GetTableByIdRequest) GetHeader() *RequestHeader
- func (m *GetTableByIdRequest) GetTableId() uint64
- func (m *GetTableByIdRequest) Marshal() (dAtA []byte, err error)
- func (m *GetTableByIdRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetTableByIdRequest) ProtoMessage()
- func (m *GetTableByIdRequest) Reset()
- func (m *GetTableByIdRequest) Size() (n int)
- func (m *GetTableByIdRequest) String() string
- func (m *GetTableByIdRequest) Unmarshal(dAtA []byte) error
- type GetTableByIdResponse
- func (*GetTableByIdResponse) Descriptor() ([]byte, []int)
- func (m *GetTableByIdResponse) GetHeader() *ResponseHeader
- func (m *GetTableByIdResponse) GetTable() *metapb.Table
- func (m *GetTableByIdResponse) Marshal() (dAtA []byte, err error)
- func (m *GetTableByIdResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GetTableByIdResponse) ProtoMessage()
- func (m *GetTableByIdResponse) Reset()
- func (m *GetTableByIdResponse) Size() (n int)
- func (m *GetTableByIdResponse) String() string
- func (m *GetTableByIdResponse) Unmarshal(dAtA []byte) error
- type GetTableRequest
- func (*GetTableRequest) Descriptor() ([]byte, []int)
- func (m *GetTableRequest) GetDbName() string
- func (m *GetTableRequest) GetHeader() *RequestHeader
- func (m *GetTableRequest) GetTableName() string
- func (m *GetTableRequest) Marshal() (dAtA []byte, err error)
- func (m *GetTableRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetTableRequest) ProtoMessage()
- func (m *GetTableRequest) Reset()
- func (m *GetTableRequest) Size() (n int)
- func (m *GetTableRequest) String() string
- func (m *GetTableRequest) Unmarshal(dAtA []byte) error
- type GetTableResponse
- func (*GetTableResponse) Descriptor() ([]byte, []int)
- func (m *GetTableResponse) GetHeader() *ResponseHeader
- func (m *GetTableResponse) GetTable() *metapb.Table
- func (m *GetTableResponse) Marshal() (dAtA []byte, err error)
- func (m *GetTableResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GetTableResponse) ProtoMessage()
- func (m *GetTableResponse) Reset()
- func (m *GetTableResponse) Size() (n int)
- func (m *GetTableResponse) String() string
- func (m *GetTableResponse) Unmarshal(dAtA []byte) error
- type LeaderHint
- func (*LeaderHint) Descriptor() ([]byte, []int)
- func (m *LeaderHint) GetAddress() string
- func (m *LeaderHint) GetTerm() uint64
- func (m *LeaderHint) Marshal() (dAtA []byte, err error)
- func (m *LeaderHint) MarshalTo(dAtA []byte) (int, error)
- func (*LeaderHint) ProtoMessage()
- func (m *LeaderHint) Reset()
- func (m *LeaderHint) Size() (n int)
- func (m *LeaderHint) String() string
- func (m *LeaderHint) Unmarshal(dAtA []byte) error
- type MSLeader
- func (*MSLeader) Descriptor() ([]byte, []int)
- func (m *MSLeader) GetAddress() string
- func (m *MSLeader) GetId() uint64
- func (m *MSLeader) GetTerm() uint64
- func (m *MSLeader) Marshal() (dAtA []byte, err error)
- func (m *MSLeader) MarshalTo(dAtA []byte) (int, error)
- func (*MSLeader) ProtoMessage()
- func (m *MSLeader) Reset()
- func (m *MSLeader) Size() (n int)
- func (m *MSLeader) String() string
- func (m *MSLeader) Unmarshal(dAtA []byte) error
- type MsServerClient
- type MsServerServer
- type NoLeader
- func (*NoLeader) Descriptor() ([]byte, []int)
- func (m *NoLeader) Marshal() (dAtA []byte, err error)
- func (m *NoLeader) MarshalTo(dAtA []byte) (int, error)
- func (*NoLeader) ProtoMessage()
- func (m *NoLeader) Reset()
- func (m *NoLeader) Size() (n int)
- func (m *NoLeader) String() string
- func (m *NoLeader) Unmarshal(dAtA []byte) error
- type NodeHeartbeatRequest
- func (*NodeHeartbeatRequest) Descriptor() ([]byte, []int)
- func (m *NodeHeartbeatRequest) GetHeader() *RequestHeader
- func (m *NodeHeartbeatRequest) GetIsolatedReplicas() []uint64
- func (m *NodeHeartbeatRequest) GetNodeId() uint64
- func (m *NodeHeartbeatRequest) GetStats() *NodeStats
- func (m *NodeHeartbeatRequest) Marshal() (dAtA []byte, err error)
- func (m *NodeHeartbeatRequest) MarshalTo(dAtA []byte) (int, error)
- func (*NodeHeartbeatRequest) ProtoMessage()
- func (m *NodeHeartbeatRequest) Reset()
- func (m *NodeHeartbeatRequest) Size() (n int)
- func (m *NodeHeartbeatRequest) String() string
- func (m *NodeHeartbeatRequest) Unmarshal(dAtA []byte) error
- type NodeHeartbeatResponse
- func (*NodeHeartbeatResponse) Descriptor() ([]byte, []int)
- func (m *NodeHeartbeatResponse) GetDeleteReplicas() []uint64
- func (m *NodeHeartbeatResponse) GetHeader() *ResponseHeader
- func (m *NodeHeartbeatResponse) GetNodeId() uint64
- func (m *NodeHeartbeatResponse) Marshal() (dAtA []byte, err error)
- func (m *NodeHeartbeatResponse) MarshalTo(dAtA []byte) (int, error)
- func (*NodeHeartbeatResponse) ProtoMessage()
- func (m *NodeHeartbeatResponse) Reset()
- func (m *NodeHeartbeatResponse) Size() (n int)
- func (m *NodeHeartbeatResponse) String() string
- func (m *NodeHeartbeatResponse) Unmarshal(dAtA []byte) error
- type NodeLoginRequest
- func (*NodeLoginRequest) Descriptor() ([]byte, []int)
- func (m *NodeLoginRequest) GetHeader() *RequestHeader
- func (m *NodeLoginRequest) GetNodeId() uint64
- func (m *NodeLoginRequest) Marshal() (dAtA []byte, err error)
- func (m *NodeLoginRequest) MarshalTo(dAtA []byte) (int, error)
- func (*NodeLoginRequest) ProtoMessage()
- func (m *NodeLoginRequest) Reset()
- func (m *NodeLoginRequest) Size() (n int)
- func (m *NodeLoginRequest) String() string
- func (m *NodeLoginRequest) Unmarshal(dAtA []byte) error
- type NodeLoginResponse
- func (*NodeLoginResponse) Descriptor() ([]byte, []int)
- func (m *NodeLoginResponse) GetHeader() *ResponseHeader
- func (m *NodeLoginResponse) Marshal() (dAtA []byte, err error)
- func (m *NodeLoginResponse) MarshalTo(dAtA []byte) (int, error)
- func (*NodeLoginResponse) ProtoMessage()
- func (m *NodeLoginResponse) Reset()
- func (m *NodeLoginResponse) Size() (n int)
- func (m *NodeLoginResponse) String() string
- func (m *NodeLoginResponse) Unmarshal(dAtA []byte) error
- type NodeStats
- func (*NodeStats) Descriptor() ([]byte, []int)
- func (m *NodeStats) GetApplyingSnapCount() uint32
- func (m *NodeStats) GetAvailable() uint64
- func (m *NodeStats) GetBytesRead() uint64
- func (m *NodeStats) GetBytesWritten() uint64
- func (m *NodeStats) GetCapacity() uint64
- func (m *NodeStats) GetIsBusy() bool
- func (m *NodeStats) GetKeysRead() uint64
- func (m *NodeStats) GetKeysWritten() uint64
- func (m *NodeStats) GetRangeCount() uint32
- func (m *NodeStats) GetRangeLeaderCount() uint32
- func (m *NodeStats) GetRangeSplitCount() uint32
- func (m *NodeStats) GetReceivingSnapCount() uint32
- func (m *NodeStats) GetSendingSnapCount() uint32
- func (m *NodeStats) GetStart() uint32
- func (m *NodeStats) GetUsedSize() uint64
- func (m *NodeStats) Marshal() (dAtA []byte, err error)
- func (m *NodeStats) MarshalTo(dAtA []byte) (int, error)
- func (*NodeStats) ProtoMessage()
- func (m *NodeStats) Reset()
- func (m *NodeStats) Size() (n int)
- func (m *NodeStats) String() string
- func (m *NodeStats) Unmarshal(dAtA []byte) error
- type PeerStatus
- func (*PeerStatus) Descriptor() ([]byte, []int)
- func (m *PeerStatus) GetCommit() uint64
- func (m *PeerStatus) GetDownSeconds() uint64
- func (m *PeerStatus) GetIndex() uint64
- func (m *PeerStatus) GetPeer() *metapb.Peer
- func (m *PeerStatus) GetSnapshotting() bool
- func (m *PeerStatus) Marshal() (dAtA []byte, err error)
- func (m *PeerStatus) MarshalTo(dAtA []byte) (int, error)
- func (*PeerStatus) ProtoMessage()
- func (m *PeerStatus) Reset()
- func (m *PeerStatus) Size() (n int)
- func (m *PeerStatus) String() string
- func (m *PeerStatus) Unmarshal(dAtA []byte) error
- type RangeHeartbeatRequest
- func (*RangeHeartbeatRequest) Descriptor() ([]byte, []int)
- func (m *RangeHeartbeatRequest) GetHeader() *RequestHeader
- func (m *RangeHeartbeatRequest) GetLeader() *metapb.Peer
- func (m *RangeHeartbeatRequest) GetPeersStatus() []*PeerStatus
- func (m *RangeHeartbeatRequest) GetRange() *metapb.Range
- func (m *RangeHeartbeatRequest) GetStats() *RangeStats
- func (m *RangeHeartbeatRequest) GetTerm() uint64
- func (m *RangeHeartbeatRequest) Marshal() (dAtA []byte, err error)
- func (m *RangeHeartbeatRequest) MarshalTo(dAtA []byte) (int, error)
- func (*RangeHeartbeatRequest) ProtoMessage()
- func (m *RangeHeartbeatRequest) Reset()
- func (m *RangeHeartbeatRequest) Size() (n int)
- func (m *RangeHeartbeatRequest) String() string
- func (m *RangeHeartbeatRequest) Unmarshal(dAtA []byte) error
- type RangeHeartbeatResponse
- func (*RangeHeartbeatResponse) Descriptor() ([]byte, []int)
- func (m *RangeHeartbeatResponse) GetEpoch() *metapb.RangeEpoch
- func (m *RangeHeartbeatResponse) GetHeader() *ResponseHeader
- func (m *RangeHeartbeatResponse) GetRangeId() uint64
- func (m *RangeHeartbeatResponse) GetTargetPeer() *metapb.Peer
- func (m *RangeHeartbeatResponse) GetTask() *taskpb.Task
- func (m *RangeHeartbeatResponse) Marshal() (dAtA []byte, err error)
- func (m *RangeHeartbeatResponse) MarshalTo(dAtA []byte) (int, error)
- func (*RangeHeartbeatResponse) ProtoMessage()
- func (m *RangeHeartbeatResponse) Reset()
- func (m *RangeHeartbeatResponse) Size() (n int)
- func (m *RangeHeartbeatResponse) String() string
- func (m *RangeHeartbeatResponse) Unmarshal(dAtA []byte) error
- type RangeStats
- func (*RangeStats) Descriptor() ([]byte, []int)
- func (m *RangeStats) GetApproximateSize() uint64
- func (m *RangeStats) GetBytesRead() uint64
- func (m *RangeStats) GetBytesWritten() uint64
- func (m *RangeStats) GetKeysRead() uint64
- func (m *RangeStats) GetKeysWritten() uint64
- func (m *RangeStats) Marshal() (dAtA []byte, err error)
- func (m *RangeStats) MarshalTo(dAtA []byte) (int, error)
- func (*RangeStats) ProtoMessage()
- func (m *RangeStats) Reset()
- func (m *RangeStats) Size() (n int)
- func (m *RangeStats) String() string
- func (m *RangeStats) Unmarshal(dAtA []byte) error
- type ReportSplitRequest
- func (*ReportSplitRequest) Descriptor() ([]byte, []int)
- func (m *ReportSplitRequest) GetHeader() *RequestHeader
- func (m *ReportSplitRequest) GetLeft() *metapb.Range
- func (m *ReportSplitRequest) GetRight() *metapb.Range
- func (m *ReportSplitRequest) Marshal() (dAtA []byte, err error)
- func (m *ReportSplitRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ReportSplitRequest) ProtoMessage()
- func (m *ReportSplitRequest) Reset()
- func (m *ReportSplitRequest) Size() (n int)
- func (m *ReportSplitRequest) String() string
- func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error
- type ReportSplitResponse
- func (*ReportSplitResponse) Descriptor() ([]byte, []int)
- func (m *ReportSplitResponse) GetHeader() *ResponseHeader
- func (m *ReportSplitResponse) Marshal() (dAtA []byte, err error)
- func (m *ReportSplitResponse) MarshalTo(dAtA []byte) (int, error)
- func (*ReportSplitResponse) ProtoMessage()
- func (m *ReportSplitResponse) Reset()
- func (m *ReportSplitResponse) Size() (n int)
- func (m *ReportSplitResponse) String() string
- func (m *ReportSplitResponse) Unmarshal(dAtA []byte) error
- type RequestHeader
- func (*RequestHeader) Descriptor() ([]byte, []int)
- func (m *RequestHeader) GetClusterId() uint64
- func (m *RequestHeader) Marshal() (dAtA []byte, err error)
- func (m *RequestHeader) MarshalTo(dAtA []byte) (int, error)
- func (*RequestHeader) ProtoMessage()
- func (m *RequestHeader) Reset()
- func (m *RequestHeader) Size() (n int)
- func (m *RequestHeader) String() string
- func (m *RequestHeader) Unmarshal(dAtA []byte) error
- type ResponseHeader
- func (*ResponseHeader) Descriptor() ([]byte, []int)
- func (m *ResponseHeader) GetClusterId() uint64
- func (m *ResponseHeader) GetError() *Error
- func (m *ResponseHeader) Marshal() (dAtA []byte, err error)
- func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error)
- func (*ResponseHeader) ProtoMessage()
- func (m *ResponseHeader) Reset()
- func (m *ResponseHeader) Size() (n int)
- func (m *ResponseHeader) String() string
- func (m *ResponseHeader) Unmarshal(dAtA []byte) error
- type TruncateTableRequest
- func (*TruncateTableRequest) Descriptor() ([]byte, []int)
- func (m *TruncateTableRequest) GetDbId() uint64
- func (m *TruncateTableRequest) GetHeader() *RequestHeader
- func (m *TruncateTableRequest) GetTableId() uint64
- func (m *TruncateTableRequest) Marshal() (dAtA []byte, err error)
- func (m *TruncateTableRequest) MarshalTo(dAtA []byte) (int, error)
- func (*TruncateTableRequest) ProtoMessage()
- func (m *TruncateTableRequest) Reset()
- func (m *TruncateTableRequest) Size() (n int)
- func (m *TruncateTableRequest) String() string
- func (m *TruncateTableRequest) Unmarshal(dAtA []byte) error
- type TruncateTableResponse
- func (*TruncateTableResponse) Descriptor() ([]byte, []int)
- func (m *TruncateTableResponse) GetHeader() *ResponseHeader
- func (m *TruncateTableResponse) Marshal() (dAtA []byte, err error)
- func (m *TruncateTableResponse) MarshalTo(dAtA []byte) (int, error)
- func (*TruncateTableResponse) ProtoMessage()
- func (m *TruncateTableResponse) Reset()
- func (m *TruncateTableResponse) Size() (n int)
- func (m *TruncateTableResponse) String() string
- func (m *TruncateTableResponse) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMspb = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMspb = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterMsServerServer ¶
func RegisterMsServerServer(s *grpc.Server, srv MsServerServer)
Types ¶
type AddColumnRequest ¶
type AddColumnRequest struct {
Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
DbId uint64 `protobuf:"varint,2,opt,name=db_id,json=dbId,proto3" json:"db_id,omitempty"`
TableId uint64 `protobuf:"varint,3,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
Columns []*metapb.Column `protobuf:"bytes,4,rep,name=columns" json:"columns,omitempty"`
}
func (*AddColumnRequest) Descriptor ¶
func (*AddColumnRequest) Descriptor() ([]byte, []int)
func (*AddColumnRequest) GetColumns ¶
func (m *AddColumnRequest) GetColumns() []*metapb.Column
func (*AddColumnRequest) GetDbId ¶
func (m *AddColumnRequest) GetDbId() uint64
func (*AddColumnRequest) GetHeader ¶
func (m *AddColumnRequest) GetHeader() *RequestHeader
func (*AddColumnRequest) GetTableId ¶
func (m *AddColumnRequest) GetTableId() uint64
func (*AddColumnRequest) Marshal ¶
func (m *AddColumnRequest) Marshal() (dAtA []byte, err error)
func (*AddColumnRequest) ProtoMessage ¶
func (*AddColumnRequest) ProtoMessage()
func (*AddColumnRequest) Reset ¶
func (m *AddColumnRequest) Reset()
func (*AddColumnRequest) Size ¶
func (m *AddColumnRequest) Size() (n int)
func (*AddColumnRequest) String ¶
func (m *AddColumnRequest) String() string
func (*AddColumnRequest) Unmarshal ¶
func (m *AddColumnRequest) Unmarshal(dAtA []byte) error
type AddColumnResponse ¶
type AddColumnResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
Columns []*metapb.Column `protobuf:"bytes,2,rep,name=columns" json:"columns,omitempty"`
}
func (*AddColumnResponse) Descriptor ¶
func (*AddColumnResponse) Descriptor() ([]byte, []int)
func (*AddColumnResponse) GetColumns ¶
func (m *AddColumnResponse) GetColumns() []*metapb.Column
func (*AddColumnResponse) GetHeader ¶
func (m *AddColumnResponse) GetHeader() *ResponseHeader
func (*AddColumnResponse) Marshal ¶
func (m *AddColumnResponse) Marshal() (dAtA []byte, err error)
func (*AddColumnResponse) MarshalTo ¶
func (m *AddColumnResponse) MarshalTo(dAtA []byte) (int, error)
func (*AddColumnResponse) ProtoMessage ¶
func (*AddColumnResponse) ProtoMessage()
func (*AddColumnResponse) Reset ¶
func (m *AddColumnResponse) Reset()
func (*AddColumnResponse) Size ¶
func (m *AddColumnResponse) Size() (n int)
func (*AddColumnResponse) String ¶
func (m *AddColumnResponse) String() string
func (*AddColumnResponse) Unmarshal ¶
func (m *AddColumnResponse) Unmarshal(dAtA []byte) error
type AskSplitRequest ¶
type AskSplitRequest struct {
Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
Range *metapb.Range `protobuf:"bytes,2,opt,name=range" json:"range,omitempty"`
SplitKey []byte `protobuf:"bytes,3,opt,name=split_key,json=splitKey,proto3" json:"split_key,omitempty"`
}
func (*AskSplitRequest) Descriptor ¶
func (*AskSplitRequest) Descriptor() ([]byte, []int)
func (*AskSplitRequest) GetHeader ¶
func (m *AskSplitRequest) GetHeader() *RequestHeader
func (*AskSplitRequest) GetRange ¶
func (m *AskSplitRequest) GetRange() *metapb.Range
func (*AskSplitRequest) GetSplitKey ¶
func (m *AskSplitRequest) GetSplitKey() []byte
func (*AskSplitRequest) Marshal ¶
func (m *AskSplitRequest) Marshal() (dAtA []byte, err error)
func (*AskSplitRequest) ProtoMessage ¶
func (*AskSplitRequest) ProtoMessage()
func (*AskSplitRequest) Reset ¶
func (m *AskSplitRequest) Reset()
func (*AskSplitRequest) Size ¶
func (m *AskSplitRequest) Size() (n int)
func (*AskSplitRequest) String ¶
func (m *AskSplitRequest) String() string
func (*AskSplitRequest) Unmarshal ¶
func (m *AskSplitRequest) Unmarshal(dAtA []byte) error
type AskSplitResponse ¶
type AskSplitResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
// set AskSplitRequest::range
Range *metapb.Range `protobuf:"bytes,2,opt,name=range" json:"range,omitempty"`
// We split the region into two, first uses the origin
// parent region id, and the second uses the new_region_id.
// We must guarantee that the new_region_id is global unique.
NewRangeId uint64 `protobuf:"varint,3,opt,name=new_range_id,json=newRangeId,proto3" json:"new_range_id,omitempty"`
// The peer ids for the new split region.
NewPeerIds []uint64 `protobuf:"varint,4,rep,packed,name=new_peer_ids,json=newPeerIds" json:"new_peer_ids,omitempty"`
SplitKey []byte `protobuf:"bytes,5,opt,name=split_key,json=splitKey,proto3" json:"split_key,omitempty"`
}
func (*AskSplitResponse) Descriptor ¶
func (*AskSplitResponse) Descriptor() ([]byte, []int)
func (*AskSplitResponse) GetHeader ¶
func (m *AskSplitResponse) GetHeader() *ResponseHeader
func (*AskSplitResponse) GetNewPeerIds ¶
func (m *AskSplitResponse) GetNewPeerIds() []uint64
func (*AskSplitResponse) GetNewRangeId ¶
func (m *AskSplitResponse) GetNewRangeId() uint64
func (*AskSplitResponse) GetRange ¶
func (m *AskSplitResponse) GetRange() *metapb.Range
func (*AskSplitResponse) GetSplitKey ¶
func (m *AskSplitResponse) GetSplitKey() []byte
func (*AskSplitResponse) Marshal ¶
func (m *AskSplitResponse) Marshal() (dAtA []byte, err error)
func (*AskSplitResponse) ProtoMessage ¶
func (*AskSplitResponse) ProtoMessage()
func (*AskSplitResponse) Reset ¶
func (m *AskSplitResponse) Reset()
func (*AskSplitResponse) Size ¶
func (m *AskSplitResponse) Size() (n int)
func (*AskSplitResponse) String ¶
func (m *AskSplitResponse) String() string
func (*AskSplitResponse) Unmarshal ¶
func (m *AskSplitResponse) Unmarshal(dAtA []byte) error
type CreateDatabaseRequest ¶
type CreateDatabaseRequest struct {
Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"`
}
func (*CreateDatabaseRequest) Descriptor ¶
func (*CreateDatabaseRequest) Descriptor() ([]byte, []int)
func (*CreateDatabaseRequest) GetDbName ¶
func (m *CreateDatabaseRequest) GetDbName() string
func (*CreateDatabaseRequest) GetHeader ¶
func (m *CreateDatabaseRequest) GetHeader() *RequestHeader
func (*CreateDatabaseRequest) Marshal ¶
func (m *CreateDatabaseRequest) Marshal() (dAtA []byte, err error)
func (*CreateDatabaseRequest) MarshalTo ¶
func (m *CreateDatabaseRequest) MarshalTo(dAtA []byte) (int, error)
func (*CreateDatabaseRequest) ProtoMessage ¶
func (*CreateDatabaseRequest) ProtoMessage()
func (*CreateDatabaseRequest) Reset ¶
func (m *CreateDatabaseRequest) Reset()
func (*CreateDatabaseRequest) Size ¶
func (m *CreateDatabaseRequest) Size() (n int)
func (*CreateDatabaseRequest) String ¶
func (m *CreateDatabaseRequest) String() string
func (*CreateDatabaseRequest) Unmarshal ¶
func (m *CreateDatabaseRequest) Unmarshal(dAtA []byte) error
type CreateDatabaseResponse ¶
type CreateDatabaseResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*CreateDatabaseResponse) Descriptor ¶
func (*CreateDatabaseResponse) Descriptor() ([]byte, []int)
func (*CreateDatabaseResponse) GetHeader ¶
func (m *CreateDatabaseResponse) GetHeader() *ResponseHeader
func (*CreateDatabaseResponse) Marshal ¶
func (m *CreateDatabaseResponse) Marshal() (dAtA []byte, err error)
func (*CreateDatabaseResponse) MarshalTo ¶
func (m *CreateDatabaseResponse) MarshalTo(dAtA []byte) (int, error)
func (*CreateDatabaseResponse) ProtoMessage ¶
func (*CreateDatabaseResponse) ProtoMessage()
func (*CreateDatabaseResponse) Reset ¶
func (m *CreateDatabaseResponse) Reset()
func (*CreateDatabaseResponse) Size ¶
func (m *CreateDatabaseResponse) Size() (n int)
func (*CreateDatabaseResponse) String ¶
func (m *CreateDatabaseResponse) String() string
func (*CreateDatabaseResponse) Unmarshal ¶
func (m *CreateDatabaseResponse) Unmarshal(dAtA []byte) error
type CreateTableRequest ¶
type CreateTableRequest struct {
Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"`
TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
Properties string `protobuf:"bytes,4,opt,name=properties,proto3" json:"properties,omitempty"`
}
func (*CreateTableRequest) Descriptor ¶
func (*CreateTableRequest) Descriptor() ([]byte, []int)
func (*CreateTableRequest) GetDbName ¶
func (m *CreateTableRequest) GetDbName() string
func (*CreateTableRequest) GetHeader ¶
func (m *CreateTableRequest) GetHeader() *RequestHeader
func (*CreateTableRequest) GetProperties ¶
func (m *CreateTableRequest) GetProperties() string
func (*CreateTableRequest) GetTableName ¶
func (m *CreateTableRequest) GetTableName() string
func (*CreateTableRequest) Marshal ¶
func (m *CreateTableRequest) Marshal() (dAtA []byte, err error)
func (*CreateTableRequest) MarshalTo ¶
func (m *CreateTableRequest) MarshalTo(dAtA []byte) (int, error)
func (*CreateTableRequest) ProtoMessage ¶
func (*CreateTableRequest) ProtoMessage()
func (*CreateTableRequest) Reset ¶
func (m *CreateTableRequest) Reset()
func (*CreateTableRequest) Size ¶
func (m *CreateTableRequest) Size() (n int)
func (*CreateTableRequest) String ¶
func (m *CreateTableRequest) String() string
func (*CreateTableRequest) Unmarshal ¶
func (m *CreateTableRequest) Unmarshal(dAtA []byte) error
type CreateTableResponse ¶
type CreateTableResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*CreateTableResponse) Descriptor ¶
func (*CreateTableResponse) Descriptor() ([]byte, []int)
func (*CreateTableResponse) GetHeader ¶
func (m *CreateTableResponse) GetHeader() *ResponseHeader
func (*CreateTableResponse) Marshal ¶
func (m *CreateTableResponse) Marshal() (dAtA []byte, err error)
func (*CreateTableResponse) MarshalTo ¶
func (m *CreateTableResponse) MarshalTo(dAtA []byte) (int, error)
func (*CreateTableResponse) ProtoMessage ¶
func (*CreateTableResponse) ProtoMessage()
func (*CreateTableResponse) Reset ¶
func (m *CreateTableResponse) Reset()
func (*CreateTableResponse) Size ¶
func (m *CreateTableResponse) Size() (n int)
func (*CreateTableResponse) String ¶
func (m *CreateTableResponse) String() string
func (*CreateTableResponse) Unmarshal ¶
func (m *CreateTableResponse) Unmarshal(dAtA []byte) error
type Error ¶
type Error struct {
NewLeader *LeaderHint `protobuf:"bytes,2,opt,name=new_leader,json=newLeader" json:"new_leader,omitempty"`
NoLeader *NoLeader `protobuf:"bytes,3,opt,name=no_leader,json=noLeader" json:"no_leader,omitempty"`
}
func (*Error) Descriptor ¶
func (*Error) GetNewLeader ¶ added in v0.6.3
func (m *Error) GetNewLeader() *LeaderHint
func (*Error) GetNoLeader ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
type GetColumnByIdRequest ¶
type GetColumnByIdRequest struct {
Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
DbId uint64 `protobuf:"varint,2,opt,name=db_id,json=dbId,proto3" json:"db_id,omitempty"`
TableId uint64 `protobuf:"varint,3,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
ColId uint64 `protobuf:"varint,4,opt,name=col_id,json=colId,proto3" json:"col_id,omitempty"`
}
func (*GetColumnByIdRequest) Descriptor ¶
func (*GetColumnByIdRequest) Descriptor() ([]byte, []int)
func (*GetColumnByIdRequest) GetColId ¶
func (m *GetColumnByIdRequest) GetColId() uint64
func (*GetColumnByIdRequest) GetDbId ¶
func (m *GetColumnByIdRequest) GetDbId() uint64
func (*GetColumnByIdRequest) GetHeader ¶
func (m *GetColumnByIdRequest) GetHeader() *RequestHeader
func (*GetColumnByIdRequest) GetTableId ¶
func (m *GetColumnByIdRequest) GetTableId() uint64
func (*GetColumnByIdRequest) Marshal ¶
func (m *GetColumnByIdRequest) Marshal() (dAtA []byte, err error)
func (*GetColumnByIdRequest) MarshalTo ¶
func (m *GetColumnByIdRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetColumnByIdRequest) ProtoMessage ¶
func (*GetColumnByIdRequest) ProtoMessage()
func (*GetColumnByIdRequest) Reset ¶
func (m *GetColumnByIdRequest) Reset()
func (*GetColumnByIdRequest) Size ¶
func (m *GetColumnByIdRequest) Size() (n int)
func (*GetColumnByIdRequest) String ¶
func (m *GetColumnByIdRequest) String() string
func (*GetColumnByIdRequest) Unmarshal ¶
func (m *GetColumnByIdRequest) Unmarshal(dAtA []byte) error
type GetColumnByIdResponse ¶
type GetColumnByIdResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
Column *metapb.Column `protobuf:"bytes,2,opt,name=column" json:"column,omitempty"`
}
func (*GetColumnByIdResponse) Descriptor ¶
func (*GetColumnByIdResponse) Descriptor() ([]byte, []int)
func (*GetColumnByIdResponse) GetColumn ¶
func (m *GetColumnByIdResponse) GetColumn() *metapb.Column
func (*GetColumnByIdResponse) GetHeader ¶
func (m *GetColumnByIdResponse) GetHeader() *ResponseHeader
func (*GetColumnByIdResponse) Marshal ¶
func (m *GetColumnByIdResponse) Marshal() (dAtA []byte, err error)
func (*GetColumnByIdResponse) MarshalTo ¶
func (m *GetColumnByIdResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetColumnByIdResponse) ProtoMessage ¶
func (*GetColumnByIdResponse) ProtoMessage()
func (*GetColumnByIdResponse) Reset ¶
func (m *GetColumnByIdResponse) Reset()
func (*GetColumnByIdResponse) Size ¶
func (m *GetColumnByIdResponse) Size() (n int)
func (*GetColumnByIdResponse) String ¶
func (m *GetColumnByIdResponse) String() string
func (*GetColumnByIdResponse) Unmarshal ¶
func (m *GetColumnByIdResponse) Unmarshal(dAtA []byte) error
type GetColumnByNameRequest ¶
type GetColumnByNameRequest struct {
Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
DbId uint64 `protobuf:"varint,2,opt,name=db_id,json=dbId,proto3" json:"db_id,omitempty"`
TableId uint64 `protobuf:"varint,3,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
ColName string `protobuf:"bytes,4,opt,name=col_name,json=colName,proto3" json:"col_name,omitempty"`
}
func (*GetColumnByNameRequest) Descriptor ¶
func (*GetColumnByNameRequest) Descriptor() ([]byte, []int)
func (*GetColumnByNameRequest) GetColName ¶
func (m *GetColumnByNameRequest) GetColName() string
func (*GetColumnByNameRequest) GetDbId ¶
func (m *GetColumnByNameRequest) GetDbId() uint64
func (*GetColumnByNameRequest) GetHeader ¶
func (m *GetColumnByNameRequest) GetHeader() *RequestHeader
func (*GetColumnByNameRequest) GetTableId ¶
func (m *GetColumnByNameRequest) GetTableId() uint64
func (*GetColumnByNameRequest) Marshal ¶
func (m *GetColumnByNameRequest) Marshal() (dAtA []byte, err error)
func (*GetColumnByNameRequest) MarshalTo ¶
func (m *GetColumnByNameRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetColumnByNameRequest) ProtoMessage ¶
func (*GetColumnByNameRequest) ProtoMessage()
func (*GetColumnByNameRequest) Reset ¶
func (m *GetColumnByNameRequest) Reset()
func (*GetColumnByNameRequest) Size ¶
func (m *GetColumnByNameRequest) Size() (n int)
func (*GetColumnByNameRequest) String ¶
func (m *GetColumnByNameRequest) String() string
func (*GetColumnByNameRequest) Unmarshal ¶
func (m *GetColumnByNameRequest) Unmarshal(dAtA []byte) error
type GetColumnByNameResponse ¶
type GetColumnByNameResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
Column *metapb.Column `protobuf:"bytes,2,opt,name=column" json:"column,omitempty"`
}
func (*GetColumnByNameResponse) Descriptor ¶
func (*GetColumnByNameResponse) Descriptor() ([]byte, []int)
func (*GetColumnByNameResponse) GetColumn ¶
func (m *GetColumnByNameResponse) GetColumn() *metapb.Column
func (*GetColumnByNameResponse) GetHeader ¶
func (m *GetColumnByNameResponse) GetHeader() *ResponseHeader
func (*GetColumnByNameResponse) Marshal ¶
func (m *GetColumnByNameResponse) Marshal() (dAtA []byte, err error)
func (*GetColumnByNameResponse) MarshalTo ¶
func (m *GetColumnByNameResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetColumnByNameResponse) ProtoMessage ¶
func (*GetColumnByNameResponse) ProtoMessage()
func (*GetColumnByNameResponse) Reset ¶
func (m *GetColumnByNameResponse) Reset()
func (*GetColumnByNameResponse) Size ¶
func (m *GetColumnByNameResponse) Size() (n int)
func (*GetColumnByNameResponse) String ¶
func (m *GetColumnByNameResponse) String() string
func (*GetColumnByNameResponse) Unmarshal ¶
func (m *GetColumnByNameResponse) Unmarshal(dAtA []byte) error
type GetColumnsRequest ¶
type GetColumnsRequest struct {
Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
DbId uint64 `protobuf:"varint,2,opt,name=db_id,json=dbId,proto3" json:"db_id,omitempty"`
TableId uint64 `protobuf:"varint,3,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
}
func (*GetColumnsRequest) Descriptor ¶
func (*GetColumnsRequest) Descriptor() ([]byte, []int)
func (*GetColumnsRequest) GetDbId ¶
func (m *GetColumnsRequest) GetDbId() uint64
func (*GetColumnsRequest) GetHeader ¶
func (m *GetColumnsRequest) GetHeader() *RequestHeader
func (*GetColumnsRequest) GetTableId ¶
func (m *GetColumnsRequest) GetTableId() uint64
func (*GetColumnsRequest) Marshal ¶
func (m *GetColumnsRequest) Marshal() (dAtA []byte, err error)
func (*GetColumnsRequest) MarshalTo ¶
func (m *GetColumnsRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetColumnsRequest) ProtoMessage ¶
func (*GetColumnsRequest) ProtoMessage()
func (*GetColumnsRequest) Reset ¶
func (m *GetColumnsRequest) Reset()
func (*GetColumnsRequest) Size ¶
func (m *GetColumnsRequest) Size() (n int)
func (*GetColumnsRequest) String ¶
func (m *GetColumnsRequest) String() string
func (*GetColumnsRequest) Unmarshal ¶
func (m *GetColumnsRequest) Unmarshal(dAtA []byte) error
type GetColumnsResponse ¶
type GetColumnsResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
Columns []*metapb.Column `protobuf:"bytes,2,rep,name=columns" json:"columns,omitempty"`
}
func (*GetColumnsResponse) Descriptor ¶
func (*GetColumnsResponse) Descriptor() ([]byte, []int)
func (*GetColumnsResponse) GetColumns ¶
func (m *GetColumnsResponse) GetColumns() []*metapb.Column
func (*GetColumnsResponse) GetHeader ¶
func (m *GetColumnsResponse) GetHeader() *ResponseHeader
func (*GetColumnsResponse) Marshal ¶
func (m *GetColumnsResponse) Marshal() (dAtA []byte, err error)
func (*GetColumnsResponse) MarshalTo ¶
func (m *GetColumnsResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetColumnsResponse) ProtoMessage ¶
func (*GetColumnsResponse) ProtoMessage()
func (*GetColumnsResponse) Reset ¶
func (m *GetColumnsResponse) Reset()
func (*GetColumnsResponse) Size ¶
func (m *GetColumnsResponse) Size() (n int)
func (*GetColumnsResponse) String ¶
func (m *GetColumnsResponse) String() string
func (*GetColumnsResponse) Unmarshal ¶
func (m *GetColumnsResponse) Unmarshal(dAtA []byte) error
type GetDBRequest ¶
type GetDBRequest struct {
Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
}
func (*GetDBRequest) Descriptor ¶
func (*GetDBRequest) Descriptor() ([]byte, []int)
func (*GetDBRequest) GetHeader ¶
func (m *GetDBRequest) GetHeader() *RequestHeader
func (*GetDBRequest) GetName ¶
func (m *GetDBRequest) GetName() string
func (*GetDBRequest) Marshal ¶
func (m *GetDBRequest) Marshal() (dAtA []byte, err error)
func (*GetDBRequest) ProtoMessage ¶
func (*GetDBRequest) ProtoMessage()
func (*GetDBRequest) Reset ¶
func (m *GetDBRequest) Reset()
func (*GetDBRequest) Size ¶
func (m *GetDBRequest) Size() (n int)
func (*GetDBRequest) String ¶
func (m *GetDBRequest) String() string
func (*GetDBRequest) Unmarshal ¶
func (m *GetDBRequest) Unmarshal(dAtA []byte) error
type GetDBResponse ¶
type GetDBResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
Db *metapb.DataBase `protobuf:"bytes,2,opt,name=db" json:"db,omitempty"`
}
func (*GetDBResponse) Descriptor ¶
func (*GetDBResponse) Descriptor() ([]byte, []int)
func (*GetDBResponse) GetDb ¶
func (m *GetDBResponse) GetDb() *metapb.DataBase
func (*GetDBResponse) GetHeader ¶
func (m *GetDBResponse) GetHeader() *ResponseHeader
func (*GetDBResponse) Marshal ¶
func (m *GetDBResponse) Marshal() (dAtA []byte, err error)
func (*GetDBResponse) ProtoMessage ¶
func (*GetDBResponse) ProtoMessage()
func (*GetDBResponse) Reset ¶
func (m *GetDBResponse) Reset()
func (*GetDBResponse) Size ¶
func (m *GetDBResponse) Size() (n int)
func (*GetDBResponse) String ¶
func (m *GetDBResponse) String() string
func (*GetDBResponse) Unmarshal ¶
func (m *GetDBResponse) Unmarshal(dAtA []byte) error
type GetMSLeaderRequest ¶
type GetMSLeaderRequest struct {
Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*GetMSLeaderRequest) Descriptor ¶
func (*GetMSLeaderRequest) Descriptor() ([]byte, []int)
func (*GetMSLeaderRequest) GetHeader ¶
func (m *GetMSLeaderRequest) GetHeader() *RequestHeader
func (*GetMSLeaderRequest) Marshal ¶
func (m *GetMSLeaderRequest) Marshal() (dAtA []byte, err error)
func (*GetMSLeaderRequest) MarshalTo ¶
func (m *GetMSLeaderRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetMSLeaderRequest) ProtoMessage ¶
func (*GetMSLeaderRequest) ProtoMessage()
func (*GetMSLeaderRequest) Reset ¶
func (m *GetMSLeaderRequest) Reset()
func (*GetMSLeaderRequest) Size ¶
func (m *GetMSLeaderRequest) Size() (n int)
func (*GetMSLeaderRequest) String ¶
func (m *GetMSLeaderRequest) String() string
func (*GetMSLeaderRequest) Unmarshal ¶
func (m *GetMSLeaderRequest) Unmarshal(dAtA []byte) error
type GetMSLeaderResponse ¶
type GetMSLeaderResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
Leader *MSLeader `protobuf:"bytes,2,opt,name=leader" json:"leader,omitempty"`
}
func (*GetMSLeaderResponse) Descriptor ¶
func (*GetMSLeaderResponse) Descriptor() ([]byte, []int)
func (*GetMSLeaderResponse) GetHeader ¶
func (m *GetMSLeaderResponse) GetHeader() *ResponseHeader
func (*GetMSLeaderResponse) GetLeader ¶
func (m *GetMSLeaderResponse) GetLeader() *MSLeader
func (*GetMSLeaderResponse) Marshal ¶
func (m *GetMSLeaderResponse) Marshal() (dAtA []byte, err error)
func (*GetMSLeaderResponse) MarshalTo ¶
func (m *GetMSLeaderResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetMSLeaderResponse) ProtoMessage ¶
func (*GetMSLeaderResponse) ProtoMessage()
func (*GetMSLeaderResponse) Reset ¶
func (m *GetMSLeaderResponse) Reset()
func (*GetMSLeaderResponse) Size ¶
func (m *GetMSLeaderResponse) Size() (n int)
func (*GetMSLeaderResponse) String ¶
func (m *GetMSLeaderResponse) String() string
func (*GetMSLeaderResponse) Unmarshal ¶
func (m *GetMSLeaderResponse) Unmarshal(dAtA []byte) error
type GetNodeIdRequest ¶
type GetNodeIdRequest struct {
Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
ServerPort uint32 `protobuf:"varint,2,opt,name=server_port,json=serverPort,proto3" json:"server_port,omitempty"`
RaftPort uint32 `protobuf:"varint,3,opt,name=raft_port,json=raftPort,proto3" json:"raft_port,omitempty"`
HttpPort uint32 `protobuf:"varint,4,opt,name=http_port,json=httpPort,proto3" json:"http_port,omitempty"`
Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
}
func (*GetNodeIdRequest) Descriptor ¶
func (*GetNodeIdRequest) Descriptor() ([]byte, []int)
func (*GetNodeIdRequest) GetHeader ¶
func (m *GetNodeIdRequest) GetHeader() *RequestHeader
func (*GetNodeIdRequest) GetHttpPort ¶
func (m *GetNodeIdRequest) GetHttpPort() uint32
func (*GetNodeIdRequest) GetRaftPort ¶
func (m *GetNodeIdRequest) GetRaftPort() uint32
func (*GetNodeIdRequest) GetServerPort ¶
func (m *GetNodeIdRequest) GetServerPort() uint32
func (*GetNodeIdRequest) GetVersion ¶
func (m *GetNodeIdRequest) GetVersion() string
func (*GetNodeIdRequest) Marshal ¶
func (m *GetNodeIdRequest) Marshal() (dAtA []byte, err error)
func (*GetNodeIdRequest) ProtoMessage ¶
func (*GetNodeIdRequest) ProtoMessage()
func (*GetNodeIdRequest) Reset ¶
func (m *GetNodeIdRequest) Reset()
func (*GetNodeIdRequest) Size ¶
func (m *GetNodeIdRequest) Size() (n int)
func (*GetNodeIdRequest) String ¶
func (m *GetNodeIdRequest) String() string
func (*GetNodeIdRequest) Unmarshal ¶
func (m *GetNodeIdRequest) Unmarshal(dAtA []byte) error
type GetNodeIdResponse ¶
type GetNodeIdResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
NodeId uint64 `protobuf:"varint,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
// 是否需要节点清理所有数据
Clearup bool `protobuf:"varint,3,opt,name=clearup,proto3" json:"clearup,omitempty"`
}
func (*GetNodeIdResponse) Descriptor ¶
func (*GetNodeIdResponse) Descriptor() ([]byte, []int)
func (*GetNodeIdResponse) GetClearup ¶
func (m *GetNodeIdResponse) GetClearup() bool
func (*GetNodeIdResponse) GetHeader ¶
func (m *GetNodeIdResponse) GetHeader() *ResponseHeader
func (*GetNodeIdResponse) GetNodeId ¶
func (m *GetNodeIdResponse) GetNodeId() uint64
func (*GetNodeIdResponse) Marshal ¶
func (m *GetNodeIdResponse) Marshal() (dAtA []byte, err error)
func (*GetNodeIdResponse) MarshalTo ¶
func (m *GetNodeIdResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetNodeIdResponse) ProtoMessage ¶
func (*GetNodeIdResponse) ProtoMessage()
func (*GetNodeIdResponse) Reset ¶
func (m *GetNodeIdResponse) Reset()
func (*GetNodeIdResponse) Size ¶
func (m *GetNodeIdResponse) Size() (n int)
func (*GetNodeIdResponse) String ¶
func (m *GetNodeIdResponse) String() string
func (*GetNodeIdResponse) Unmarshal ¶
func (m *GetNodeIdResponse) Unmarshal(dAtA []byte) error
type GetNodeRequest ¶
type GetNodeRequest struct {
Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
}
func (*GetNodeRequest) Descriptor ¶
func (*GetNodeRequest) Descriptor() ([]byte, []int)
func (*GetNodeRequest) GetHeader ¶
func (m *GetNodeRequest) GetHeader() *RequestHeader
func (*GetNodeRequest) GetId ¶
func (m *GetNodeRequest) GetId() uint64
func (*GetNodeRequest) Marshal ¶
func (m *GetNodeRequest) Marshal() (dAtA []byte, err error)
func (*GetNodeRequest) ProtoMessage ¶
func (*GetNodeRequest) ProtoMessage()
func (*GetNodeRequest) Reset ¶
func (m *GetNodeRequest) Reset()
func (*GetNodeRequest) Size ¶
func (m *GetNodeRequest) Size() (n int)
func (*GetNodeRequest) String ¶
func (m *GetNodeRequest) String() string
func (*GetNodeRequest) Unmarshal ¶
func (m *GetNodeRequest) Unmarshal(dAtA []byte) error
type GetNodeResponse ¶
type GetNodeResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
Node *metapb.Node `protobuf:"bytes,2,opt,name=node" json:"node,omitempty"`
}
func (*GetNodeResponse) Descriptor ¶
func (*GetNodeResponse) Descriptor() ([]byte, []int)
func (*GetNodeResponse) GetHeader ¶
func (m *GetNodeResponse) GetHeader() *ResponseHeader
func (*GetNodeResponse) GetNode ¶
func (m *GetNodeResponse) GetNode() *metapb.Node
func (*GetNodeResponse) Marshal ¶
func (m *GetNodeResponse) Marshal() (dAtA []byte, err error)
func (*GetNodeResponse) ProtoMessage ¶
func (*GetNodeResponse) ProtoMessage()
func (*GetNodeResponse) Reset ¶
func (m *GetNodeResponse) Reset()
func (*GetNodeResponse) Size ¶
func (m *GetNodeResponse) Size() (n int)
func (*GetNodeResponse) String ¶
func (m *GetNodeResponse) String() string
func (*GetNodeResponse) Unmarshal ¶
func (m *GetNodeResponse) Unmarshal(dAtA []byte) error
type GetRouteRequest ¶
type GetRouteRequest struct {
Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
DbId uint64 `protobuf:"varint,2,opt,name=db_id,json=dbId,proto3" json:"db_id,omitempty"`
TableId uint64 `protobuf:"varint,3,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
Key []byte `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
}
func (*GetRouteRequest) Descriptor ¶
func (*GetRouteRequest) Descriptor() ([]byte, []int)
func (*GetRouteRequest) GetDbId ¶
func (m *GetRouteRequest) GetDbId() uint64
func (*GetRouteRequest) GetHeader ¶
func (m *GetRouteRequest) GetHeader() *RequestHeader
func (*GetRouteRequest) GetKey ¶
func (m *GetRouteRequest) GetKey() []byte
func (*GetRouteRequest) GetTableId ¶
func (m *GetRouteRequest) GetTableId() uint64
func (*GetRouteRequest) Marshal ¶
func (m *GetRouteRequest) Marshal() (dAtA []byte, err error)
func (*GetRouteRequest) ProtoMessage ¶
func (*GetRouteRequest) ProtoMessage()
func (*GetRouteRequest) Reset ¶
func (m *GetRouteRequest) Reset()
func (*GetRouteRequest) Size ¶
func (m *GetRouteRequest) Size() (n int)
func (*GetRouteRequest) String ¶
func (m *GetRouteRequest) String() string
func (*GetRouteRequest) Unmarshal ¶
func (m *GetRouteRequest) Unmarshal(dAtA []byte) error
type GetRouteResponse ¶
type GetRouteResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
Routes []*metapb.Route `protobuf:"bytes,2,rep,name=routes" json:"routes,omitempty"`
}
func (*GetRouteResponse) Descriptor ¶
func (*GetRouteResponse) Descriptor() ([]byte, []int)
func (*GetRouteResponse) GetHeader ¶
func (m *GetRouteResponse) GetHeader() *ResponseHeader
func (*GetRouteResponse) GetRoutes ¶
func (m *GetRouteResponse) GetRoutes() []*metapb.Route
func (*GetRouteResponse) Marshal ¶
func (m *GetRouteResponse) Marshal() (dAtA []byte, err error)
func (*GetRouteResponse) ProtoMessage ¶
func (*GetRouteResponse) ProtoMessage()
func (*GetRouteResponse) Reset ¶
func (m *GetRouteResponse) Reset()
func (*GetRouteResponse) Size ¶
func (m *GetRouteResponse) Size() (n int)
func (*GetRouteResponse) String ¶
func (m *GetRouteResponse) String() string
func (*GetRouteResponse) Unmarshal ¶
func (m *GetRouteResponse) Unmarshal(dAtA []byte) error
type GetTableByIdRequest ¶
type GetTableByIdRequest struct {
Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
DbId uint64 `protobuf:"varint,2,opt,name=db_id,json=dbId,proto3" json:"db_id,omitempty"`
TableId uint64 `protobuf:"varint,3,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
}
func (*GetTableByIdRequest) Descriptor ¶
func (*GetTableByIdRequest) Descriptor() ([]byte, []int)
func (*GetTableByIdRequest) GetDbId ¶
func (m *GetTableByIdRequest) GetDbId() uint64
func (*GetTableByIdRequest) GetHeader ¶
func (m *GetTableByIdRequest) GetHeader() *RequestHeader
func (*GetTableByIdRequest) GetTableId ¶
func (m *GetTableByIdRequest) GetTableId() uint64
func (*GetTableByIdRequest) Marshal ¶
func (m *GetTableByIdRequest) Marshal() (dAtA []byte, err error)
func (*GetTableByIdRequest) MarshalTo ¶
func (m *GetTableByIdRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetTableByIdRequest) ProtoMessage ¶
func (*GetTableByIdRequest) ProtoMessage()
func (*GetTableByIdRequest) Reset ¶
func (m *GetTableByIdRequest) Reset()
func (*GetTableByIdRequest) Size ¶
func (m *GetTableByIdRequest) Size() (n int)
func (*GetTableByIdRequest) String ¶
func (m *GetTableByIdRequest) String() string
func (*GetTableByIdRequest) Unmarshal ¶
func (m *GetTableByIdRequest) Unmarshal(dAtA []byte) error
type GetTableByIdResponse ¶
type GetTableByIdResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
Table *metapb.Table `protobuf:"bytes,2,opt,name=table" json:"table,omitempty"`
}
func (*GetTableByIdResponse) Descriptor ¶
func (*GetTableByIdResponse) Descriptor() ([]byte, []int)
func (*GetTableByIdResponse) GetHeader ¶
func (m *GetTableByIdResponse) GetHeader() *ResponseHeader
func (*GetTableByIdResponse) GetTable ¶
func (m *GetTableByIdResponse) GetTable() *metapb.Table
func (*GetTableByIdResponse) Marshal ¶
func (m *GetTableByIdResponse) Marshal() (dAtA []byte, err error)
func (*GetTableByIdResponse) MarshalTo ¶
func (m *GetTableByIdResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetTableByIdResponse) ProtoMessage ¶
func (*GetTableByIdResponse) ProtoMessage()
func (*GetTableByIdResponse) Reset ¶
func (m *GetTableByIdResponse) Reset()
func (*GetTableByIdResponse) Size ¶
func (m *GetTableByIdResponse) Size() (n int)
func (*GetTableByIdResponse) String ¶
func (m *GetTableByIdResponse) String() string
func (*GetTableByIdResponse) Unmarshal ¶
func (m *GetTableByIdResponse) Unmarshal(dAtA []byte) error
type GetTableRequest ¶
type GetTableRequest struct {
Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"`
TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
}
func (*GetTableRequest) Descriptor ¶
func (*GetTableRequest) Descriptor() ([]byte, []int)
func (*GetTableRequest) GetDbName ¶
func (m *GetTableRequest) GetDbName() string
func (*GetTableRequest) GetHeader ¶
func (m *GetTableRequest) GetHeader() *RequestHeader
func (*GetTableRequest) GetTableName ¶
func (m *GetTableRequest) GetTableName() string
func (*GetTableRequest) Marshal ¶
func (m *GetTableRequest) Marshal() (dAtA []byte, err error)
func (*GetTableRequest) ProtoMessage ¶
func (*GetTableRequest) ProtoMessage()
func (*GetTableRequest) Reset ¶
func (m *GetTableRequest) Reset()
func (*GetTableRequest) Size ¶
func (m *GetTableRequest) Size() (n int)
func (*GetTableRequest) String ¶
func (m *GetTableRequest) String() string
func (*GetTableRequest) Unmarshal ¶
func (m *GetTableRequest) Unmarshal(dAtA []byte) error
type GetTableResponse ¶
type GetTableResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
Table *metapb.Table `protobuf:"bytes,2,opt,name=table" json:"table,omitempty"`
}
func (*GetTableResponse) Descriptor ¶
func (*GetTableResponse) Descriptor() ([]byte, []int)
func (*GetTableResponse) GetHeader ¶
func (m *GetTableResponse) GetHeader() *ResponseHeader
func (*GetTableResponse) GetTable ¶
func (m *GetTableResponse) GetTable() *metapb.Table
func (*GetTableResponse) Marshal ¶
func (m *GetTableResponse) Marshal() (dAtA []byte, err error)
func (*GetTableResponse) ProtoMessage ¶
func (*GetTableResponse) ProtoMessage()
func (*GetTableResponse) Reset ¶
func (m *GetTableResponse) Reset()
func (*GetTableResponse) Size ¶
func (m *GetTableResponse) Size() (n int)
func (*GetTableResponse) String ¶
func (m *GetTableResponse) String() string
func (*GetTableResponse) Unmarshal ¶
func (m *GetTableResponse) Unmarshal(dAtA []byte) error
type LeaderHint ¶ added in v0.6.3
type LeaderHint struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
Term uint64 `protobuf:"varint,2,opt,name=term,proto3" json:"term,omitempty"`
}
func (*LeaderHint) Descriptor ¶ added in v0.6.3
func (*LeaderHint) Descriptor() ([]byte, []int)
func (*LeaderHint) GetAddress ¶ added in v0.6.3
func (m *LeaderHint) GetAddress() string
func (*LeaderHint) GetTerm ¶ added in v0.6.3
func (m *LeaderHint) GetTerm() uint64
func (*LeaderHint) Marshal ¶ added in v0.6.3
func (m *LeaderHint) Marshal() (dAtA []byte, err error)
func (*LeaderHint) MarshalTo ¶ added in v0.6.3
func (m *LeaderHint) MarshalTo(dAtA []byte) (int, error)
func (*LeaderHint) ProtoMessage ¶ added in v0.6.3
func (*LeaderHint) ProtoMessage()
func (*LeaderHint) Reset ¶ added in v0.6.3
func (m *LeaderHint) Reset()
func (*LeaderHint) Size ¶ added in v0.6.3
func (m *LeaderHint) Size() (n int)
func (*LeaderHint) String ¶ added in v0.6.3
func (m *LeaderHint) String() string
func (*LeaderHint) Unmarshal ¶ added in v0.6.3
func (m *LeaderHint) Unmarshal(dAtA []byte) error
type MSLeader ¶
type MSLeader struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
Term uint64 `protobuf:"varint,3,opt,name=term,proto3" json:"term,omitempty"`
}
func (*MSLeader) Descriptor ¶
func (*MSLeader) GetAddress ¶
func (*MSLeader) ProtoMessage ¶
func (*MSLeader) ProtoMessage()
type MsServerClient ¶
type MsServerClient interface {
NodeHeartbeat(ctx context.Context, in *NodeHeartbeatRequest, opts ...grpc.CallOption) (*NodeHeartbeatResponse, error)
RangeHeartbeat(ctx context.Context, in *RangeHeartbeatRequest, opts ...grpc.CallOption) (*RangeHeartbeatResponse, error)
AskSplit(ctx context.Context, in *AskSplitRequest, opts ...grpc.CallOption) (*AskSplitResponse, error)
ReportSplit(ctx context.Context, in *ReportSplitRequest, opts ...grpc.CallOption) (*ReportSplitResponse, error)
NodeLogin(ctx context.Context, in *NodeLoginRequest, opts ...grpc.CallOption) (*NodeLoginResponse, error)
GetNodeId(ctx context.Context, in *GetNodeIdRequest, opts ...grpc.CallOption) (*GetNodeIdResponse, error)
GetMSLeader(ctx context.Context, in *GetMSLeaderRequest, opts ...grpc.CallOption) (*GetMSLeaderResponse, error)
GetRoute(ctx context.Context, in *GetRouteRequest, opts ...grpc.CallOption) (*GetRouteResponse, error)
GetNode(ctx context.Context, in *GetNodeRequest, opts ...grpc.CallOption) (*GetNodeResponse, error)
GetDB(ctx context.Context, in *GetDBRequest, opts ...grpc.CallOption) (*GetDBResponse, error)
GetTable(ctx context.Context, in *GetTableRequest, opts ...grpc.CallOption) (*GetTableResponse, error)
GetTableById(ctx context.Context, in *GetTableByIdRequest, opts ...grpc.CallOption) (*GetTableByIdResponse, error)
GetColumns(ctx context.Context, in *GetColumnsRequest, opts ...grpc.CallOption) (*GetColumnsResponse, error)
GetColumnByName(ctx context.Context, in *GetColumnByNameRequest, opts ...grpc.CallOption) (*GetColumnByNameResponse, error)
GetColumnById(ctx context.Context, in *GetColumnByIdRequest, opts ...grpc.CallOption) (*GetColumnByIdResponse, error)
TruncateTable(ctx context.Context, in *TruncateTableRequest, opts ...grpc.CallOption) (*TruncateTableResponse, error)
AddColumn(ctx context.Context, in *AddColumnRequest, opts ...grpc.CallOption) (*AddColumnResponse, error)
CreateDatabase(ctx context.Context, in *CreateDatabaseRequest, opts ...grpc.CallOption) (*CreateDatabaseResponse, error)
CreateTable(ctx context.Context, in *CreateTableRequest, opts ...grpc.CallOption) (*CreateTableResponse, error)
}
func NewMsServerClient ¶
func NewMsServerClient(cc *grpc.ClientConn) MsServerClient
type MsServerServer ¶
type MsServerServer interface {
NodeHeartbeat(context.Context, *NodeHeartbeatRequest) (*NodeHeartbeatResponse, error)
RangeHeartbeat(context.Context, *RangeHeartbeatRequest) (*RangeHeartbeatResponse, error)
AskSplit(context.Context, *AskSplitRequest) (*AskSplitResponse, error)
ReportSplit(context.Context, *ReportSplitRequest) (*ReportSplitResponse, error)
NodeLogin(context.Context, *NodeLoginRequest) (*NodeLoginResponse, error)
GetNodeId(context.Context, *GetNodeIdRequest) (*GetNodeIdResponse, error)
GetMSLeader(context.Context, *GetMSLeaderRequest) (*GetMSLeaderResponse, error)
GetRoute(context.Context, *GetRouteRequest) (*GetRouteResponse, error)
GetNode(context.Context, *GetNodeRequest) (*GetNodeResponse, error)
GetDB(context.Context, *GetDBRequest) (*GetDBResponse, error)
GetTable(context.Context, *GetTableRequest) (*GetTableResponse, error)
GetTableById(context.Context, *GetTableByIdRequest) (*GetTableByIdResponse, error)
GetColumns(context.Context, *GetColumnsRequest) (*GetColumnsResponse, error)
GetColumnByName(context.Context, *GetColumnByNameRequest) (*GetColumnByNameResponse, error)
GetColumnById(context.Context, *GetColumnByIdRequest) (*GetColumnByIdResponse, error)
TruncateTable(context.Context, *TruncateTableRequest) (*TruncateTableResponse, error)
AddColumn(context.Context, *AddColumnRequest) (*AddColumnResponse, error)
CreateDatabase(context.Context, *CreateDatabaseRequest) (*CreateDatabaseResponse, error)
CreateTable(context.Context, *CreateTableRequest) (*CreateTableResponse, error)
}
type NoLeader ¶
type NoLeader struct {
}
func (*NoLeader) Descriptor ¶
func (*NoLeader) ProtoMessage ¶
func (*NoLeader) ProtoMessage()
type NodeHeartbeatRequest ¶
type NodeHeartbeatRequest struct {
Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
NodeId uint64 `protobuf:"varint,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
Stats *NodeStats `protobuf:"bytes,3,opt,name=stats" json:"stats,omitempty"`
// 孤立的副本列表, 超过一个小时都没有收到leader心跳
IsolatedReplicas []uint64 `protobuf:"varint,4,rep,packed,name=isolated_replicas,json=isolatedReplicas" json:"isolated_replicas,omitempty"`
}
func (*NodeHeartbeatRequest) Descriptor ¶
func (*NodeHeartbeatRequest) Descriptor() ([]byte, []int)
func (*NodeHeartbeatRequest) GetHeader ¶
func (m *NodeHeartbeatRequest) GetHeader() *RequestHeader
func (*NodeHeartbeatRequest) GetIsolatedReplicas ¶
func (m *NodeHeartbeatRequest) GetIsolatedReplicas() []uint64
func (*NodeHeartbeatRequest) GetNodeId ¶
func (m *NodeHeartbeatRequest) GetNodeId() uint64
func (*NodeHeartbeatRequest) GetStats ¶
func (m *NodeHeartbeatRequest) GetStats() *NodeStats
func (*NodeHeartbeatRequest) Marshal ¶
func (m *NodeHeartbeatRequest) Marshal() (dAtA []byte, err error)
func (*NodeHeartbeatRequest) MarshalTo ¶
func (m *NodeHeartbeatRequest) MarshalTo(dAtA []byte) (int, error)
func (*NodeHeartbeatRequest) ProtoMessage ¶
func (*NodeHeartbeatRequest) ProtoMessage()
func (*NodeHeartbeatRequest) Reset ¶
func (m *NodeHeartbeatRequest) Reset()
func (*NodeHeartbeatRequest) Size ¶
func (m *NodeHeartbeatRequest) Size() (n int)
func (*NodeHeartbeatRequest) String ¶
func (m *NodeHeartbeatRequest) String() string
func (*NodeHeartbeatRequest) Unmarshal ¶
func (m *NodeHeartbeatRequest) Unmarshal(dAtA []byte) error
type NodeHeartbeatResponse ¶
type NodeHeartbeatResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
NodeId uint64 `protobuf:"varint,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
// 需要清理的副本列表
DeleteReplicas []uint64 `protobuf:"varint,3,rep,packed,name=delete_replicas,json=deleteReplicas" json:"delete_replicas,omitempty"`
}
func (*NodeHeartbeatResponse) Descriptor ¶
func (*NodeHeartbeatResponse) Descriptor() ([]byte, []int)
func (*NodeHeartbeatResponse) GetDeleteReplicas ¶
func (m *NodeHeartbeatResponse) GetDeleteReplicas() []uint64
func (*NodeHeartbeatResponse) GetHeader ¶
func (m *NodeHeartbeatResponse) GetHeader() *ResponseHeader
func (*NodeHeartbeatResponse) GetNodeId ¶
func (m *NodeHeartbeatResponse) GetNodeId() uint64
func (*NodeHeartbeatResponse) Marshal ¶
func (m *NodeHeartbeatResponse) Marshal() (dAtA []byte, err error)
func (*NodeHeartbeatResponse) MarshalTo ¶
func (m *NodeHeartbeatResponse) MarshalTo(dAtA []byte) (int, error)
func (*NodeHeartbeatResponse) ProtoMessage ¶
func (*NodeHeartbeatResponse) ProtoMessage()
func (*NodeHeartbeatResponse) Reset ¶
func (m *NodeHeartbeatResponse) Reset()
func (*NodeHeartbeatResponse) Size ¶
func (m *NodeHeartbeatResponse) Size() (n int)
func (*NodeHeartbeatResponse) String ¶
func (m *NodeHeartbeatResponse) String() string
func (*NodeHeartbeatResponse) Unmarshal ¶
func (m *NodeHeartbeatResponse) Unmarshal(dAtA []byte) error
type NodeLoginRequest ¶
type NodeLoginRequest struct {
Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
NodeId uint64 `protobuf:"varint,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
}
func (*NodeLoginRequest) Descriptor ¶
func (*NodeLoginRequest) Descriptor() ([]byte, []int)
func (*NodeLoginRequest) GetHeader ¶
func (m *NodeLoginRequest) GetHeader() *RequestHeader
func (*NodeLoginRequest) GetNodeId ¶
func (m *NodeLoginRequest) GetNodeId() uint64
func (*NodeLoginRequest) Marshal ¶
func (m *NodeLoginRequest) Marshal() (dAtA []byte, err error)
func (*NodeLoginRequest) ProtoMessage ¶
func (*NodeLoginRequest) ProtoMessage()
func (*NodeLoginRequest) Reset ¶
func (m *NodeLoginRequest) Reset()
func (*NodeLoginRequest) Size ¶
func (m *NodeLoginRequest) Size() (n int)
func (*NodeLoginRequest) String ¶
func (m *NodeLoginRequest) String() string
func (*NodeLoginRequest) Unmarshal ¶
func (m *NodeLoginRequest) Unmarshal(dAtA []byte) error
type NodeLoginResponse ¶
type NodeLoginResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*NodeLoginResponse) Descriptor ¶
func (*NodeLoginResponse) Descriptor() ([]byte, []int)
func (*NodeLoginResponse) GetHeader ¶
func (m *NodeLoginResponse) GetHeader() *ResponseHeader
func (*NodeLoginResponse) Marshal ¶
func (m *NodeLoginResponse) Marshal() (dAtA []byte, err error)
func (*NodeLoginResponse) MarshalTo ¶
func (m *NodeLoginResponse) MarshalTo(dAtA []byte) (int, error)
func (*NodeLoginResponse) ProtoMessage ¶
func (*NodeLoginResponse) ProtoMessage()
func (*NodeLoginResponse) Reset ¶
func (m *NodeLoginResponse) Reset()
func (*NodeLoginResponse) Size ¶
func (m *NodeLoginResponse) Size() (n int)
func (*NodeLoginResponse) String ¶
func (m *NodeLoginResponse) String() string
func (*NodeLoginResponse) Unmarshal ¶
func (m *NodeLoginResponse) Unmarshal(dAtA []byte) error
type NodeStats ¶
type NodeStats struct {
// Total range count in this node.
RangeCount uint32 `protobuf:"varint,1,opt,name=range_count,json=rangeCount,proto3" json:"range_count,omitempty"`
// Current range split count.
RangeSplitCount uint32 `protobuf:"varint,2,opt,name=range_split_count,json=rangeSplitCount,proto3" json:"range_split_count,omitempty"`
// Current sending snapshot count.
SendingSnapCount uint32 `protobuf:"varint,3,opt,name=sending_snap_count,json=sendingSnapCount,proto3" json:"sending_snap_count,omitempty"`
// Current receiving snapshot count.
ReceivingSnapCount uint32 `protobuf:"varint,4,opt,name=receiving_snap_count,json=receivingSnapCount,proto3" json:"receiving_snap_count,omitempty"`
// Current receiving snapshot count.
ApplyingSnapCount uint32 `protobuf:"varint,5,opt,name=applying_snap_count,json=applyingSnapCount,proto3" json:"applying_snap_count,omitempty"`
RangeLeaderCount uint32 `protobuf:"varint,6,opt,name=range_leader_count,json=rangeLeaderCount,proto3" json:"range_leader_count,omitempty"`
// Capacity for the DS.
Capacity uint64 `protobuf:"varint,7,opt,name=capacity,proto3" json:"capacity,omitempty"`
// Actually used for the DS.
UsedSize uint64 `protobuf:"varint,8,opt,name=used_size,json=usedSize,proto3" json:"used_size,omitempty"`
// Available size for the node.
Available uint64 `protobuf:"varint,9,opt,name=available,proto3" json:"available,omitempty"`
// Bytes written for the DS.
BytesWritten uint64 `protobuf:"varint,10,opt,name=bytes_written,json=bytesWritten,proto3" json:"bytes_written,omitempty"`
// Keys written for the DS.
KeysWritten uint64 `protobuf:"varint,11,opt,name=keys_written,json=keysWritten,proto3" json:"keys_written,omitempty"`
// Bytes read for the DS.
BytesRead uint64 `protobuf:"varint,12,opt,name=bytes_read,json=bytesRead,proto3" json:"bytes_read,omitempty"`
// Keys read for the DS.
KeysRead uint64 `protobuf:"varint,13,opt,name=keys_read,json=keysRead,proto3" json:"keys_read,omitempty"`
// If the node is busy
IsBusy bool `protobuf:"varint,14,opt,name=is_busy,json=isBusy,proto3" json:"is_busy,omitempty"`
// When the node is started (unix timestamp in seconds).
Start uint32 `protobuf:"varint,15,opt,name=start,proto3" json:"start,omitempty"`
}
func (*NodeStats) Descriptor ¶
func (*NodeStats) GetApplyingSnapCount ¶
func (*NodeStats) GetAvailable ¶
func (*NodeStats) GetBytesRead ¶
func (*NodeStats) GetBytesWritten ¶
func (*NodeStats) GetCapacity ¶
func (*NodeStats) GetKeysRead ¶
func (*NodeStats) GetKeysWritten ¶
func (*NodeStats) GetRangeCount ¶
func (*NodeStats) GetRangeLeaderCount ¶
func (*NodeStats) GetRangeSplitCount ¶
func (*NodeStats) GetReceivingSnapCount ¶
func (*NodeStats) GetSendingSnapCount ¶
func (*NodeStats) GetUsedSize ¶
func (*NodeStats) ProtoMessage ¶
func (*NodeStats) ProtoMessage()
type PeerStatus ¶ added in v0.6.3
type PeerStatus struct {
Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer" json:"peer,omitempty"`
Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
Commit uint64 `protobuf:"varint,3,opt,name=commit,proto3" json:"commit,omitempty"`
DownSeconds uint64 `protobuf:"varint,4,opt,name=down_seconds,json=downSeconds,proto3" json:"down_seconds,omitempty"`
Snapshotting bool `protobuf:"varint,5,opt,name=snapshotting,proto3" json:"snapshotting,omitempty"`
}
func (*PeerStatus) Descriptor ¶ added in v0.6.3
func (*PeerStatus) Descriptor() ([]byte, []int)
func (*PeerStatus) GetCommit ¶ added in v0.6.3
func (m *PeerStatus) GetCommit() uint64
func (*PeerStatus) GetDownSeconds ¶ added in v0.6.3
func (m *PeerStatus) GetDownSeconds() uint64
func (*PeerStatus) GetIndex ¶ added in v0.6.3
func (m *PeerStatus) GetIndex() uint64
func (*PeerStatus) GetPeer ¶ added in v0.6.3
func (m *PeerStatus) GetPeer() *metapb.Peer
func (*PeerStatus) GetSnapshotting ¶ added in v0.6.3
func (m *PeerStatus) GetSnapshotting() bool
func (*PeerStatus) Marshal ¶ added in v0.6.3
func (m *PeerStatus) Marshal() (dAtA []byte, err error)
func (*PeerStatus) MarshalTo ¶ added in v0.6.3
func (m *PeerStatus) MarshalTo(dAtA []byte) (int, error)
func (*PeerStatus) ProtoMessage ¶ added in v0.6.3
func (*PeerStatus) ProtoMessage()
func (*PeerStatus) Reset ¶ added in v0.6.3
func (m *PeerStatus) Reset()
func (*PeerStatus) Size ¶ added in v0.6.3
func (m *PeerStatus) Size() (n int)
func (*PeerStatus) String ¶ added in v0.6.3
func (m *PeerStatus) String() string
func (*PeerStatus) Unmarshal ¶ added in v0.6.3
func (m *PeerStatus) Unmarshal(dAtA []byte) error
type RangeHeartbeatRequest ¶
type RangeHeartbeatRequest struct {
Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
Range *metapb.Range `protobuf:"bytes,2,opt,name=range" json:"range,omitempty"`
// leader
Leader *metapb.Peer `protobuf:"bytes,3,opt,name=leader" json:"leader,omitempty"`
// range metric stats
Stats *RangeStats `protobuf:"bytes,6,opt,name=stats" json:"stats,omitempty"`
// leader term
Term uint64 `protobuf:"varint,7,opt,name=term,proto3" json:"term,omitempty"`
// replica status
PeersStatus []*PeerStatus `protobuf:"bytes,8,rep,name=peers_status,json=peersStatus" json:"peers_status,omitempty"`
}
func (*RangeHeartbeatRequest) Descriptor ¶
func (*RangeHeartbeatRequest) Descriptor() ([]byte, []int)
func (*RangeHeartbeatRequest) GetHeader ¶
func (m *RangeHeartbeatRequest) GetHeader() *RequestHeader
func (*RangeHeartbeatRequest) GetLeader ¶
func (m *RangeHeartbeatRequest) GetLeader() *metapb.Peer
func (*RangeHeartbeatRequest) GetPeersStatus ¶ added in v0.6.3
func (m *RangeHeartbeatRequest) GetPeersStatus() []*PeerStatus
func (*RangeHeartbeatRequest) GetRange ¶
func (m *RangeHeartbeatRequest) GetRange() *metapb.Range
func (*RangeHeartbeatRequest) GetStats ¶
func (m *RangeHeartbeatRequest) GetStats() *RangeStats
func (*RangeHeartbeatRequest) GetTerm ¶ added in v0.6.3
func (m *RangeHeartbeatRequest) GetTerm() uint64
func (*RangeHeartbeatRequest) Marshal ¶
func (m *RangeHeartbeatRequest) Marshal() (dAtA []byte, err error)
func (*RangeHeartbeatRequest) MarshalTo ¶
func (m *RangeHeartbeatRequest) MarshalTo(dAtA []byte) (int, error)
func (*RangeHeartbeatRequest) ProtoMessage ¶
func (*RangeHeartbeatRequest) ProtoMessage()
func (*RangeHeartbeatRequest) Reset ¶
func (m *RangeHeartbeatRequest) Reset()
func (*RangeHeartbeatRequest) Size ¶
func (m *RangeHeartbeatRequest) Size() (n int)
func (*RangeHeartbeatRequest) String ¶
func (m *RangeHeartbeatRequest) String() string
func (*RangeHeartbeatRequest) Unmarshal ¶
func (m *RangeHeartbeatRequest) Unmarshal(dAtA []byte) error
type RangeHeartbeatResponse ¶
type RangeHeartbeatResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
RangeId uint64 `protobuf:"varint,2,opt,name=range_id,json=rangeId,proto3" json:"range_id,omitempty"`
Epoch *metapb.RangeEpoch `protobuf:"bytes,3,opt,name=epoch" json:"epoch,omitempty"`
// target leader for task
TargetPeer *metapb.Peer `protobuf:"bytes,4,opt,name=target_peer,json=targetPeer" json:"target_peer,omitempty"`
Task *taskpb.Task `protobuf:"bytes,5,opt,name=task" json:"task,omitempty"`
}
func (*RangeHeartbeatResponse) Descriptor ¶
func (*RangeHeartbeatResponse) Descriptor() ([]byte, []int)
func (*RangeHeartbeatResponse) GetEpoch ¶
func (m *RangeHeartbeatResponse) GetEpoch() *metapb.RangeEpoch
func (*RangeHeartbeatResponse) GetHeader ¶
func (m *RangeHeartbeatResponse) GetHeader() *ResponseHeader
func (*RangeHeartbeatResponse) GetRangeId ¶
func (m *RangeHeartbeatResponse) GetRangeId() uint64
func (*RangeHeartbeatResponse) GetTargetPeer ¶
func (m *RangeHeartbeatResponse) GetTargetPeer() *metapb.Peer
func (*RangeHeartbeatResponse) GetTask ¶
func (m *RangeHeartbeatResponse) GetTask() *taskpb.Task
func (*RangeHeartbeatResponse) Marshal ¶
func (m *RangeHeartbeatResponse) Marshal() (dAtA []byte, err error)
func (*RangeHeartbeatResponse) MarshalTo ¶
func (m *RangeHeartbeatResponse) MarshalTo(dAtA []byte) (int, error)
func (*RangeHeartbeatResponse) ProtoMessage ¶
func (*RangeHeartbeatResponse) ProtoMessage()
func (*RangeHeartbeatResponse) Reset ¶
func (m *RangeHeartbeatResponse) Reset()
func (*RangeHeartbeatResponse) Size ¶
func (m *RangeHeartbeatResponse) Size() (n int)
func (*RangeHeartbeatResponse) String ¶
func (m *RangeHeartbeatResponse) String() string
func (*RangeHeartbeatResponse) Unmarshal ¶
func (m *RangeHeartbeatResponse) Unmarshal(dAtA []byte) error
type RangeStats ¶
type RangeStats struct {
// Bytes read/written during this period.
BytesWritten uint64 `protobuf:"varint,1,opt,name=bytes_written,json=bytesWritten,proto3" json:"bytes_written,omitempty"`
BytesRead uint64 `protobuf:"varint,2,opt,name=bytes_read,json=bytesRead,proto3" json:"bytes_read,omitempty"`
// Keys read/written during this period.
KeysWritten uint64 `protobuf:"varint,3,opt,name=keys_written,json=keysWritten,proto3" json:"keys_written,omitempty"`
KeysRead uint64 `protobuf:"varint,4,opt,name=keys_read,json=keysRead,proto3" json:"keys_read,omitempty"`
// Approximate range size.
ApproximateSize uint64 `protobuf:"varint,5,opt,name=approximate_size,json=approximateSize,proto3" json:"approximate_size,omitempty"`
}
func (*RangeStats) Descriptor ¶
func (*RangeStats) Descriptor() ([]byte, []int)
func (*RangeStats) GetApproximateSize ¶
func (m *RangeStats) GetApproximateSize() uint64
func (*RangeStats) GetBytesRead ¶
func (m *RangeStats) GetBytesRead() uint64
func (*RangeStats) GetBytesWritten ¶
func (m *RangeStats) GetBytesWritten() uint64
func (*RangeStats) GetKeysRead ¶
func (m *RangeStats) GetKeysRead() uint64
func (*RangeStats) GetKeysWritten ¶
func (m *RangeStats) GetKeysWritten() uint64
func (*RangeStats) Marshal ¶
func (m *RangeStats) Marshal() (dAtA []byte, err error)
func (*RangeStats) ProtoMessage ¶
func (*RangeStats) ProtoMessage()
func (*RangeStats) Reset ¶
func (m *RangeStats) Reset()
func (*RangeStats) Size ¶
func (m *RangeStats) Size() (n int)
func (*RangeStats) String ¶
func (m *RangeStats) String() string
func (*RangeStats) Unmarshal ¶
func (m *RangeStats) Unmarshal(dAtA []byte) error
type ReportSplitRequest ¶
type ReportSplitRequest struct {
Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
Left *metapb.Range `protobuf:"bytes,2,opt,name=left" json:"left,omitempty"`
Right *metapb.Range `protobuf:"bytes,3,opt,name=right" json:"right,omitempty"`
}
func (*ReportSplitRequest) Descriptor ¶
func (*ReportSplitRequest) Descriptor() ([]byte, []int)
func (*ReportSplitRequest) GetHeader ¶
func (m *ReportSplitRequest) GetHeader() *RequestHeader
func (*ReportSplitRequest) GetLeft ¶
func (m *ReportSplitRequest) GetLeft() *metapb.Range
func (*ReportSplitRequest) GetRight ¶
func (m *ReportSplitRequest) GetRight() *metapb.Range
func (*ReportSplitRequest) Marshal ¶
func (m *ReportSplitRequest) Marshal() (dAtA []byte, err error)
func (*ReportSplitRequest) MarshalTo ¶
func (m *ReportSplitRequest) MarshalTo(dAtA []byte) (int, error)
func (*ReportSplitRequest) ProtoMessage ¶
func (*ReportSplitRequest) ProtoMessage()
func (*ReportSplitRequest) Reset ¶
func (m *ReportSplitRequest) Reset()
func (*ReportSplitRequest) Size ¶
func (m *ReportSplitRequest) Size() (n int)
func (*ReportSplitRequest) String ¶
func (m *ReportSplitRequest) String() string
func (*ReportSplitRequest) Unmarshal ¶
func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error
type ReportSplitResponse ¶
type ReportSplitResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*ReportSplitResponse) Descriptor ¶
func (*ReportSplitResponse) Descriptor() ([]byte, []int)
func (*ReportSplitResponse) GetHeader ¶
func (m *ReportSplitResponse) GetHeader() *ResponseHeader
func (*ReportSplitResponse) Marshal ¶
func (m *ReportSplitResponse) Marshal() (dAtA []byte, err error)
func (*ReportSplitResponse) MarshalTo ¶
func (m *ReportSplitResponse) MarshalTo(dAtA []byte) (int, error)
func (*ReportSplitResponse) ProtoMessage ¶
func (*ReportSplitResponse) ProtoMessage()
func (*ReportSplitResponse) Reset ¶
func (m *ReportSplitResponse) Reset()
func (*ReportSplitResponse) Size ¶
func (m *ReportSplitResponse) Size() (n int)
func (*ReportSplitResponse) String ¶
func (m *ReportSplitResponse) String() string
func (*ReportSplitResponse) Unmarshal ¶
func (m *ReportSplitResponse) Unmarshal(dAtA []byte) error
type RequestHeader ¶
type RequestHeader struct {
ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
}
func (*RequestHeader) Descriptor ¶
func (*RequestHeader) Descriptor() ([]byte, []int)
func (*RequestHeader) GetClusterId ¶
func (m *RequestHeader) GetClusterId() uint64
func (*RequestHeader) Marshal ¶
func (m *RequestHeader) Marshal() (dAtA []byte, err error)
func (*RequestHeader) ProtoMessage ¶
func (*RequestHeader) ProtoMessage()
func (*RequestHeader) Reset ¶
func (m *RequestHeader) Reset()
func (*RequestHeader) Size ¶
func (m *RequestHeader) Size() (n int)
func (*RequestHeader) String ¶
func (m *RequestHeader) String() string
func (*RequestHeader) Unmarshal ¶
func (m *RequestHeader) Unmarshal(dAtA []byte) error
type ResponseHeader ¶
type ResponseHeader struct {
ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"`
}
func (*ResponseHeader) Descriptor ¶
func (*ResponseHeader) Descriptor() ([]byte, []int)
func (*ResponseHeader) GetClusterId ¶
func (m *ResponseHeader) GetClusterId() uint64
func (*ResponseHeader) GetError ¶
func (m *ResponseHeader) GetError() *Error
func (*ResponseHeader) Marshal ¶
func (m *ResponseHeader) Marshal() (dAtA []byte, err error)
func (*ResponseHeader) ProtoMessage ¶
func (*ResponseHeader) ProtoMessage()
func (*ResponseHeader) Reset ¶
func (m *ResponseHeader) Reset()
func (*ResponseHeader) Size ¶
func (m *ResponseHeader) Size() (n int)
func (*ResponseHeader) String ¶
func (m *ResponseHeader) String() string
func (*ResponseHeader) Unmarshal ¶
func (m *ResponseHeader) Unmarshal(dAtA []byte) error
type TruncateTableRequest ¶
type TruncateTableRequest struct {
Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
DbId uint64 `protobuf:"varint,2,opt,name=db_id,json=dbId,proto3" json:"db_id,omitempty"`
TableId uint64 `protobuf:"varint,3,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
}
func (*TruncateTableRequest) Descriptor ¶
func (*TruncateTableRequest) Descriptor() ([]byte, []int)
func (*TruncateTableRequest) GetDbId ¶
func (m *TruncateTableRequest) GetDbId() uint64
func (*TruncateTableRequest) GetHeader ¶
func (m *TruncateTableRequest) GetHeader() *RequestHeader
func (*TruncateTableRequest) GetTableId ¶
func (m *TruncateTableRequest) GetTableId() uint64
func (*TruncateTableRequest) Marshal ¶
func (m *TruncateTableRequest) Marshal() (dAtA []byte, err error)
func (*TruncateTableRequest) MarshalTo ¶
func (m *TruncateTableRequest) MarshalTo(dAtA []byte) (int, error)
func (*TruncateTableRequest) ProtoMessage ¶
func (*TruncateTableRequest) ProtoMessage()
func (*TruncateTableRequest) Reset ¶
func (m *TruncateTableRequest) Reset()
func (*TruncateTableRequest) Size ¶
func (m *TruncateTableRequest) Size() (n int)
func (*TruncateTableRequest) String ¶
func (m *TruncateTableRequest) String() string
func (*TruncateTableRequest) Unmarshal ¶
func (m *TruncateTableRequest) Unmarshal(dAtA []byte) error
type TruncateTableResponse ¶
type TruncateTableResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*TruncateTableResponse) Descriptor ¶
func (*TruncateTableResponse) Descriptor() ([]byte, []int)
func (*TruncateTableResponse) GetHeader ¶
func (m *TruncateTableResponse) GetHeader() *ResponseHeader
func (*TruncateTableResponse) Marshal ¶
func (m *TruncateTableResponse) Marshal() (dAtA []byte, err error)
func (*TruncateTableResponse) MarshalTo ¶
func (m *TruncateTableResponse) MarshalTo(dAtA []byte) (int, error)
func (*TruncateTableResponse) ProtoMessage ¶
func (*TruncateTableResponse) ProtoMessage()
func (*TruncateTableResponse) Reset ¶
func (m *TruncateTableResponse) Reset()
func (*TruncateTableResponse) Size ¶
func (m *TruncateTableResponse) Size() (n int)
func (*TruncateTableResponse) String ¶
func (m *TruncateTableResponse) String() string
func (*TruncateTableResponse) Unmarshal ¶
func (m *TruncateTableResponse) Unmarshal(dAtA []byte) error
Click to show internal directories.
Click to hide internal directories.