vttest

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 7 Imported by: 4

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"`
	// 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,proto3" 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,proto3" 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,proto3" json:"served_from,omitempty"`
	// number of replica tablets to instantiate. This includes the master 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) 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) GetServedFrom

func (x *Keyspace) GetServedFrom() string

func (*Keyspace) GetShardingColumnName

func (x *Keyspace) GetShardingColumnName() string

func (*Keyspace) GetShardingColumnType

func (x *Keyspace) GetShardingColumnType() string

func (*Keyspace) GetShards

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

func (*Keyspace) MarshalToSizedBufferVT added in v0.11.0

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

func (*Keyspace) MarshalToVT added in v0.11.0

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

func (*Keyspace) MarshalVT added in v0.11.0

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

func (*Keyspace) ProtoMessage

func (*Keyspace) ProtoMessage()

func (*Keyspace) ProtoReflect added in v0.11.0

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

func (*Keyspace) Reset

func (x *Keyspace) Reset()

func (*Keyspace) SizeVT added in v0.11.0

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

func (*Keyspace) String

func (x *Keyspace) String() string

func (*Keyspace) UnmarshalVT added in v0.11.0

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) 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 added in v0.11.0

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

func (*Shard) MarshalToVT added in v0.11.0

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

func (*Shard) MarshalVT added in v0.11.0

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

func (*Shard) ProtoMessage

func (*Shard) ProtoMessage()

func (*Shard) ProtoReflect added in v0.11.0

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

func (*Shard) Reset

func (x *Shard) Reset()

func (*Shard) SizeVT added in v0.11.0

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

func (*Shard) String

func (x *Shard) String() string

func (*Shard) UnmarshalVT added in v0.11.0

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"`
	// contains filtered or unexported fields
}

VTTestTopology describes the keyspaces in the topology.

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) MarshalToSizedBufferVT added in v0.11.0

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

func (*VTTestTopology) MarshalToVT added in v0.11.0

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

func (*VTTestTopology) MarshalVT added in v0.11.0

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

func (*VTTestTopology) ProtoMessage

func (*VTTestTopology) ProtoMessage()

func (*VTTestTopology) ProtoReflect added in v0.11.0

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

func (*VTTestTopology) Reset

func (x *VTTestTopology) Reset()

func (*VTTestTopology) SizeVT added in v0.11.0

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

func (*VTTestTopology) String

func (x *VTTestTopology) String() string

func (*VTTestTopology) UnmarshalVT added in v0.11.0

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