Documentation ¶
Index ¶
- Variables
- type Cluster
- func (*Cluster) Descriptor() ([]byte, []int)deprecated
- func (x *Cluster) GetCreatedAt() uint64
- func (x *Cluster) GetEnableSchedule() bool
- func (x *Cluster) GetId() uint32
- func (x *Cluster) GetMinNodeCount() uint32
- func (x *Cluster) GetModifiedAt() uint64
- func (x *Cluster) GetName() string
- func (x *Cluster) GetPartitionTableRatioOfNodes() uint32
- func (x *Cluster) GetProcedureExecutingBatchSize() uint32
- func (x *Cluster) GetReplicationFactor() uint32
- func (x *Cluster) GetShardTotal() uint32
- func (x *Cluster) GetTopologyType() Cluster_TopologyType
- func (*Cluster) ProtoMessage()
- func (x *Cluster) ProtoReflect() protoreflect.Message
- func (x *Cluster) Reset()
- func (x *Cluster) String() string
- type ClusterView
- func (*ClusterView) Descriptor() ([]byte, []int)deprecated
- func (x *ClusterView) GetCause() string
- func (x *ClusterView) GetClusterId() uint32
- func (x *ClusterView) GetCreatedAt() uint64
- func (x *ClusterView) GetShardNodes() []*ShardNode
- func (x *ClusterView) GetState() ClusterView_ClusterState
- func (x *ClusterView) GetVersion() uint64
- func (*ClusterView) ProtoMessage()
- func (x *ClusterView) ProtoReflect() protoreflect.Message
- func (x *ClusterView) Reset()
- func (x *ClusterView) String() string
- type ClusterView_ClusterState
- func (ClusterView_ClusterState) Descriptor() protoreflect.EnumDescriptor
- func (x ClusterView_ClusterState) Enum() *ClusterView_ClusterState
- func (ClusterView_ClusterState) EnumDescriptor() ([]byte, []int)deprecated
- func (x ClusterView_ClusterState) Number() protoreflect.EnumNumber
- func (x ClusterView_ClusterState) String() string
- func (ClusterView_ClusterState) Type() protoreflect.EnumType
- type Cluster_TopologyType
- func (Cluster_TopologyType) Descriptor() protoreflect.EnumDescriptor
- func (x Cluster_TopologyType) Enum() *Cluster_TopologyType
- func (Cluster_TopologyType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Cluster_TopologyType) Number() protoreflect.EnumNumber
- func (x Cluster_TopologyType) String() string
- func (Cluster_TopologyType) Type() protoreflect.EnumType
- type HashPartitionInfo
- func (*HashPartitionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *HashPartitionInfo) GetDefinitions() []*PartitionDefinition
- func (x *HashPartitionInfo) GetExpr() []byte
- func (x *HashPartitionInfo) GetLinear() bool
- func (x *HashPartitionInfo) GetVersion() int32
- func (*HashPartitionInfo) ProtoMessage()
- func (x *HashPartitionInfo) ProtoReflect() protoreflect.Message
- func (x *HashPartitionInfo) Reset()
- func (x *HashPartitionInfo) String() string
- type KeyPartitionInfo
- func (*KeyPartitionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *KeyPartitionInfo) GetDefinitions() []*PartitionDefinition
- func (x *KeyPartitionInfo) GetLinear() bool
- func (x *KeyPartitionInfo) GetPartitionKey() []string
- func (x *KeyPartitionInfo) GetVersion() int32
- func (*KeyPartitionInfo) ProtoMessage()
- func (x *KeyPartitionInfo) ProtoReflect() protoreflect.Message
- func (x *KeyPartitionInfo) Reset()
- func (x *KeyPartitionInfo) String() string
- type Node
- func (*Node) Descriptor() ([]byte, []int)deprecated
- func (x *Node) GetLastTouchTime() uint64
- func (x *Node) GetName() string
- func (x *Node) GetState() NodeState
- func (x *Node) GetStats() *NodeStats
- func (*Node) ProtoMessage()
- func (x *Node) ProtoReflect() protoreflect.Message
- func (x *Node) Reset()
- func (x *Node) String() string
- type NodeState
- type NodeStats
- func (*NodeStats) Descriptor() ([]byte, []int)deprecated
- func (x *NodeStats) GetLease() uint32
- func (x *NodeStats) GetNodeVersion() string
- func (x *NodeStats) GetZone() string
- func (*NodeStats) ProtoMessage()
- func (x *NodeStats) ProtoReflect() protoreflect.Message
- func (x *NodeStats) Reset()
- func (x *NodeStats) String() string
- type PartitionDefinition
- func (*PartitionDefinition) Descriptor() ([]byte, []int)deprecated
- func (x *PartitionDefinition) GetName() string
- func (x *PartitionDefinition) GetOrigin() string
- func (m *PartitionDefinition) GetOriginName() isPartitionDefinition_OriginName
- func (*PartitionDefinition) ProtoMessage()
- func (x *PartitionDefinition) ProtoReflect() protoreflect.Message
- func (x *PartitionDefinition) Reset()
- func (x *PartitionDefinition) String() string
- type PartitionDefinition_Origin
- type PartitionInfo
- func (*PartitionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PartitionInfo) GetHash() *HashPartitionInfo
- func (m *PartitionInfo) GetInfo() isPartitionInfo_Info
- func (x *PartitionInfo) GetKey() *KeyPartitionInfo
- func (x *PartitionInfo) GetRandom() *RandomPartitionInfo
- func (*PartitionInfo) ProtoMessage()
- func (x *PartitionInfo) ProtoReflect() protoreflect.Message
- func (x *PartitionInfo) Reset()
- func (x *PartitionInfo) String() string
- type PartitionInfo_Hash
- type PartitionInfo_Key
- type PartitionInfo_Random
- type RandomPartitionInfo
- func (*RandomPartitionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *RandomPartitionInfo) GetDefinitions() []*PartitionDefinition
- func (*RandomPartitionInfo) ProtoMessage()
- func (x *RandomPartitionInfo) ProtoReflect() protoreflect.Message
- func (x *RandomPartitionInfo) Reset()
- func (x *RandomPartitionInfo) String() string
- type Schema
- func (*Schema) Descriptor() ([]byte, []int)deprecated
- func (x *Schema) GetClusterId() uint32
- func (x *Schema) GetCreatedAt() uint64
- func (x *Schema) GetId() uint32
- func (x *Schema) GetName() string
- func (*Schema) ProtoMessage()
- func (x *Schema) ProtoReflect() protoreflect.Message
- func (x *Schema) Reset()
- func (x *Schema) String() string
- type ShardNode
- func (*ShardNode) Descriptor() ([]byte, []int)deprecated
- func (x *ShardNode) GetId() uint32
- func (x *ShardNode) GetNode() string
- func (x *ShardNode) GetShardRole() ShardRole
- func (*ShardNode) ProtoMessage()
- func (x *ShardNode) ProtoReflect() protoreflect.Message
- func (x *ShardNode) Reset()
- func (x *ShardNode) String() string
- type ShardRole
- type ShardView
- func (*ShardView) Descriptor() ([]byte, []int)deprecated
- func (x *ShardView) GetCreatedAt() uint64
- func (x *ShardView) GetShardId() uint32
- func (x *ShardView) GetTableIds() []uint64
- func (x *ShardView) GetVersion() uint64
- func (*ShardView) ProtoMessage()
- func (x *ShardView) ProtoReflect() protoreflect.Message
- func (x *ShardView) Reset()
- func (x *ShardView) String() string
- type Table
- func (*Table) Descriptor() ([]byte, []int)deprecated
- func (x *Table) GetCreatedAt() uint64
- func (x *Table) GetDesc() string
- func (x *Table) GetId() uint64
- func (x *Table) GetName() string
- func (x *Table) GetPartitionInfo() *PartitionInfo
- func (x *Table) GetSchemaId() uint32
- func (*Table) ProtoMessage()
- func (x *Table) ProtoReflect() protoreflect.Message
- func (x *Table) Reset()
- func (x *Table) String() string
Constants ¶
This section is empty.
Variables ¶
var ( NodeState_name = map[int32]string{ 0: "ONLINE", 1: "OFFLINE", } NodeState_value = map[string]int32{ "ONLINE": 0, "OFFLINE": 1, } )
Enum value maps for NodeState.
var ( ShardRole_name = map[int32]string{ 0: "LEADER", 1: "FOLLOWER", } ShardRole_value = map[string]int32{ "LEADER": 0, "FOLLOWER": 1, } )
Enum value maps for ShardRole.
var ( Cluster_TopologyType_name = map[int32]string{ 0: "UNKNOWN", 1: "STATIC", 2: "DYNAMIC", } Cluster_TopologyType_value = map[string]int32{ "UNKNOWN": 0, "STATIC": 1, "DYNAMIC": 2, } )
Enum value maps for Cluster_TopologyType.
var ( ClusterView_ClusterState_name = map[int32]string{ 0: "EMPTY", 1: "PREPARE_REBALANCE", 2: "AWAITING_CLOSE", 3: "AWAITING_OPEN", 4: "STABLE", } ClusterView_ClusterState_value = map[string]int32{ "EMPTY": 0, "PREPARE_REBALANCE": 1, "AWAITING_CLOSE": 2, "AWAITING_OPEN": 3, "STABLE": 4, } )
Enum value maps for ClusterView_ClusterState.
var File_cluster_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` MinNodeCount uint32 `protobuf:"varint,3,opt,name=min_node_count,json=minNodeCount,proto3" json:"min_node_count,omitempty"` // the number of shard replication ReplicationFactor uint32 `protobuf:"varint,4,opt,name=replication_factor,json=replicationFactor,proto3" json:"replication_factor,omitempty"` ShardTotal uint32 `protobuf:"varint,5,opt,name=shard_total,json=shardTotal,proto3" json:"shard_total,omitempty"` CreatedAt uint64 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Deprecated: This field is deprecated after HoraeDB v1.2.0 . PartitionTableRatioOfNodes uint32 `` /* 146-byte string literal not displayed */ ModifiedAt uint64 `protobuf:"varint,8,opt,name=modified_at,json=modifiedAt,proto3" json:"modified_at,omitempty"` EnableSchedule bool `protobuf:"varint,9,opt,name=enable_schedule,json=enableSchedule,proto3" json:"enable_schedule,omitempty"` TopologyType Cluster_TopologyType `` /* 133-byte string literal not displayed */ // The maximum number of concurrent executing procedures in a single // `BatchProcedure`, it is only used in `TransferLeaderBatchProcedure` now. ProcedureExecutingBatchSize uint32 `` /* 148-byte string literal not displayed */ // contains filtered or unexported fields }
example: cluster 1: v1/cluster/1 -> horaemeta.Cluster cluster 2: v1/cluster/2 -> horaemeta.Cluster
func (*Cluster) Descriptor
deprecated
func (*Cluster) GetCreatedAt ¶
func (*Cluster) GetEnableSchedule ¶
func (*Cluster) GetMinNodeCount ¶
func (*Cluster) GetModifiedAt ¶
func (*Cluster) GetPartitionTableRatioOfNodes ¶
func (*Cluster) GetProcedureExecutingBatchSize ¶
func (*Cluster) GetReplicationFactor ¶
func (*Cluster) GetShardTotal ¶
func (*Cluster) GetTopologyType ¶
func (x *Cluster) GetTopologyType() Cluster_TopologyType
func (*Cluster) ProtoMessage ¶
func (*Cluster) ProtoMessage()
func (*Cluster) ProtoReflect ¶
func (x *Cluster) ProtoReflect() protoreflect.Message
type ClusterView ¶
type ClusterView struct { ClusterId uint32 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` State ClusterView_ClusterState `protobuf:"varint,3,opt,name=state,proto3,enum=cluster.ClusterView_ClusterState" json:"state,omitempty"` ShardNodes []*ShardNode `protobuf:"bytes,4,rep,name=shard_nodes,json=shardNodes,proto3" json:"shard_nodes,omitempty"` // cluster view's changed cause Cause string `protobuf:"bytes,5,opt,name=cause,proto3" json:"cause,omitempty"` CreatedAt uint64 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
example: cluster 1: v1/cluster/1/view/latest_version -> 99
v1/cluster/1/view/99 -> horaemeta.ClusterView v1/cluster/1/view/98 -> horaemeta.ClusterView
func (*ClusterView) Descriptor
deprecated
func (*ClusterView) Descriptor() ([]byte, []int)
Deprecated: Use ClusterView.ProtoReflect.Descriptor instead.
func (*ClusterView) GetCause ¶
func (x *ClusterView) GetCause() string
func (*ClusterView) GetClusterId ¶
func (x *ClusterView) GetClusterId() uint32
func (*ClusterView) GetCreatedAt ¶
func (x *ClusterView) GetCreatedAt() uint64
func (*ClusterView) GetShardNodes ¶
func (x *ClusterView) GetShardNodes() []*ShardNode
func (*ClusterView) GetState ¶
func (x *ClusterView) GetState() ClusterView_ClusterState
func (*ClusterView) GetVersion ¶
func (x *ClusterView) GetVersion() uint64
func (*ClusterView) ProtoMessage ¶
func (*ClusterView) ProtoMessage()
func (*ClusterView) ProtoReflect ¶
func (x *ClusterView) ProtoReflect() protoreflect.Message
func (*ClusterView) Reset ¶
func (x *ClusterView) Reset()
func (*ClusterView) String ¶
func (x *ClusterView) String() string
type ClusterView_ClusterState ¶
type ClusterView_ClusterState int32
const ( ClusterView_EMPTY ClusterView_ClusterState = 0 ClusterView_PREPARE_REBALANCE ClusterView_ClusterState = 1 ClusterView_AWAITING_CLOSE ClusterView_ClusterState = 2 ClusterView_AWAITING_OPEN ClusterView_ClusterState = 3 ClusterView_STABLE ClusterView_ClusterState = 4 )
func (ClusterView_ClusterState) Descriptor ¶
func (ClusterView_ClusterState) Descriptor() protoreflect.EnumDescriptor
func (ClusterView_ClusterState) Enum ¶
func (x ClusterView_ClusterState) Enum() *ClusterView_ClusterState
func (ClusterView_ClusterState) EnumDescriptor
deprecated
func (ClusterView_ClusterState) EnumDescriptor() ([]byte, []int)
Deprecated: Use ClusterView_ClusterState.Descriptor instead.
func (ClusterView_ClusterState) Number ¶
func (x ClusterView_ClusterState) Number() protoreflect.EnumNumber
func (ClusterView_ClusterState) String ¶
func (x ClusterView_ClusterState) String() string
func (ClusterView_ClusterState) Type ¶
func (ClusterView_ClusterState) Type() protoreflect.EnumType
type Cluster_TopologyType ¶
type Cluster_TopologyType int32
const ( Cluster_UNKNOWN Cluster_TopologyType = 0 Cluster_STATIC Cluster_TopologyType = 1 Cluster_DYNAMIC Cluster_TopologyType = 2 )
func (Cluster_TopologyType) Descriptor ¶
func (Cluster_TopologyType) Descriptor() protoreflect.EnumDescriptor
func (Cluster_TopologyType) Enum ¶
func (x Cluster_TopologyType) Enum() *Cluster_TopologyType
func (Cluster_TopologyType) EnumDescriptor
deprecated
func (Cluster_TopologyType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Cluster_TopologyType.Descriptor instead.
func (Cluster_TopologyType) Number ¶
func (x Cluster_TopologyType) Number() protoreflect.EnumNumber
func (Cluster_TopologyType) String ¶
func (x Cluster_TopologyType) String() string
func (Cluster_TopologyType) Type ¶
func (Cluster_TopologyType) Type() protoreflect.EnumType
type HashPartitionInfo ¶
type HashPartitionInfo struct { Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` Definitions []*PartitionDefinition `protobuf:"bytes,2,rep,name=definitions,proto3" json:"definitions,omitempty"` Expr []byte `protobuf:"bytes,3,opt,name=expr,proto3" json:"expr,omitempty"` Linear bool `protobuf:"varint,4,opt,name=linear,proto3" json:"linear,omitempty"` // contains filtered or unexported fields }
func (*HashPartitionInfo) Descriptor
deprecated
func (*HashPartitionInfo) Descriptor() ([]byte, []int)
Deprecated: Use HashPartitionInfo.ProtoReflect.Descriptor instead.
func (*HashPartitionInfo) GetDefinitions ¶
func (x *HashPartitionInfo) GetDefinitions() []*PartitionDefinition
func (*HashPartitionInfo) GetExpr ¶
func (x *HashPartitionInfo) GetExpr() []byte
func (*HashPartitionInfo) GetLinear ¶
func (x *HashPartitionInfo) GetLinear() bool
func (*HashPartitionInfo) GetVersion ¶
func (x *HashPartitionInfo) GetVersion() int32
func (*HashPartitionInfo) ProtoMessage ¶
func (*HashPartitionInfo) ProtoMessage()
func (*HashPartitionInfo) ProtoReflect ¶
func (x *HashPartitionInfo) ProtoReflect() protoreflect.Message
func (*HashPartitionInfo) Reset ¶
func (x *HashPartitionInfo) Reset()
func (*HashPartitionInfo) String ¶
func (x *HashPartitionInfo) String() string
type KeyPartitionInfo ¶
type KeyPartitionInfo struct { Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` Definitions []*PartitionDefinition `protobuf:"bytes,2,rep,name=definitions,proto3" json:"definitions,omitempty"` PartitionKey []string `protobuf:"bytes,3,rep,name=partition_key,json=partitionKey,proto3" json:"partition_key,omitempty"` Linear bool `protobuf:"varint,4,opt,name=linear,proto3" json:"linear,omitempty"` // contains filtered or unexported fields }
func (*KeyPartitionInfo) Descriptor
deprecated
func (*KeyPartitionInfo) Descriptor() ([]byte, []int)
Deprecated: Use KeyPartitionInfo.ProtoReflect.Descriptor instead.
func (*KeyPartitionInfo) GetDefinitions ¶
func (x *KeyPartitionInfo) GetDefinitions() []*PartitionDefinition
func (*KeyPartitionInfo) GetLinear ¶
func (x *KeyPartitionInfo) GetLinear() bool
func (*KeyPartitionInfo) GetPartitionKey ¶
func (x *KeyPartitionInfo) GetPartitionKey() []string
func (*KeyPartitionInfo) GetVersion ¶
func (x *KeyPartitionInfo) GetVersion() int32
func (*KeyPartitionInfo) ProtoMessage ¶
func (*KeyPartitionInfo) ProtoMessage()
func (*KeyPartitionInfo) ProtoReflect ¶
func (x *KeyPartitionInfo) ProtoReflect() protoreflect.Message
func (*KeyPartitionInfo) Reset ¶
func (x *KeyPartitionInfo) Reset()
func (*KeyPartitionInfo) String ¶
func (x *KeyPartitionInfo) String() string
type Node ¶
type Node struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Stats *NodeStats `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"` LastTouchTime uint64 `protobuf:"varint,3,opt,name=last_touch_time,json=lastTouchTime,proto3" json:"last_touch_time,omitempty"` State NodeState `protobuf:"varint,4,opt,name=state,proto3,enum=cluster.NodeState" json:"state,omitempty"` // contains filtered or unexported fields }
example: cluster 1: v1/cluster/1/node/127.0.0.1:8081 -> value is horaemeta.Node
v1/cluster/1/node/127.0.0.2:8081 -> value is horaemeta.Node
func (*Node) Descriptor
deprecated
func (*Node) GetLastTouchTime ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) ProtoReflect ¶
func (x *Node) ProtoReflect() protoreflect.Message
type NodeState ¶
type NodeState int32
func (NodeState) Descriptor ¶
func (NodeState) Descriptor() protoreflect.EnumDescriptor
func (NodeState) EnumDescriptor
deprecated
func (NodeState) Number ¶
func (x NodeState) Number() protoreflect.EnumNumber
func (NodeState) Type ¶
func (NodeState) Type() protoreflect.EnumType
type NodeStats ¶
type NodeStats struct { Lease uint32 `protobuf:"varint,1,opt,name=lease,proto3" json:"lease,omitempty"` Zone string `protobuf:"bytes,2,opt,name=zone,proto3" json:"zone,omitempty"` NodeVersion string `protobuf:"bytes,3,opt,name=node_version,json=nodeVersion,proto3" json:"node_version,omitempty"` // contains filtered or unexported fields }
func (*NodeStats) Descriptor
deprecated
func (*NodeStats) GetNodeVersion ¶
func (*NodeStats) ProtoMessage ¶
func (*NodeStats) ProtoMessage()
func (*NodeStats) ProtoReflect ¶
func (x *NodeStats) ProtoReflect() protoreflect.Message
type PartitionDefinition ¶
type PartitionDefinition struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Types that are assignable to OriginName: // // *PartitionDefinition_Origin OriginName isPartitionDefinition_OriginName `protobuf_oneof:"origin_name"` // contains filtered or unexported fields }
func (*PartitionDefinition) Descriptor
deprecated
func (*PartitionDefinition) Descriptor() ([]byte, []int)
Deprecated: Use PartitionDefinition.ProtoReflect.Descriptor instead.
func (*PartitionDefinition) GetName ¶
func (x *PartitionDefinition) GetName() string
func (*PartitionDefinition) GetOrigin ¶
func (x *PartitionDefinition) GetOrigin() string
func (*PartitionDefinition) GetOriginName ¶
func (m *PartitionDefinition) GetOriginName() isPartitionDefinition_OriginName
func (*PartitionDefinition) ProtoMessage ¶
func (*PartitionDefinition) ProtoMessage()
func (*PartitionDefinition) ProtoReflect ¶
func (x *PartitionDefinition) ProtoReflect() protoreflect.Message
func (*PartitionDefinition) Reset ¶
func (x *PartitionDefinition) Reset()
func (*PartitionDefinition) String ¶
func (x *PartitionDefinition) String() string
type PartitionDefinition_Origin ¶
type PartitionDefinition_Origin struct {
Origin string `protobuf:"bytes,2,opt,name=origin,proto3,oneof"`
}
type PartitionInfo ¶
type PartitionInfo struct { // Types that are assignable to Info: // // *PartitionInfo_Hash // *PartitionInfo_Key // *PartitionInfo_Random Info isPartitionInfo_Info `protobuf_oneof:"info"` // contains filtered or unexported fields }
func (*PartitionInfo) Descriptor
deprecated
func (*PartitionInfo) Descriptor() ([]byte, []int)
Deprecated: Use PartitionInfo.ProtoReflect.Descriptor instead.
func (*PartitionInfo) GetHash ¶
func (x *PartitionInfo) GetHash() *HashPartitionInfo
func (*PartitionInfo) GetInfo ¶
func (m *PartitionInfo) GetInfo() isPartitionInfo_Info
func (*PartitionInfo) GetKey ¶
func (x *PartitionInfo) GetKey() *KeyPartitionInfo
func (*PartitionInfo) GetRandom ¶
func (x *PartitionInfo) GetRandom() *RandomPartitionInfo
func (*PartitionInfo) ProtoMessage ¶
func (*PartitionInfo) ProtoMessage()
func (*PartitionInfo) ProtoReflect ¶
func (x *PartitionInfo) ProtoReflect() protoreflect.Message
func (*PartitionInfo) Reset ¶
func (x *PartitionInfo) Reset()
func (*PartitionInfo) String ¶
func (x *PartitionInfo) String() string
type PartitionInfo_Hash ¶
type PartitionInfo_Hash struct {
Hash *HashPartitionInfo `protobuf:"bytes,1,opt,name=hash,proto3,oneof"`
}
type PartitionInfo_Key ¶
type PartitionInfo_Key struct {
Key *KeyPartitionInfo `protobuf:"bytes,2,opt,name=key,proto3,oneof"`
}
type PartitionInfo_Random ¶
type PartitionInfo_Random struct {
Random *RandomPartitionInfo `protobuf:"bytes,3,opt,name=random,proto3,oneof"`
}
type RandomPartitionInfo ¶
type RandomPartitionInfo struct { Definitions []*PartitionDefinition `protobuf:"bytes,1,rep,name=definitions,proto3" json:"definitions,omitempty"` // contains filtered or unexported fields }
func (*RandomPartitionInfo) Descriptor
deprecated
func (*RandomPartitionInfo) Descriptor() ([]byte, []int)
Deprecated: Use RandomPartitionInfo.ProtoReflect.Descriptor instead.
func (*RandomPartitionInfo) GetDefinitions ¶
func (x *RandomPartitionInfo) GetDefinitions() []*PartitionDefinition
func (*RandomPartitionInfo) ProtoMessage ¶
func (*RandomPartitionInfo) ProtoMessage()
func (*RandomPartitionInfo) ProtoReflect ¶
func (x *RandomPartitionInfo) ProtoReflect() protoreflect.Message
func (*RandomPartitionInfo) Reset ¶
func (x *RandomPartitionInfo) Reset()
func (*RandomPartitionInfo) String ¶
func (x *RandomPartitionInfo) String() string
type Schema ¶
type Schema struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ClusterId uint32 `protobuf:"varint,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` CreatedAt uint64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
example: cluster 1: v1/cluster/1/schema/1 -> horaemeta.Schema
v1/cluster/1/schema/2 -> horaemeta.Schema v1/cluster/1/schema/3 -> horaemeta.Schema
func (*Schema) Descriptor
deprecated
func (*Schema) GetClusterId ¶
func (*Schema) GetCreatedAt ¶
func (*Schema) ProtoMessage ¶
func (*Schema) ProtoMessage()
func (*Schema) ProtoReflect ¶
func (x *Schema) ProtoReflect() protoreflect.Message
type ShardNode ¶
type ShardNode struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ShardRole ShardRole `protobuf:"varint,2,opt,name=shard_role,json=shardRole,proto3,enum=cluster.ShardRole" json:"shard_role,omitempty"` Node string `protobuf:"bytes,3,opt,name=node,proto3" json:"node,omitempty"` // contains filtered or unexported fields }
func (*ShardNode) Descriptor
deprecated
func (*ShardNode) GetShardRole ¶
func (*ShardNode) ProtoMessage ¶
func (*ShardNode) ProtoMessage()
func (*ShardNode) ProtoReflect ¶
func (x *ShardNode) ProtoReflect() protoreflect.Message
type ShardRole ¶
type ShardRole int32
func (ShardRole) Descriptor ¶
func (ShardRole) Descriptor() protoreflect.EnumDescriptor
func (ShardRole) EnumDescriptor
deprecated
func (ShardRole) Number ¶
func (x ShardRole) Number() protoreflect.EnumNumber
func (ShardRole) Type ¶
func (ShardRole) Type() protoreflect.EnumType
type ShardView ¶
type ShardView struct { ShardId uint32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` TableIds []uint64 `protobuf:"varint,3,rep,packed,name=table_ids,json=tableIds,proto3" json:"table_ids,omitempty"` CreatedAt uint64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
example: cluster 1: v1/cluster/1/shard_view/1/latest_version -> 9
v1/cluster/1/shard_view/1/9 -> horaemeta.ShardView v1/cluster/1/shard_view/1/8 -> horaemeta.ShardView v1/cluster/1/shard_view/2/latest_version -> 3 v1/cluster/1/shard_view/2/3 -> horaemeta.ShardView
func (*ShardView) Descriptor
deprecated
func (*ShardView) GetCreatedAt ¶
func (*ShardView) GetShardId ¶
func (*ShardView) GetTableIds ¶
func (*ShardView) GetVersion ¶
func (*ShardView) ProtoMessage ¶
func (*ShardView) ProtoMessage()
func (*ShardView) ProtoReflect ¶
func (x *ShardView) ProtoReflect() protoreflect.Message
type Table ¶
type Table struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` SchemaId uint32 `protobuf:"varint,3,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty"` Desc string `protobuf:"bytes,4,opt,name=desc,proto3" json:"desc,omitempty"` CreatedAt uint64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` PartitionInfo *PartitionInfo `protobuf:"bytes,6,opt,name=partition_info,json=partitionInfo,proto3" json:"partition_info,omitempty"` // contains filtered or unexported fields }
example: cluster 1: v1/cluster/1/schema/1/table/1 -> horaemeta.Table
v1/cluster/1/schema/1/table/2 -> horaemeta.Table v1/cluster/1/schema/1/table/3 -> horaemeta.Table v1/cluster/1/schema/2/table/4 -> horaemeta.Table
cluster 1 tableName-> ID :
v1/cluster/1/schema/1/table_name_to_id/table1 -> 1 v1/cluster/1/schema/1/table_name_to_id/table2 -> 2 v1/cluster/1/schema/1/table_name_to_id/table3 -> 3 v1/cluster/1/schema/2/table_name_to_id/table4 -> 4
func (*Table) Descriptor
deprecated
func (*Table) GetCreatedAt ¶
func (*Table) GetPartitionInfo ¶
func (x *Table) GetPartitionInfo() *PartitionInfo
func (*Table) GetSchemaId ¶
func (*Table) ProtoMessage ¶
func (*Table) ProtoMessage()
func (*Table) ProtoReflect ¶
func (x *Table) ProtoReflect() protoreflect.Message