Documentation ¶
Overview ¶
Package vttest is a generated protocol buffer package.
It is generated from these files:
vttest.proto
It has these top-level messages:
Shard Keyspace VTTestTopology
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keyspace ¶
type Keyspace struct { // name has to be unique in a VTTestTopology. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // shards inside this keyspace. Ignored if redirect is set. Shards []*Shard `protobuf:"bytes,2,rep,name=shards" json:"shards,omitempty"` // sharding_column_name for this keyspace. Used for v2 calls, but not for v3. ShardingColumnName string `protobuf:"bytes,3,opt,name=sharding_column_name,json=shardingColumnName" json:"sharding_column_name,omitempty"` // sharding_column_type for this keyspace. Used for v2 calls, but not for v3. ShardingColumnType string `protobuf:"bytes,4,opt,name=sharding_column_type,json=shardingColumnType" json:"sharding_column_type,omitempty"` // redirects all traffic to another keyspace. If set, shards is ignored. ServedFrom string `protobuf:"bytes,5,opt,name=served_from,json=servedFrom" json:"served_from,omitempty"` }
Keyspace describes a single keyspace.
func (*Keyspace) Descriptor ¶
func (*Keyspace) ProtoMessage ¶
func (*Keyspace) ProtoMessage()
type Shard ¶
type Shard struct { // name has to be unique in a keyspace. For unsharded keyspaces, it // should be '0'. For sharded keyspace, it should be derived from // the keyrange, like '-80' or '40-80'. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // db_name_override is the mysql db name for this shard. Has to be // globally unique. If not specified, we will by default use // 'vt_<keyspace>_<shard>'. DbNameOverride string `protobuf:"bytes,2,opt,name=db_name_override,json=dbNameOverride" json:"db_name_override,omitempty"` }
Shard describes a single shard in a keyspace.
func (*Shard) Descriptor ¶
func (*Shard) ProtoMessage ¶
func (*Shard) ProtoMessage()
type VTTestTopology ¶
type VTTestTopology struct { // all keyspaces in the topology. Keyspaces []*Keyspace `protobuf:"bytes,1,rep,name=keyspaces" json:"keyspaces,omitempty"` }
VTTestTopology describes the keyspaces in the topology.
func (*VTTestTopology) Descriptor ¶
func (*VTTestTopology) Descriptor() ([]byte, []int)
func (*VTTestTopology) GetKeyspaces ¶
func (m *VTTestTopology) GetKeyspaces() []*Keyspace
func (*VTTestTopology) ProtoMessage ¶
func (*VTTestTopology) ProtoMessage()
func (*VTTestTopology) Reset ¶
func (m *VTTestTopology) Reset()
func (*VTTestTopology) String ¶
func (m *VTTestTopology) String() string
Click to show internal directories.
Click to hide internal directories.