Documentation ¶
Index ¶
- Variables
- type Keyspace
- func (m *Keyspace) CloneMessageVT() proto.Message
- func (m *Keyspace) CloneVT() *Keyspace
- func (*Keyspace) Descriptor() ([]byte, []int)deprecated
- func (x *Keyspace) GetName() string
- func (x *Keyspace) GetRdonlyCount() int32
- func (x *Keyspace) GetReplicaCount() int32
- func (x *Keyspace) GetShards() []*Shard
- func (m *Keyspace) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Keyspace) MarshalToVT(dAtA []byte) (int, error)
- func (m *Keyspace) MarshalVT() (dAtA []byte, err error)
- func (*Keyspace) ProtoMessage()
- func (x *Keyspace) ProtoReflect() protoreflect.Message
- func (x *Keyspace) Reset()
- func (m *Keyspace) SizeVT() (n int)
- func (x *Keyspace) String() string
- func (m *Keyspace) UnmarshalVT(dAtA []byte) error
- type Shard
- func (m *Shard) CloneMessageVT() proto.Message
- func (m *Shard) CloneVT() *Shard
- func (*Shard) Descriptor() ([]byte, []int)deprecated
- func (x *Shard) GetDbNameOverride() string
- func (x *Shard) GetName() string
- func (m *Shard) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Shard) MarshalToVT(dAtA []byte) (int, error)
- func (m *Shard) MarshalVT() (dAtA []byte, err error)
- func (*Shard) ProtoMessage()
- func (x *Shard) ProtoReflect() protoreflect.Message
- func (x *Shard) Reset()
- func (m *Shard) SizeVT() (n int)
- func (x *Shard) String() string
- func (m *Shard) UnmarshalVT(dAtA []byte) error
- type VTTestTopology
- func (m *VTTestTopology) CloneMessageVT() proto.Message
- func (m *VTTestTopology) CloneVT() *VTTestTopology
- func (*VTTestTopology) Descriptor() ([]byte, []int)deprecated
- func (x *VTTestTopology) GetCells() []string
- func (x *VTTestTopology) GetKeyspaces() []*Keyspace
- func (x *VTTestTopology) GetRoutingRules() *vschema.RoutingRules
- func (m *VTTestTopology) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *VTTestTopology) MarshalToVT(dAtA []byte) (int, error)
- func (m *VTTestTopology) MarshalVT() (dAtA []byte, err error)
- func (*VTTestTopology) ProtoMessage()
- func (x *VTTestTopology) ProtoReflect() protoreflect.Message
- func (x *VTTestTopology) Reset()
- func (m *VTTestTopology) SizeVT() (n int)
- func (x *VTTestTopology) String() string
- func (m *VTTestTopology) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
View Source
var File_vttest_proto protoreflect.FileDescriptor
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,proto3" json:"name,omitempty"` // shards inside this keyspace. Ignored if redirect is set. Shards []*Shard `protobuf:"bytes,2,rep,name=shards,proto3" json:"shards,omitempty"` // number of replica tablets to instantiate. This includes the primary tablet. ReplicaCount int32 `protobuf:"varint,6,opt,name=replica_count,json=replicaCount,proto3" json:"replica_count,omitempty"` // number of rdonly tablets to instantiate. RdonlyCount int32 `protobuf:"varint,7,opt,name=rdonly_count,json=rdonlyCount,proto3" json:"rdonly_count,omitempty"` // contains filtered or unexported fields }
Keyspace describes a single keyspace.
func (*Keyspace) CloneMessageVT ¶
func (*Keyspace) Descriptor
deprecated
func (*Keyspace) GetRdonlyCount ¶
func (*Keyspace) GetReplicaCount ¶
func (*Keyspace) MarshalToSizedBufferVT ¶
func (*Keyspace) ProtoMessage ¶
func (*Keyspace) ProtoMessage()
func (*Keyspace) ProtoReflect ¶
func (x *Keyspace) ProtoReflect() protoreflect.Message
func (*Keyspace) UnmarshalVT ¶
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,proto3" 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,proto3" json:"db_name_override,omitempty"` // contains filtered or unexported fields }
Shard describes a single shard in a keyspace.
func (*Shard) CloneMessageVT ¶
func (*Shard) Descriptor
deprecated
func (*Shard) GetDbNameOverride ¶
func (*Shard) MarshalToSizedBufferVT ¶
func (*Shard) ProtoMessage ¶
func (*Shard) ProtoMessage()
func (*Shard) ProtoReflect ¶
func (x *Shard) ProtoReflect() protoreflect.Message
func (*Shard) UnmarshalVT ¶
type VTTestTopology ¶
type VTTestTopology struct { // all keyspaces in the topology. Keyspaces []*Keyspace `protobuf:"bytes,1,rep,name=keyspaces,proto3" json:"keyspaces,omitempty"` // list of cells the keyspaces reside in. Vtgate is started in only the first cell. Cells []string `protobuf:"bytes,2,rep,name=cells,proto3" json:"cells,omitempty"` // routing rules for the topology. RoutingRules *vschema.RoutingRules `protobuf:"bytes,3,opt,name=routing_rules,json=routingRules,proto3" json:"routing_rules,omitempty"` // contains filtered or unexported fields }
VTTestTopology describes the keyspaces in the topology.
func (*VTTestTopology) CloneMessageVT ¶
func (m *VTTestTopology) CloneMessageVT() proto.Message
func (*VTTestTopology) CloneVT ¶
func (m *VTTestTopology) CloneVT() *VTTestTopology
func (*VTTestTopology) Descriptor
deprecated
func (*VTTestTopology) Descriptor() ([]byte, []int)
Deprecated: Use VTTestTopology.ProtoReflect.Descriptor instead.
func (*VTTestTopology) GetCells ¶
func (x *VTTestTopology) GetCells() []string
func (*VTTestTopology) GetKeyspaces ¶
func (x *VTTestTopology) GetKeyspaces() []*Keyspace
func (*VTTestTopology) GetRoutingRules ¶
func (x *VTTestTopology) GetRoutingRules() *vschema.RoutingRules
func (*VTTestTopology) MarshalToSizedBufferVT ¶
func (m *VTTestTopology) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*VTTestTopology) MarshalToVT ¶
func (m *VTTestTopology) MarshalToVT(dAtA []byte) (int, error)
func (*VTTestTopology) MarshalVT ¶
func (m *VTTestTopology) MarshalVT() (dAtA []byte, err error)
func (*VTTestTopology) ProtoMessage ¶
func (*VTTestTopology) ProtoMessage()
func (*VTTestTopology) ProtoReflect ¶
func (x *VTTestTopology) ProtoReflect() protoreflect.Message
func (*VTTestTopology) Reset ¶
func (x *VTTestTopology) Reset()
func (*VTTestTopology) SizeVT ¶
func (m *VTTestTopology) SizeVT() (n int)
func (*VTTestTopology) String ¶
func (x *VTTestTopology) String() string
func (*VTTestTopology) UnmarshalVT ¶
func (m *VTTestTopology) UnmarshalVT(dAtA []byte) error
Click to show internal directories.
Click to hide internal directories.