clusterpb

package
v0.0.0-...-b5a6581 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NodeState_name = map[int32]string{
		0: "ONLINE",
		1: "OFFLINE",
	}
	NodeState_value = map[string]int32{
		"ONLINE":  0,
		"OFFLINE": 1,
	}
)

Enum value maps for NodeState.

View Source
var (
	ShardRole_name = map[int32]string{
		0: "LEADER",
		1: "FOLLOWER",
	}
	ShardRole_value = map[string]int32{
		"LEADER":   0,
		"FOLLOWER": 1,
	}
)

Enum value maps for ShardRole.

View Source
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.

View Source
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.

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

Deprecated: Use Cluster.ProtoReflect.Descriptor instead.

func (*Cluster) GetCreatedAt

func (x *Cluster) GetCreatedAt() uint64

func (*Cluster) GetEnableSchedule

func (x *Cluster) GetEnableSchedule() bool

func (*Cluster) GetId

func (x *Cluster) GetId() uint32

func (*Cluster) GetMinNodeCount

func (x *Cluster) GetMinNodeCount() uint32

func (*Cluster) GetModifiedAt

func (x *Cluster) GetModifiedAt() uint64

func (*Cluster) GetName

func (x *Cluster) GetName() string

func (*Cluster) GetPartitionTableRatioOfNodes

func (x *Cluster) GetPartitionTableRatioOfNodes() uint32

func (*Cluster) GetProcedureExecutingBatchSize

func (x *Cluster) GetProcedureExecutingBatchSize() uint32

func (*Cluster) GetReplicationFactor

func (x *Cluster) GetReplicationFactor() uint32

func (*Cluster) GetShardTotal

func (x *Cluster) GetShardTotal() uint32

func (*Cluster) GetTopologyType

func (x *Cluster) GetTopologyType() Cluster_TopologyType

func (*Cluster) ProtoMessage

func (*Cluster) ProtoMessage()

func (*Cluster) ProtoReflect

func (x *Cluster) ProtoReflect() protoreflect.Message

func (*Cluster) Reset

func (x *Cluster) Reset()

func (*Cluster) String

func (x *Cluster) String() string

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

func (ClusterView_ClusterState) EnumDescriptor deprecated

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

Deprecated: Use ClusterView_ClusterState.Descriptor instead.

func (ClusterView_ClusterState) Number

func (ClusterView_ClusterState) String

func (x ClusterView_ClusterState) String() string

func (ClusterView_ClusterState) Type

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

func (Cluster_TopologyType) EnumDescriptor deprecated

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

Deprecated: Use Cluster_TopologyType.Descriptor instead.

func (Cluster_TopologyType) Number

func (Cluster_TopologyType) String

func (x Cluster_TopologyType) String() string

func (Cluster_TopologyType) Type

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetLastTouchTime

func (x *Node) GetLastTouchTime() uint64

func (*Node) GetName

func (x *Node) GetName() string

func (*Node) GetState

func (x *Node) GetState() NodeState

func (*Node) GetStats

func (x *Node) GetStats() *NodeStats

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

func (x *Node) ProtoReflect() protoreflect.Message

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type NodeState

type NodeState int32
const (
	NodeState_ONLINE  NodeState = 0
	NodeState_OFFLINE NodeState = 1
)

func (NodeState) Descriptor

func (NodeState) Descriptor() protoreflect.EnumDescriptor

func (NodeState) Enum

func (x NodeState) Enum() *NodeState

func (NodeState) EnumDescriptor deprecated

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

Deprecated: Use NodeState.Descriptor instead.

func (NodeState) Number

func (x NodeState) Number() protoreflect.EnumNumber

func (NodeState) String

func (x NodeState) String() string

func (NodeState) Type

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

Deprecated: Use NodeStats.ProtoReflect.Descriptor instead.

func (*NodeStats) GetLease

func (x *NodeStats) GetLease() uint32

func (*NodeStats) GetNodeVersion

func (x *NodeStats) GetNodeVersion() string

func (*NodeStats) GetZone

func (x *NodeStats) GetZone() string

func (*NodeStats) ProtoMessage

func (*NodeStats) ProtoMessage()

func (*NodeStats) ProtoReflect

func (x *NodeStats) ProtoReflect() protoreflect.Message

func (*NodeStats) Reset

func (x *NodeStats) Reset()

func (*NodeStats) String

func (x *NodeStats) String() string

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

Deprecated: Use Schema.ProtoReflect.Descriptor instead.

func (*Schema) GetClusterId

func (x *Schema) GetClusterId() uint32

func (*Schema) GetCreatedAt

func (x *Schema) GetCreatedAt() uint64

func (*Schema) GetId

func (x *Schema) GetId() uint32

func (*Schema) GetName

func (x *Schema) GetName() string

func (*Schema) ProtoMessage

func (*Schema) ProtoMessage()

func (*Schema) ProtoReflect

func (x *Schema) ProtoReflect() protoreflect.Message

func (*Schema) Reset

func (x *Schema) Reset()

func (*Schema) String

func (x *Schema) String() string

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

Deprecated: Use ShardNode.ProtoReflect.Descriptor instead.

func (*ShardNode) GetId

func (x *ShardNode) GetId() uint32

func (*ShardNode) GetNode

func (x *ShardNode) GetNode() string

func (*ShardNode) GetShardRole

func (x *ShardNode) GetShardRole() ShardRole

func (*ShardNode) ProtoMessage

func (*ShardNode) ProtoMessage()

func (*ShardNode) ProtoReflect

func (x *ShardNode) ProtoReflect() protoreflect.Message

func (*ShardNode) Reset

func (x *ShardNode) Reset()

func (*ShardNode) String

func (x *ShardNode) String() string

type ShardRole

type ShardRole int32
const (
	ShardRole_LEADER   ShardRole = 0
	ShardRole_FOLLOWER ShardRole = 1
)

func (ShardRole) Descriptor

func (ShardRole) Descriptor() protoreflect.EnumDescriptor

func (ShardRole) Enum

func (x ShardRole) Enum() *ShardRole

func (ShardRole) EnumDescriptor deprecated

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

Deprecated: Use ShardRole.Descriptor instead.

func (ShardRole) Number

func (x ShardRole) Number() protoreflect.EnumNumber

func (ShardRole) String

func (x ShardRole) String() string

func (ShardRole) Type

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

Deprecated: Use ShardView.ProtoReflect.Descriptor instead.

func (*ShardView) GetCreatedAt

func (x *ShardView) GetCreatedAt() uint64

func (*ShardView) GetShardId

func (x *ShardView) GetShardId() uint32

func (*ShardView) GetTableIds

func (x *ShardView) GetTableIds() []uint64

func (*ShardView) GetVersion

func (x *ShardView) GetVersion() uint64

func (*ShardView) ProtoMessage

func (*ShardView) ProtoMessage()

func (*ShardView) ProtoReflect

func (x *ShardView) ProtoReflect() protoreflect.Message

func (*ShardView) Reset

func (x *ShardView) Reset()

func (*ShardView) String

func (x *ShardView) String() string

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

Deprecated: Use Table.ProtoReflect.Descriptor instead.

func (*Table) GetCreatedAt

func (x *Table) GetCreatedAt() uint64

func (*Table) GetDesc

func (x *Table) GetDesc() string

func (*Table) GetId

func (x *Table) GetId() uint64

func (*Table) GetName

func (x *Table) GetName() string

func (*Table) GetPartitionInfo

func (x *Table) GetPartitionInfo() *PartitionInfo

func (*Table) GetSchemaId

func (x *Table) GetSchemaId() uint32

func (*Table) ProtoMessage

func (*Table) ProtoMessage()

func (*Table) ProtoReflect

func (x *Table) ProtoReflect() protoreflect.Message

func (*Table) Reset

func (x *Table) Reset()

func (*Table) String

func (x *Table) String() string

Jump to

Keyboard shortcuts

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