Documentation ¶
Index ¶
- Variables
- func RegisterVTAdminServer(s *grpc.Server, srv VTAdminServer)
- type Cluster
- func (*Cluster) Descriptor() ([]byte, []int)
- func (m *Cluster) GetId() string
- func (m *Cluster) GetName() string
- func (*Cluster) ProtoMessage()
- func (m *Cluster) Reset()
- func (m *Cluster) String() string
- func (m *Cluster) XXX_DiscardUnknown()
- func (m *Cluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Cluster) XXX_Merge(src proto.Message)
- func (m *Cluster) XXX_Size() int
- func (m *Cluster) XXX_Unmarshal(b []byte) error
- type GetGatesRequest
- func (*GetGatesRequest) Descriptor() ([]byte, []int)
- func (m *GetGatesRequest) GetClusterIds() []string
- func (*GetGatesRequest) ProtoMessage()
- func (m *GetGatesRequest) Reset()
- func (m *GetGatesRequest) String() string
- func (m *GetGatesRequest) XXX_DiscardUnknown()
- func (m *GetGatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetGatesRequest) XXX_Merge(src proto.Message)
- func (m *GetGatesRequest) XXX_Size() int
- func (m *GetGatesRequest) XXX_Unmarshal(b []byte) error
- type GetGatesResponse
- func (*GetGatesResponse) Descriptor() ([]byte, []int)
- func (m *GetGatesResponse) GetGates() []*VTGate
- func (*GetGatesResponse) ProtoMessage()
- func (m *GetGatesResponse) Reset()
- func (m *GetGatesResponse) String() string
- func (m *GetGatesResponse) XXX_DiscardUnknown()
- func (m *GetGatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetGatesResponse) XXX_Merge(src proto.Message)
- func (m *GetGatesResponse) XXX_Size() int
- func (m *GetGatesResponse) XXX_Unmarshal(b []byte) error
- type GetTabletRequest
- func (*GetTabletRequest) Descriptor() ([]byte, []int)
- func (m *GetTabletRequest) GetClusterIds() []string
- func (m *GetTabletRequest) GetHostname() string
- func (*GetTabletRequest) ProtoMessage()
- func (m *GetTabletRequest) Reset()
- func (m *GetTabletRequest) String() string
- func (m *GetTabletRequest) XXX_DiscardUnknown()
- func (m *GetTabletRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTabletRequest) XXX_Merge(src proto.Message)
- func (m *GetTabletRequest) XXX_Size() int
- func (m *GetTabletRequest) XXX_Unmarshal(b []byte) error
- type GetTabletsRequest
- func (*GetTabletsRequest) Descriptor() ([]byte, []int)
- func (m *GetTabletsRequest) GetClusterIds() []string
- func (*GetTabletsRequest) ProtoMessage()
- func (m *GetTabletsRequest) Reset()
- func (m *GetTabletsRequest) String() string
- func (m *GetTabletsRequest) XXX_DiscardUnknown()
- func (m *GetTabletsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTabletsRequest) XXX_Merge(src proto.Message)
- func (m *GetTabletsRequest) XXX_Size() int
- func (m *GetTabletsRequest) XXX_Unmarshal(b []byte) error
- type GetTabletsResponse
- func (*GetTabletsResponse) Descriptor() ([]byte, []int)
- func (m *GetTabletsResponse) GetTablets() []*Tablet
- func (*GetTabletsResponse) ProtoMessage()
- func (m *GetTabletsResponse) Reset()
- func (m *GetTabletsResponse) String() string
- func (m *GetTabletsResponse) XXX_DiscardUnknown()
- func (m *GetTabletsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTabletsResponse) XXX_Merge(src proto.Message)
- func (m *GetTabletsResponse) XXX_Size() int
- func (m *GetTabletsResponse) XXX_Unmarshal(b []byte) error
- type Tablet
- func (*Tablet) Descriptor() ([]byte, []int)
- func (m *Tablet) GetCluster() *Cluster
- func (m *Tablet) GetState() Tablet_ServingState
- func (m *Tablet) GetTablet() *topodata.Tablet
- func (*Tablet) ProtoMessage()
- func (m *Tablet) Reset()
- func (m *Tablet) String() string
- func (m *Tablet) XXX_DiscardUnknown()
- func (m *Tablet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Tablet) XXX_Merge(src proto.Message)
- func (m *Tablet) XXX_Size() int
- func (m *Tablet) XXX_Unmarshal(b []byte) error
- type Tablet_ServingState
- type UnimplementedVTAdminServer
- func (*UnimplementedVTAdminServer) GetGates(ctx context.Context, req *GetGatesRequest) (*GetGatesResponse, error)
- func (*UnimplementedVTAdminServer) GetTablet(ctx context.Context, req *GetTabletRequest) (*Tablet, error)
- func (*UnimplementedVTAdminServer) GetTablets(ctx context.Context, req *GetTabletsRequest) (*GetTabletsResponse, error)
- type VTAdminClient
- type VTAdminServer
- type VTGate
- func (*VTGate) Descriptor() ([]byte, []int)
- func (m *VTGate) GetCell() string
- func (m *VTGate) GetCluster() *Cluster
- func (m *VTGate) GetHostname() string
- func (m *VTGate) GetKeyspaces() []string
- func (m *VTGate) GetPool() string
- func (*VTGate) ProtoMessage()
- func (m *VTGate) Reset()
- func (m *VTGate) String() string
- func (m *VTGate) XXX_DiscardUnknown()
- func (m *VTGate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VTGate) XXX_Merge(src proto.Message)
- func (m *VTGate) XXX_Size() int
- func (m *VTGate) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Tablet_ServingState_name = map[int32]string{
0: "UNKNOWN",
1: "SERVING",
2: "NOT_SERVING",
}
View Source
var Tablet_ServingState_value = map[string]int32{
"UNKNOWN": 0,
"SERVING": 1,
"NOT_SERVING": 2,
}
Functions ¶
func RegisterVTAdminServer ¶
func RegisterVTAdminServer(s *grpc.Server, srv VTAdminServer)
Types ¶
type Cluster ¶
type Cluster struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Cluster represents information about a Vitess cluster.
func (*Cluster) Descriptor ¶
func (*Cluster) ProtoMessage ¶
func (*Cluster) ProtoMessage()
func (*Cluster) XXX_DiscardUnknown ¶
func (m *Cluster) XXX_DiscardUnknown()
func (*Cluster) XXX_Marshal ¶
func (*Cluster) XXX_Unmarshal ¶
type GetGatesRequest ¶
type GetGatesRequest struct { ClusterIds []string `protobuf:"bytes,1,rep,name=cluster_ids,json=clusterIds,proto3" json:"cluster_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetGatesRequest) Descriptor ¶
func (*GetGatesRequest) Descriptor() ([]byte, []int)
func (*GetGatesRequest) GetClusterIds ¶
func (m *GetGatesRequest) GetClusterIds() []string
func (*GetGatesRequest) ProtoMessage ¶
func (*GetGatesRequest) ProtoMessage()
func (*GetGatesRequest) Reset ¶
func (m *GetGatesRequest) Reset()
func (*GetGatesRequest) String ¶
func (m *GetGatesRequest) String() string
func (*GetGatesRequest) XXX_DiscardUnknown ¶
func (m *GetGatesRequest) XXX_DiscardUnknown()
func (*GetGatesRequest) XXX_Marshal ¶
func (m *GetGatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetGatesRequest) XXX_Merge ¶
func (m *GetGatesRequest) XXX_Merge(src proto.Message)
func (*GetGatesRequest) XXX_Size ¶
func (m *GetGatesRequest) XXX_Size() int
func (*GetGatesRequest) XXX_Unmarshal ¶
func (m *GetGatesRequest) XXX_Unmarshal(b []byte) error
type GetGatesResponse ¶
type GetGatesResponse struct { Gates []*VTGate `protobuf:"bytes,1,rep,name=gates,proto3" json:"gates,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetGatesResponse) Descriptor ¶
func (*GetGatesResponse) Descriptor() ([]byte, []int)
func (*GetGatesResponse) GetGates ¶
func (m *GetGatesResponse) GetGates() []*VTGate
func (*GetGatesResponse) ProtoMessage ¶
func (*GetGatesResponse) ProtoMessage()
func (*GetGatesResponse) Reset ¶
func (m *GetGatesResponse) Reset()
func (*GetGatesResponse) String ¶
func (m *GetGatesResponse) String() string
func (*GetGatesResponse) XXX_DiscardUnknown ¶
func (m *GetGatesResponse) XXX_DiscardUnknown()
func (*GetGatesResponse) XXX_Marshal ¶
func (m *GetGatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetGatesResponse) XXX_Merge ¶
func (m *GetGatesResponse) XXX_Merge(src proto.Message)
func (*GetGatesResponse) XXX_Size ¶
func (m *GetGatesResponse) XXX_Size() int
func (*GetGatesResponse) XXX_Unmarshal ¶
func (m *GetGatesResponse) XXX_Unmarshal(b []byte) error
type GetTabletRequest ¶
type GetTabletRequest struct { Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` // ClusterIDs is an optional parameter to narrow the scope of the search, if // the caller knows which cluster the tablet may be in, or, to disamiguate if // multiple clusters have a tablet with the same hostname. ClusterIds []string `protobuf:"bytes,2,rep,name=cluster_ids,json=clusterIds,proto3" json:"cluster_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTabletRequest) Descriptor ¶
func (*GetTabletRequest) Descriptor() ([]byte, []int)
func (*GetTabletRequest) GetClusterIds ¶
func (m *GetTabletRequest) GetClusterIds() []string
func (*GetTabletRequest) GetHostname ¶
func (m *GetTabletRequest) GetHostname() string
func (*GetTabletRequest) ProtoMessage ¶
func (*GetTabletRequest) ProtoMessage()
func (*GetTabletRequest) Reset ¶
func (m *GetTabletRequest) Reset()
func (*GetTabletRequest) String ¶
func (m *GetTabletRequest) String() string
func (*GetTabletRequest) XXX_DiscardUnknown ¶
func (m *GetTabletRequest) XXX_DiscardUnknown()
func (*GetTabletRequest) XXX_Marshal ¶
func (m *GetTabletRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTabletRequest) XXX_Merge ¶
func (m *GetTabletRequest) XXX_Merge(src proto.Message)
func (*GetTabletRequest) XXX_Size ¶
func (m *GetTabletRequest) XXX_Size() int
func (*GetTabletRequest) XXX_Unmarshal ¶
func (m *GetTabletRequest) XXX_Unmarshal(b []byte) error
type GetTabletsRequest ¶
type GetTabletsRequest struct { ClusterIds []string `protobuf:"bytes,1,rep,name=cluster_ids,json=clusterIds,proto3" json:"cluster_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTabletsRequest) Descriptor ¶
func (*GetTabletsRequest) Descriptor() ([]byte, []int)
func (*GetTabletsRequest) GetClusterIds ¶
func (m *GetTabletsRequest) GetClusterIds() []string
func (*GetTabletsRequest) ProtoMessage ¶
func (*GetTabletsRequest) ProtoMessage()
func (*GetTabletsRequest) Reset ¶
func (m *GetTabletsRequest) Reset()
func (*GetTabletsRequest) String ¶
func (m *GetTabletsRequest) String() string
func (*GetTabletsRequest) XXX_DiscardUnknown ¶
func (m *GetTabletsRequest) XXX_DiscardUnknown()
func (*GetTabletsRequest) XXX_Marshal ¶
func (m *GetTabletsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTabletsRequest) XXX_Merge ¶
func (m *GetTabletsRequest) XXX_Merge(src proto.Message)
func (*GetTabletsRequest) XXX_Size ¶
func (m *GetTabletsRequest) XXX_Size() int
func (*GetTabletsRequest) XXX_Unmarshal ¶
func (m *GetTabletsRequest) XXX_Unmarshal(b []byte) error
type GetTabletsResponse ¶
type GetTabletsResponse struct { Tablets []*Tablet `protobuf:"bytes,1,rep,name=tablets,proto3" json:"tablets,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTabletsResponse) Descriptor ¶
func (*GetTabletsResponse) Descriptor() ([]byte, []int)
func (*GetTabletsResponse) GetTablets ¶
func (m *GetTabletsResponse) GetTablets() []*Tablet
func (*GetTabletsResponse) ProtoMessage ¶
func (*GetTabletsResponse) ProtoMessage()
func (*GetTabletsResponse) Reset ¶
func (m *GetTabletsResponse) Reset()
func (*GetTabletsResponse) String ¶
func (m *GetTabletsResponse) String() string
func (*GetTabletsResponse) XXX_DiscardUnknown ¶
func (m *GetTabletsResponse) XXX_DiscardUnknown()
func (*GetTabletsResponse) XXX_Marshal ¶
func (m *GetTabletsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTabletsResponse) XXX_Merge ¶
func (m *GetTabletsResponse) XXX_Merge(src proto.Message)
func (*GetTabletsResponse) XXX_Size ¶
func (m *GetTabletsResponse) XXX_Size() int
func (*GetTabletsResponse) XXX_Unmarshal ¶
func (m *GetTabletsResponse) XXX_Unmarshal(b []byte) error
type Tablet ¶
type Tablet struct { Cluster *Cluster `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` Tablet *topodata.Tablet `protobuf:"bytes,2,opt,name=tablet,proto3" json:"tablet,omitempty"` State Tablet_ServingState `protobuf:"varint,3,opt,name=state,proto3,enum=vtadmin.Tablet_ServingState" json:"state,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Tablet groups the topo information of a tablet together with the Vitess cluster it belongs to.
func (*Tablet) Descriptor ¶
func (*Tablet) GetCluster ¶
func (*Tablet) GetState ¶
func (m *Tablet) GetState() Tablet_ServingState
func (*Tablet) ProtoMessage ¶
func (*Tablet) ProtoMessage()
func (*Tablet) XXX_DiscardUnknown ¶
func (m *Tablet) XXX_DiscardUnknown()
func (*Tablet) XXX_Marshal ¶
func (*Tablet) XXX_Unmarshal ¶
type Tablet_ServingState ¶
type Tablet_ServingState int32
const ( Tablet_UNKNOWN Tablet_ServingState = 0 Tablet_SERVING Tablet_ServingState = 1 Tablet_NOT_SERVING Tablet_ServingState = 2 )
func (Tablet_ServingState) EnumDescriptor ¶
func (Tablet_ServingState) EnumDescriptor() ([]byte, []int)
func (Tablet_ServingState) String ¶
func (x Tablet_ServingState) String() string
type UnimplementedVTAdminServer ¶
type UnimplementedVTAdminServer struct { }
UnimplementedVTAdminServer can be embedded to have forward compatible implementations.
func (*UnimplementedVTAdminServer) GetGates ¶
func (*UnimplementedVTAdminServer) GetGates(ctx context.Context, req *GetGatesRequest) (*GetGatesResponse, error)
func (*UnimplementedVTAdminServer) GetTablet ¶
func (*UnimplementedVTAdminServer) GetTablet(ctx context.Context, req *GetTabletRequest) (*Tablet, error)
func (*UnimplementedVTAdminServer) GetTablets ¶
func (*UnimplementedVTAdminServer) GetTablets(ctx context.Context, req *GetTabletsRequest) (*GetTabletsResponse, error)
type VTAdminClient ¶
type VTAdminClient interface { // GetGates returns all gates across all the specified clusters. GetGates(ctx context.Context, in *GetGatesRequest, opts ...grpc.CallOption) (*GetGatesResponse, error) // GetTablet looks up a tablet by hostname across all clusters and returns // the result. GetTablet(ctx context.Context, in *GetTabletRequest, opts ...grpc.CallOption) (*Tablet, error) // GetTablets returns all tablets across all the specified clusters. GetTablets(ctx context.Context, in *GetTabletsRequest, opts ...grpc.CallOption) (*GetTabletsResponse, error) }
VTAdminClient is the client API for VTAdmin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewVTAdminClient ¶
func NewVTAdminClient(cc *grpc.ClientConn) VTAdminClient
type VTAdminServer ¶
type VTAdminServer interface { // GetGates returns all gates across all the specified clusters. GetGates(context.Context, *GetGatesRequest) (*GetGatesResponse, error) // GetTablet looks up a tablet by hostname across all clusters and returns // the result. GetTablet(context.Context, *GetTabletRequest) (*Tablet, error) // GetTablets returns all tablets across all the specified clusters. GetTablets(context.Context, *GetTabletsRequest) (*GetTabletsResponse, error) }
VTAdminServer is the server API for VTAdmin service.
type VTGate ¶
type VTGate struct { // Hostname is the shortname of the VTGate. Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` // Pool is group the VTGate serves queries for. Some deployments segment // VTGates into groups or pools, based on the workloads they serve queries // for. Use of this field is optional. Pool string `protobuf:"bytes,2,opt,name=pool,proto3" json:"pool,omitempty"` // Cell is the topology cell the VTGate is in. Cell string `protobuf:"bytes,3,opt,name=cell,proto3" json:"cell,omitempty"` // Cluster is the cluster the VTGate serves. Cluster *Cluster `protobuf:"bytes,4,opt,name=cluster,proto3" json:"cluster,omitempty"` // Keyspaces is the list of keyspaces-to-watch for the VTGate. Keyspaces []string `protobuf:"bytes,5,rep,name=keyspaces,proto3" json:"keyspaces,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
VTGate represents information about a single VTGate host.
func (*VTGate) Descriptor ¶
func (*VTGate) GetCluster ¶
func (*VTGate) GetHostname ¶
func (*VTGate) GetKeyspaces ¶
func (*VTGate) ProtoMessage ¶
func (*VTGate) ProtoMessage()
func (*VTGate) XXX_DiscardUnknown ¶
func (m *VTGate) XXX_DiscardUnknown()
func (*VTGate) XXX_Marshal ¶
func (*VTGate) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.