зеркало из https://github.com/github/vitess-gh.git
Add GetSchema rpc, run generators and add stubs
Signed-off-by: Andrew Mason <amason@slack-corp.com>
This commit is contained in:
Родитель
fbc5f9f13f
Коммит
5da575eb41
|
@ -6802,7 +6802,7 @@ func (m *ExternalClusters) Unmarshal(dAtA []byte) error {
|
|||
switch fieldNum {
|
||||
case 1:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field ExternalVitessCluster", wireType)
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field VitessCluster", wireType)
|
||||
}
|
||||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
|
|
|
@ -725,6 +725,69 @@ func (m *GetKeyspacesResponse) GetKeyspaces() []*Keyspace {
|
|||
return nil
|
||||
}
|
||||
|
||||
type GetSchemaRequest struct {
|
||||
ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
|
||||
Keyspace string `protobuf:"bytes,2,opt,name=keyspace,proto3" json:"keyspace,omitempty"`
|
||||
Table string `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetSchemaRequest) Reset() { *m = GetSchemaRequest{} }
|
||||
func (m *GetSchemaRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetSchemaRequest) ProtoMessage() {}
|
||||
func (*GetSchemaRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_609739e22a0a50b3, []int{12}
|
||||
}
|
||||
func (m *GetSchemaRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *GetSchemaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_GetSchemaRequest.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalToSizedBuffer(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *GetSchemaRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetSchemaRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetSchemaRequest) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *GetSchemaRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetSchemaRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetSchemaRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetSchemaRequest) GetClusterId() string {
|
||||
if m != nil {
|
||||
return m.ClusterId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *GetSchemaRequest) GetKeyspace() string {
|
||||
if m != nil {
|
||||
return m.Keyspace
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *GetSchemaRequest) GetTable() string {
|
||||
if m != nil {
|
||||
return m.Table
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type GetSchemasRequest struct {
|
||||
ClusterIds []string `protobuf:"bytes,1,rep,name=cluster_ids,json=clusterIds,proto3" json:"cluster_ids,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
|
@ -736,7 +799,7 @@ func (m *GetSchemasRequest) Reset() { *m = GetSchemasRequest{} }
|
|||
func (m *GetSchemasRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetSchemasRequest) ProtoMessage() {}
|
||||
func (*GetSchemasRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_609739e22a0a50b3, []int{12}
|
||||
return fileDescriptor_609739e22a0a50b3, []int{13}
|
||||
}
|
||||
func (m *GetSchemasRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -783,7 +846,7 @@ func (m *GetSchemasResponse) Reset() { *m = GetSchemasResponse{} }
|
|||
func (m *GetSchemasResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetSchemasResponse) ProtoMessage() {}
|
||||
func (*GetSchemasResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_609739e22a0a50b3, []int{13}
|
||||
return fileDescriptor_609739e22a0a50b3, []int{14}
|
||||
}
|
||||
func (m *GetSchemasResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -834,7 +897,7 @@ func (m *GetTabletRequest) Reset() { *m = GetTabletRequest{} }
|
|||
func (m *GetTabletRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetTabletRequest) ProtoMessage() {}
|
||||
func (*GetTabletRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_609739e22a0a50b3, []int{14}
|
||||
return fileDescriptor_609739e22a0a50b3, []int{15}
|
||||
}
|
||||
func (m *GetTabletRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -888,7 +951,7 @@ func (m *GetTabletsRequest) Reset() { *m = GetTabletsRequest{} }
|
|||
func (m *GetTabletsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetTabletsRequest) ProtoMessage() {}
|
||||
func (*GetTabletsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_609739e22a0a50b3, []int{15}
|
||||
return fileDescriptor_609739e22a0a50b3, []int{16}
|
||||
}
|
||||
func (m *GetTabletsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -935,7 +998,7 @@ func (m *GetTabletsResponse) Reset() { *m = GetTabletsResponse{} }
|
|||
func (m *GetTabletsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetTabletsResponse) ProtoMessage() {}
|
||||
func (*GetTabletsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_609739e22a0a50b3, []int{16}
|
||||
return fileDescriptor_609739e22a0a50b3, []int{17}
|
||||
}
|
||||
func (m *GetTabletsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -984,7 +1047,7 @@ func (m *VTExplainRequest) Reset() { *m = VTExplainRequest{} }
|
|||
func (m *VTExplainRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*VTExplainRequest) ProtoMessage() {}
|
||||
func (*VTExplainRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_609739e22a0a50b3, []int{17}
|
||||
return fileDescriptor_609739e22a0a50b3, []int{18}
|
||||
}
|
||||
func (m *VTExplainRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -1045,7 +1108,7 @@ func (m *VTExplainResponse) Reset() { *m = VTExplainResponse{} }
|
|||
func (m *VTExplainResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*VTExplainResponse) ProtoMessage() {}
|
||||
func (*VTExplainResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_609739e22a0a50b3, []int{18}
|
||||
return fileDescriptor_609739e22a0a50b3, []int{19}
|
||||
}
|
||||
func (m *VTExplainResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
|
@ -1096,6 +1159,7 @@ func init() {
|
|||
proto.RegisterType((*GetGatesResponse)(nil), "vtadmin.GetGatesResponse")
|
||||
proto.RegisterType((*GetKeyspacesRequest)(nil), "vtadmin.GetKeyspacesRequest")
|
||||
proto.RegisterType((*GetKeyspacesResponse)(nil), "vtadmin.GetKeyspacesResponse")
|
||||
proto.RegisterType((*GetSchemaRequest)(nil), "vtadmin.GetSchemaRequest")
|
||||
proto.RegisterType((*GetSchemasRequest)(nil), "vtadmin.GetSchemasRequest")
|
||||
proto.RegisterType((*GetSchemasResponse)(nil), "vtadmin.GetSchemasResponse")
|
||||
proto.RegisterType((*GetTabletRequest)(nil), "vtadmin.GetTabletRequest")
|
||||
|
@ -1108,61 +1172,63 @@ func init() {
|
|||
func init() { proto.RegisterFile("vtadmin.proto", fileDescriptor_609739e22a0a50b3) }
|
||||
|
||||
var fileDescriptor_609739e22a0a50b3 = []byte{
|
||||
// 851 bytes of a gzipped FileDescriptorProto
|
||||
// 886 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0xdd, 0x6e, 0xe3, 0x44,
|
||||
0x14, 0xae, 0x93, 0x36, 0x89, 0x8f, 0x97, 0xd6, 0x99, 0x5d, 0x09, 0xe3, 0xed, 0x86, 0x68, 0x04,
|
||||
0x28, 0x20, 0x88, 0xa5, 0x00, 0x2b, 0xca, 0x0d, 0x5a, 0x76, 0xab, 0x68, 0xa9, 0x48, 0x90, 0x13,
|
||||
0x82, 0xb4, 0x37, 0x95, 0x37, 0x1e, 0x52, 0x6b, 0x1d, 0x3b, 0x9b, 0x99, 0x46, 0xf4, 0x45, 0x10,
|
||||
0xb7, 0xbc, 0x0d, 0x37, 0x48, 0x3c, 0x02, 0x2a, 0x97, 0xbc, 0x01, 0x57, 0xc8, 0xf3, 0x97, 0x71,
|
||||
0x92, 0xdd, 0xb6, 0x77, 0x33, 0xe7, 0xe7, 0x3b, 0xe7, 0x3b, 0xf3, 0x1d, 0xcb, 0xf0, 0xce, 0x8a,
|
||||
0x45, 0xf1, 0x3c, 0xc9, 0xba, 0x8b, 0x65, 0xce, 0x72, 0x54, 0x97, 0x57, 0xff, 0x5d, 0x16, 0xbd,
|
||||
0x4c, 0x09, 0x9b, 0x47, 0x59, 0x34, 0x23, 0xcb, 0x38, 0x62, 0x91, 0x88, 0xf0, 0x0f, 0x59, 0xbe,
|
||||
0xc8, 0x8d, 0xfb, 0xd1, 0x8a, 0x4d, 0x59, 0xba, 0x36, 0xe0, 0xcf, 0xa0, 0xfe, 0x34, 0xbd, 0xa4,
|
||||
0x8c, 0x2c, 0xd1, 0x21, 0x54, 0x92, 0xd8, 0xb3, 0xda, 0x56, 0xc7, 0x0e, 0x2b, 0x49, 0x8c, 0x10,
|
||||
0xec, 0x67, 0xd1, 0x9c, 0x78, 0x15, 0x6e, 0xe1, 0x67, 0xfc, 0xaf, 0x05, 0x8d, 0x33, 0x72, 0x45,
|
||||
0x17, 0xd1, 0x94, 0xa0, 0x4f, 0xa0, 0x3e, 0x15, 0xb9, 0x3c, 0xcb, 0xe9, 0xb9, 0x5d, 0xd5, 0x9f,
|
||||
0xc4, 0x0c, 0x55, 0x00, 0x0a, 0xa0, 0xf1, 0x4a, 0xe6, 0x71, 0x40, 0xa7, 0x77, 0xbf, 0xbb, 0xee,
|
||||
0x45, 0x41, 0x86, 0x3a, 0x08, 0x7d, 0x09, 0x35, 0x7a, 0x11, 0x2d, 0x63, 0xea, 0x55, 0xdb, 0xd5,
|
||||
0x8e, 0xd3, 0x7b, 0xa4, 0xb1, 0x55, 0x70, 0x77, 0xc4, 0xfd, 0xa7, 0x19, 0x5b, 0x5e, 0x85, 0x32,
|
||||
0xd8, 0x3f, 0x03, 0xc7, 0x30, 0x23, 0x17, 0xaa, 0xaf, 0xc8, 0x95, 0x24, 0x55, 0x1c, 0xd1, 0x47,
|
||||
0x70, 0xb0, 0x8a, 0xd2, 0x4b, 0xd5, 0x85, 0x6b, 0x74, 0xc1, 0x13, 0x43, 0xe1, 0xfe, 0xba, 0xf2,
|
||||
0x95, 0x85, 0x7f, 0xb7, 0xa0, 0x36, 0x9a, 0x5e, 0x90, 0x79, 0x74, 0x27, 0xae, 0xfe, 0x06, 0x57,
|
||||
0xdb, 0xa0, 0x35, 0x84, 0x26, 0x7f, 0xab, 0xf3, 0x98, 0xfc, 0x9c, 0x64, 0x09, 0x4b, 0xf2, 0x4c,
|
||||
0x31, 0xc4, 0xdd, 0xed, 0x57, 0x1c, 0x17, 0x96, 0x67, 0x3a, 0x34, 0x74, 0x59, 0xd9, 0x40, 0xf1,
|
||||
0x9f, 0x16, 0xd4, 0x78, 0x14, 0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0xd4, 0xb3, 0xb8, 0x5e, 0xb6, 0xeb, 0xea, 0x08, 0xdc, 0x83, 0xa3, 0x3e, 0x61,
|
||||
0x05, 0x67, 0x85, 0x8b, 0xde, 0x07, 0x47, 0xba, 0xcf, 0x93, 0x58, 0x60, 0xd8, 0x21, 0x48, 0xd3,
|
||||
0xf3, 0x98, 0xe2, 0x13, 0x70, 0xd7, 0x39, 0xb2, 0xea, 0x87, 0x70, 0x30, 0x2b, 0x0c, 0xb2, 0xe4,
|
||||
0x91, 0x2e, 0x29, 0x06, 0x1a, 0x0a, 0x2f, 0x7e, 0xcc, 0x7b, 0x56, 0x8b, 0x79, 0xfb, 0x92, 0x7d,
|
||||
0x78, 0x50, 0xce, 0x93, 0x65, 0x03, 0x73, 0x6e, 0xa2, 0x74, 0x73, 0x6b, 0xff, 0xcd, 0x51, 0x7e,
|
||||
0x01, 0xcd, 0x3e, 0x61, 0x62, 0x57, 0x6f, 0x5f, 0xfe, 0x1b, 0xfe, 0x00, 0x3a, 0x4b, 0x16, 0xff,
|
||||
0x18, 0xea, 0x54, 0x98, 0xb6, 0x58, 0x8b, 0xd0, 0x50, 0xf9, 0xf1, 0x90, 0x8f, 0x4c, 0x2e, 0x8c,
|
||||
0xac, 0xfa, 0x36, 0x8d, 0x6d, 0x74, 0x54, 0xd9, 0xea, 0x48, 0xf0, 0x10, 0x80, 0x77, 0xe5, 0xa1,
|
||||
0xb3, 0xd6, 0x3c, 0xc4, 0x0a, 0x6f, 0xf3, 0x90, 0x1d, 0x2b, 0x3f, 0x7e, 0x01, 0xee, 0x64, 0x7c,
|
||||
0xfa, 0xcb, 0x22, 0x8d, 0x92, 0x4c, 0x55, 0xf5, 0xca, 0x5f, 0x13, 0xfb, 0x76, 0xdf, 0x37, 0x17,
|
||||
0xaa, 0xf4, 0xb5, 0x5a, 0x98, 0xe2, 0x88, 0x03, 0x68, 0x1a, 0xd8, 0xb2, 0x37, 0x1f, 0x1a, 0x4b,
|
||||
0x79, 0x56, 0x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|
||||
0x09, 0x00, 0x00,
|
||||
0x14, 0x8e, 0x93, 0xe6, 0xc7, 0xc7, 0x4b, 0xeb, 0xce, 0x56, 0xc2, 0x78, 0xdb, 0x52, 0x8d, 0x00,
|
||||
0x05, 0x04, 0xb1, 0x14, 0x60, 0x45, 0xb9, 0x41, 0xcb, 0x6e, 0x15, 0x2d, 0x15, 0x09, 0x72, 0x42,
|
||||
0x90, 0xf6, 0xa6, 0xf2, 0xc6, 0x43, 0x6a, 0xad, 0x63, 0x67, 0x33, 0xd3, 0x88, 0xbe, 0x08, 0xe2,
|
||||
0x96, 0x87, 0xe0, 0x1d, 0xb8, 0x41, 0xe2, 0x11, 0x50, 0xb9, 0xe4, 0x25, 0x90, 0xe7, 0x2f, 0xfe,
|
||||
0xc9, 0x76, 0xdb, 0xbb, 0x99, 0xf3, 0xf7, 0x7d, 0xdf, 0x9c, 0x73, 0x9c, 0xc0, 0x3b, 0x6b, 0x16,
|
||||
0x84, 0x8b, 0x28, 0xe9, 0x2d, 0x57, 0x29, 0x4b, 0x51, 0x5b, 0x5e, 0xdd, 0x77, 0x59, 0xf0, 0x32,
|
||||
0x26, 0x6c, 0x11, 0x24, 0xc1, 0x9c, 0xac, 0xc2, 0x80, 0x05, 0x22, 0xc2, 0xdd, 0x65, 0xe9, 0x32,
|
||||
0xcd, 0xdd, 0xf7, 0xd6, 0x6c, 0xc6, 0xe2, 0x8d, 0x01, 0x7f, 0x06, 0xed, 0xa7, 0xf1, 0x15, 0x65,
|
||||
0x64, 0x85, 0x76, 0xa1, 0x1e, 0x85, 0x8e, 0x71, 0x62, 0x74, 0x4d, 0xbf, 0x1e, 0x85, 0x08, 0xc1,
|
||||
0x4e, 0x12, 0x2c, 0x88, 0x53, 0xe7, 0x16, 0x7e, 0xc6, 0xff, 0x19, 0xd0, 0x39, 0x27, 0xd7, 0x74,
|
||||
0x19, 0xcc, 0x08, 0xfa, 0x04, 0xda, 0x33, 0x91, 0xcb, 0xb3, 0xac, 0xbe, 0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0x81, 0xc2, 0x09, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
|
@ -1183,6 +1249,9 @@ type VTAdminClient interface {
|
|||
GetGates(ctx context.Context, in *GetGatesRequest, opts ...grpc.CallOption) (*GetGatesResponse, error)
|
||||
// GetKeyspaces returns all keyspaces across the specified clusters.
|
||||
GetKeyspaces(ctx context.Context, in *GetKeyspacesRequest, opts ...grpc.CallOption) (*GetKeyspacesResponse, error)
|
||||
// GetSchema returns the schema for the specified (cluster, keyspace, table)
|
||||
// tuple.
|
||||
GetSchema(ctx context.Context, in *GetSchemaRequest, opts ...grpc.CallOption) (*Schema, error)
|
||||
// GetSchemas returns all schemas across the specified clusters.
|
||||
GetSchemas(ctx context.Context, in *GetSchemasRequest, opts ...grpc.CallOption) (*GetSchemasResponse, error)
|
||||
// GetTablet looks up a tablet by hostname across all clusters and returns
|
||||
|
@ -1229,6 +1298,15 @@ func (c *vTAdminClient) GetKeyspaces(ctx context.Context, in *GetKeyspacesReques
|
|||
return out, nil
|
||||
}
|
||||
|
||||
func (c *vTAdminClient) GetSchema(ctx context.Context, in *GetSchemaRequest, opts ...grpc.CallOption) (*Schema, error) {
|
||||
out := new(Schema)
|
||||
err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/GetSchema", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *vTAdminClient) GetSchemas(ctx context.Context, in *GetSchemasRequest, opts ...grpc.CallOption) (*GetSchemasResponse, error) {
|
||||
out := new(GetSchemasResponse)
|
||||
err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/GetSchemas", in, out, opts...)
|
||||
|
@ -1273,6 +1351,9 @@ type VTAdminServer interface {
|
|||
GetGates(context.Context, *GetGatesRequest) (*GetGatesResponse, error)
|
||||
// GetKeyspaces returns all keyspaces across the specified clusters.
|
||||
GetKeyspaces(context.Context, *GetKeyspacesRequest) (*GetKeyspacesResponse, error)
|
||||
// GetSchema returns the schema for the specified (cluster, keyspace, table)
|
||||
// tuple.
|
||||
GetSchema(context.Context, *GetSchemaRequest) (*Schema, error)
|
||||
// GetSchemas returns all schemas across the specified clusters.
|
||||
GetSchemas(context.Context, *GetSchemasRequest) (*GetSchemasResponse, error)
|
||||
// GetTablet looks up a tablet by hostname across all clusters and returns
|
||||
|
@ -1297,6 +1378,9 @@ func (*UnimplementedVTAdminServer) GetGates(ctx context.Context, req *GetGatesRe
|
|||
func (*UnimplementedVTAdminServer) GetKeyspaces(ctx context.Context, req *GetKeyspacesRequest) (*GetKeyspacesResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetKeyspaces not implemented")
|
||||
}
|
||||
func (*UnimplementedVTAdminServer) GetSchema(ctx context.Context, req *GetSchemaRequest) (*Schema, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetSchema not implemented")
|
||||
}
|
||||
func (*UnimplementedVTAdminServer) GetSchemas(ctx context.Context, req *GetSchemasRequest) (*GetSchemasResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetSchemas not implemented")
|
||||
}
|
||||
|
@ -1368,6 +1452,24 @@ func _VTAdmin_GetKeyspaces_Handler(srv interface{}, ctx context.Context, dec fun
|
|||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _VTAdmin_GetSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetSchemaRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(VTAdminServer).GetSchema(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/vtadmin.VTAdmin/GetSchema",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(VTAdminServer).GetSchema(ctx, req.(*GetSchemaRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _VTAdmin_GetSchemas_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetSchemasRequest)
|
||||
if err := dec(in); err != nil {
|
||||
|
@ -1456,6 +1558,10 @@ var _VTAdmin_serviceDesc = grpc.ServiceDesc{
|
|||
MethodName: "GetKeyspaces",
|
||||
Handler: _VTAdmin_GetKeyspaces_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetSchema",
|
||||
Handler: _VTAdmin_GetSchema_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetSchemas",
|
||||
Handler: _VTAdmin_GetSchemas_Handler,
|
||||
|
@ -2048,6 +2154,54 @@ func (m *GetKeyspacesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func (m *GetSchemaRequest) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return dAtA[:n], nil
|
||||
}
|
||||
|
||||
func (m *GetSchemaRequest) MarshalTo(dAtA []byte) (int, error) {
|
||||
size := m.Size()
|
||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||
}
|
||||
|
||||
func (m *GetSchemaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i := len(dAtA)
|
||||
_ = i
|
||||
var l int
|
||||
_ = l
|
||||
if m.XXX_unrecognized != nil {
|
||||
i -= len(m.XXX_unrecognized)
|
||||
copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
if len(m.Table) > 0 {
|
||||
i -= len(m.Table)
|
||||
copy(dAtA[i:], m.Table)
|
||||
i = encodeVarintVtadmin(dAtA, i, uint64(len(m.Table)))
|
||||
i--
|
||||
dAtA[i] = 0x1a
|
||||
}
|
||||
if len(m.Keyspace) > 0 {
|
||||
i -= len(m.Keyspace)
|
||||
copy(dAtA[i:], m.Keyspace)
|
||||
i = encodeVarintVtadmin(dAtA, i, uint64(len(m.Keyspace)))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if len(m.ClusterId) > 0 {
|
||||
i -= len(m.ClusterId)
|
||||
copy(dAtA[i:], m.ClusterId)
|
||||
i = encodeVarintVtadmin(dAtA, i, uint64(len(m.ClusterId)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func (m *GetSchemasRequest) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
|
@ -2596,6 +2750,30 @@ func (m *GetKeyspacesResponse) Size() (n int) {
|
|||
return n
|
||||
}
|
||||
|
||||
func (m *GetSchemaRequest) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
l = len(m.ClusterId)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovVtadmin(uint64(l))
|
||||
}
|
||||
l = len(m.Keyspace)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovVtadmin(uint64(l))
|
||||
}
|
||||
l = len(m.Table)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovVtadmin(uint64(l))
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *GetSchemasRequest) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
|
@ -4240,6 +4418,156 @@ func (m *GetKeyspacesResponse) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
func (m *GetSchemaRequest) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
for iNdEx < l {
|
||||
preIndex := iNdEx
|
||||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowVtadmin
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
fieldNum := int32(wire >> 3)
|
||||
wireType := int(wire & 0x7)
|
||||
if wireType == 4 {
|
||||
return fmt.Errorf("proto: GetSchemaRequest: wiretype end group for non-group")
|
||||
}
|
||||
if fieldNum <= 0 {
|
||||
return fmt.Errorf("proto: GetSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
}
|
||||
switch fieldNum {
|
||||
case 1:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType)
|
||||
}
|
||||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowVtadmin
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthVtadmin
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthVtadmin
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.ClusterId = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
case 2:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType)
|
||||
}
|
||||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowVtadmin
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthVtadmin
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthVtadmin
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.Keyspace = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
case 3:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType)
|
||||
}
|
||||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowVtadmin
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthVtadmin
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthVtadmin
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.Table = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipVtadmin(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthVtadmin
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthVtadmin
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
||||
if iNdEx > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func (m *GetSchemasRequest) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
|
|
|
@ -280,6 +280,11 @@ func (api *API) GetKeyspaces(ctx context.Context, req *vtadminpb.GetKeyspacesReq
|
|||
}, nil
|
||||
}
|
||||
|
||||
// GetSchema is part of the vtadminpb.VTAdminServer interface.
|
||||
func (api *API) GetSchema(ctx context.Context, req *vtadminpb.GetSchemaRequest) (*vtadminpb.Schema, error) {
|
||||
panic("unimplemented!")
|
||||
}
|
||||
|
||||
// GetSchemas is part of the vtadminpb.VTAdminServer interface.
|
||||
func (api *API) GetSchemas(ctx context.Context, req *vtadminpb.GetSchemasRequest) (*vtadminpb.GetSchemasResponse, error) {
|
||||
span, ctx := trace.NewSpan(ctx, "API.GetSchemas")
|
||||
|
|
|
@ -22,7 +22,14 @@ import (
|
|||
vtadminpb "vitess.io/vitess/go/vt/proto/vtadmin"
|
||||
)
|
||||
|
||||
// GetSchemas implements the http wrapper for /schemas[?cluster=[&cluster=]
|
||||
// GetSchema implements the http wrapper for the
|
||||
// /schema/{cluster_id}/{keyspace}/{table} route.
|
||||
func GetSchema(ctx context.Context, r Request, api *API) *JSONResponse {
|
||||
panic("unimplemented!")
|
||||
}
|
||||
|
||||
// GetSchemas implements the http wrapper for the /schemas[?cluster=[&cluster=]
|
||||
// route.
|
||||
func GetSchemas(ctx context.Context, r Request, api *API) *JSONResponse {
|
||||
schemas, err := api.server.GetSchemas(ctx, &vtadminpb.GetSchemasRequest{
|
||||
ClusterIds: r.URL.Query()["cluster"],
|
||||
|
|
|
@ -36,6 +36,9 @@ service VTAdmin {
|
|||
rpc GetGates(GetGatesRequest) returns (GetGatesResponse) {};
|
||||
// GetKeyspaces returns all keyspaces across the specified clusters.
|
||||
rpc GetKeyspaces(GetKeyspacesRequest) returns (GetKeyspacesResponse) {};
|
||||
// GetSchema returns the schema for the specified (cluster, keyspace, table)
|
||||
// tuple.
|
||||
rpc GetSchema(GetSchemaRequest) returns (Schema) {};
|
||||
// GetSchemas returns all schemas across the specified clusters.
|
||||
rpc GetSchemas(GetSchemasRequest) returns (GetSchemasResponse) {};
|
||||
// GetTablet looks up a tablet by hostname across all clusters and returns
|
||||
|
@ -130,6 +133,12 @@ message GetKeyspacesResponse {
|
|||
repeated Keyspace keyspaces = 1;
|
||||
}
|
||||
|
||||
message GetSchemaRequest {
|
||||
string cluster_id = 1;
|
||||
string keyspace = 2;
|
||||
string table = 3;
|
||||
}
|
||||
|
||||
message GetSchemasRequest {
|
||||
repeated string cluster_ids = 1;
|
||||
}
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче