vttest

package
v0.15.10 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 (m *Keyspace) CloneMessageVT() proto.Message

func (*Keyspace) CloneVT

func (m *Keyspace) CloneVT() *Keyspace

func (*Keyspace) Descriptor deprecated

func (*Keyspace) Descriptor() ([]byte, []int)

Deprecated: Use Keyspace.ProtoReflect.Descriptor instead.

func (*Keyspace) GetName

func (x *Keyspace) GetName() string

func (*Keyspace) GetRdonlyCount

func (x *Keyspace) GetRdonlyCount() int32

func (*Keyspace) GetReplicaCount

func (x *Keyspace) GetReplicaCount() int32

func (*Keyspace) GetShards

func (x *Keyspace) GetShards() []*Shard

func (*Keyspace) MarshalToSizedBufferVT

func (m *Keyspace) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Keyspace) MarshalToVT

func (m *Keyspace) MarshalToVT(dAtA []byte) (int, error)

func (*Keyspace) MarshalVT

func (m *Keyspace) MarshalVT() (dAtA []byte, err error)

func (*Keyspace) ProtoMessage

func (*Keyspace) ProtoMessage()

func (*Keyspace) ProtoReflect

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

func (*Keyspace) Reset

func (x *Keyspace) Reset()

func (*Keyspace) SizeVT

func (m *Keyspace) SizeVT() (n int)

func (*Keyspace) String

func (x *Keyspace) String() string

func (*Keyspace) UnmarshalVT

func (m *Keyspace) UnmarshalVT(dAtA []byte) error

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 (m *Shard) CloneMessageVT() proto.Message

func (*Shard) CloneVT

func (m *Shard) CloneVT() *Shard

func (*Shard) Descriptor deprecated

func (*Shard) Descriptor() ([]byte, []int)

Deprecated: Use Shard.ProtoReflect.Descriptor instead.

func (*Shard) GetDbNameOverride

func (x *Shard) GetDbNameOverride() string

func (*Shard) GetName

func (x *Shard) GetName() string

func (*Shard) MarshalToSizedBufferVT

func (m *Shard) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Shard) MarshalToVT

func (m *Shard) MarshalToVT(dAtA []byte) (int, error)

func (*Shard) MarshalVT

func (m *Shard) MarshalVT() (dAtA []byte, err error)

func (*Shard) ProtoMessage

func (*Shard) ProtoMessage()

func (*Shard) ProtoReflect

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

func (*Shard) Reset

func (x *Shard) Reset()

func (*Shard) SizeVT

func (m *Shard) SizeVT() (n int)

func (*Shard) String

func (x *Shard) String() string

func (*Shard) UnmarshalVT

func (m *Shard) UnmarshalVT(dAtA []byte) error

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

Jump to

Keyboard shortcuts

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