go-vitess.v1: gopkg.in/src-d/go-vitess.v1/vt/proto/vttest Index | Files

package vttest

import "gopkg.in/src-d/go-vitess.v1/vt/proto/vttest"

Index

Package Files

vttest.pb.go

type Keyspace Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Keyspace describes a single keyspace.

func (*Keyspace) Descriptor Uses

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

func (*Keyspace) GetName Uses

func (m *Keyspace) GetName() string

func (*Keyspace) GetRdonlyCount Uses

func (m *Keyspace) GetRdonlyCount() int32

func (*Keyspace) GetReplicaCount Uses

func (m *Keyspace) GetReplicaCount() int32

func (*Keyspace) GetServedFrom Uses

func (m *Keyspace) GetServedFrom() string

func (*Keyspace) GetShardingColumnName Uses

func (m *Keyspace) GetShardingColumnName() string

func (*Keyspace) GetShardingColumnType Uses

func (m *Keyspace) GetShardingColumnType() string

func (*Keyspace) GetShards Uses

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

func (*Keyspace) ProtoMessage Uses

func (*Keyspace) ProtoMessage()

func (*Keyspace) Reset Uses

func (m *Keyspace) Reset()

func (*Keyspace) String Uses

func (m *Keyspace) String() string

func (*Keyspace) XXX_DiscardUnknown Uses

func (m *Keyspace) XXX_DiscardUnknown()

func (*Keyspace) XXX_Marshal Uses

func (m *Keyspace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Keyspace) XXX_Merge Uses

func (dst *Keyspace) XXX_Merge(src proto.Message)

func (*Keyspace) XXX_Size Uses

func (m *Keyspace) XXX_Size() int

func (*Keyspace) XXX_Unmarshal Uses

func (m *Keyspace) XXX_Unmarshal(b []byte) error

type Shard Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Shard describes a single shard in a keyspace.

func (*Shard) Descriptor Uses

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

func (*Shard) GetDbNameOverride Uses

func (m *Shard) GetDbNameOverride() string

func (*Shard) GetName Uses

func (m *Shard) GetName() string

func (*Shard) ProtoMessage Uses

func (*Shard) ProtoMessage()

func (*Shard) Reset Uses

func (m *Shard) Reset()

func (*Shard) String Uses

func (m *Shard) String() string

func (*Shard) XXX_DiscardUnknown Uses

func (m *Shard) XXX_DiscardUnknown()

func (*Shard) XXX_Marshal Uses

func (m *Shard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Shard) XXX_Merge Uses

func (dst *Shard) XXX_Merge(src proto.Message)

func (*Shard) XXX_Size Uses

func (m *Shard) XXX_Size() int

func (*Shard) XXX_Unmarshal Uses

func (m *Shard) XXX_Unmarshal(b []byte) error

type VTTestTopology Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

VTTestTopology describes the keyspaces in the topology.

func (*VTTestTopology) Descriptor Uses

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

func (*VTTestTopology) GetCells Uses

func (m *VTTestTopology) GetCells() []string

func (*VTTestTopology) GetKeyspaces Uses

func (m *VTTestTopology) GetKeyspaces() []*Keyspace

func (*VTTestTopology) ProtoMessage Uses

func (*VTTestTopology) ProtoMessage()

func (*VTTestTopology) Reset Uses

func (m *VTTestTopology) Reset()

func (*VTTestTopology) String Uses

func (m *VTTestTopology) String() string

func (*VTTestTopology) XXX_DiscardUnknown Uses

func (m *VTTestTopology) XXX_DiscardUnknown()

func (*VTTestTopology) XXX_Marshal Uses

func (m *VTTestTopology) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VTTestTopology) XXX_Merge Uses

func (dst *VTTestTopology) XXX_Merge(src proto.Message)

func (*VTTestTopology) XXX_Size Uses

func (m *VTTestTopology) XXX_Size() int

func (*VTTestTopology) XXX_Unmarshal Uses

func (m *VTTestTopology) XXX_Unmarshal(b []byte) error

Package vttest imports 3 packages (graph) and is imported by 5 packages. Updated 2019-06-13. Refresh now. Tools for package owners.