refactor: remove unused grpc methods (#67)
This commit is contained in:
+89
-295
@@ -34,77 +34,6 @@ const (
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type CreateRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
|
||||
TableName *TableName `protobuf:"bytes,2,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
|
||||
Partitions []*Partition `protobuf:"bytes,3,rep,name=partitions,proto3" json:"partitions,omitempty"`
|
||||
TableInfo []byte `protobuf:"bytes,4,opt,name=table_info,json=tableInfo,proto3" json:"table_info,omitempty"`
|
||||
}
|
||||
|
||||
func (x *CreateRequest) Reset() {
|
||||
*x = CreateRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *CreateRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CreateRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CreateRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CreateRequest) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetHeader() *RequestHeader {
|
||||
if x != nil {
|
||||
return x.Header
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetTableName() *TableName {
|
||||
if x != nil {
|
||||
return x.TableName
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetPartitions() []*Partition {
|
||||
if x != nil {
|
||||
return x.Partitions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetTableInfo() []byte {
|
||||
if x != nil {
|
||||
return x.TableInfo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type RouteRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -118,7 +47,7 @@ type RouteRequest struct {
|
||||
func (x *RouteRequest) Reset() {
|
||||
*x = RouteRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[1]
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -131,7 +60,7 @@ func (x *RouteRequest) String() string {
|
||||
func (*RouteRequest) ProtoMessage() {}
|
||||
|
||||
func (x *RouteRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[1]
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -144,7 +73,7 @@ func (x *RouteRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use RouteRequest.ProtoReflect.Descriptor instead.
|
||||
func (*RouteRequest) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{1}
|
||||
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *RouteRequest) GetHeader() *RequestHeader {
|
||||
@@ -168,69 +97,6 @@ func (x *RouteRequest) GetTableIds() []*TableId {
|
||||
return nil
|
||||
}
|
||||
|
||||
type DeleteRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
|
||||
TableName *TableName `protobuf:"bytes,2,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
|
||||
TableId *TableId `protobuf:"bytes,3,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
|
||||
}
|
||||
|
||||
func (x *DeleteRequest) Reset() {
|
||||
*x = DeleteRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DeleteRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DeleteRequest) ProtoMessage() {}
|
||||
|
||||
func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
|
||||
func (*DeleteRequest) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *DeleteRequest) GetHeader() *RequestHeader {
|
||||
if x != nil {
|
||||
return x.Header
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DeleteRequest) GetTableName() *TableName {
|
||||
if x != nil {
|
||||
return x.TableName
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DeleteRequest) GetTableId() *TableId {
|
||||
if x != nil {
|
||||
return x.TableId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type RouteResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -244,7 +110,7 @@ type RouteResponse struct {
|
||||
func (x *RouteResponse) Reset() {
|
||||
*x = RouteResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[3]
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -257,7 +123,7 @@ func (x *RouteResponse) String() string {
|
||||
func (*RouteResponse) ProtoMessage() {}
|
||||
|
||||
func (x *RouteResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[3]
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -270,7 +136,7 @@ func (x *RouteResponse) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use RouteResponse.ProtoReflect.Descriptor instead.
|
||||
func (*RouteResponse) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{3}
|
||||
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *RouteResponse) GetHeader() *ResponseHeader {
|
||||
@@ -306,7 +172,7 @@ type TableRoute struct {
|
||||
func (x *TableRoute) Reset() {
|
||||
*x = TableRoute{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[4]
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -319,7 +185,7 @@ func (x *TableRoute) String() string {
|
||||
func (*TableRoute) ProtoMessage() {}
|
||||
|
||||
func (x *TableRoute) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[4]
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -332,7 +198,7 @@ func (x *TableRoute) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use TableRoute.ProtoReflect.Descriptor instead.
|
||||
func (*TableRoute) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{4}
|
||||
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *TableRoute) GetTable() *Table {
|
||||
@@ -364,7 +230,7 @@ type RegionRoute struct {
|
||||
func (x *RegionRoute) Reset() {
|
||||
*x = RegionRoute{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[5]
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -377,7 +243,7 @@ func (x *RegionRoute) String() string {
|
||||
func (*RegionRoute) ProtoMessage() {}
|
||||
|
||||
func (x *RegionRoute) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[5]
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -390,7 +256,7 @@ func (x *RegionRoute) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use RegionRoute.ProtoReflect.Descriptor instead.
|
||||
func (*RegionRoute) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{5}
|
||||
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *RegionRoute) GetRegion() *Region {
|
||||
@@ -427,7 +293,7 @@ type Table struct {
|
||||
func (x *Table) Reset() {
|
||||
*x = Table{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[6]
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -440,7 +306,7 @@ func (x *Table) String() string {
|
||||
func (*Table) ProtoMessage() {}
|
||||
|
||||
func (x *Table) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[6]
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[4]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -453,7 +319,7 @@ func (x *Table) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use Table.ProtoReflect.Descriptor instead.
|
||||
func (*Table) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{6}
|
||||
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *Table) GetId() uint64 {
|
||||
@@ -492,7 +358,7 @@ type Region struct {
|
||||
func (x *Region) Reset() {
|
||||
*x = Region{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[7]
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -505,7 +371,7 @@ func (x *Region) String() string {
|
||||
func (*Region) ProtoMessage() {}
|
||||
|
||||
func (x *Region) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[7]
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -518,7 +384,7 @@ func (x *Region) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use Region.ProtoReflect.Descriptor instead.
|
||||
func (*Region) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{7}
|
||||
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *Region) GetId() uint64 {
|
||||
@@ -562,7 +428,7 @@ type Partition struct {
|
||||
func (x *Partition) Reset() {
|
||||
*x = Partition{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[8]
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -575,7 +441,7 @@ func (x *Partition) String() string {
|
||||
func (*Partition) ProtoMessage() {}
|
||||
|
||||
func (x *Partition) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[8]
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[6]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -588,7 +454,7 @@ func (x *Partition) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use Partition.ProtoReflect.Descriptor instead.
|
||||
func (*Partition) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{8}
|
||||
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *Partition) GetColumnList() [][]byte {
|
||||
@@ -618,7 +484,7 @@ type TableRouteValue struct {
|
||||
func (x *TableRouteValue) Reset() {
|
||||
*x = TableRouteValue{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[9]
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -631,7 +497,7 @@ func (x *TableRouteValue) String() string {
|
||||
func (*TableRouteValue) ProtoMessage() {}
|
||||
|
||||
func (x *TableRouteValue) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[9]
|
||||
mi := &file_greptime_v1_meta_route_proto_msgTypes[7]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -644,7 +510,7 @@ func (x *TableRouteValue) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use TableRouteValue.ProtoReflect.Descriptor instead.
|
||||
func (*TableRouteValue) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{9}
|
||||
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *TableRouteValue) GetPeers() []*Peer {
|
||||
@@ -669,44 +535,18 @@ var file_greptime_v1_meta_route_proto_rawDesc = []byte{
|
||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61,
|
||||
0x1a, 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65,
|
||||
0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
|
||||
0xe0, 0x01, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64,
|
||||
0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x0a, 0x74, 0x61,
|
||||
0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b,
|
||||
0xbd, 0x01, 0x0a, 0x0c, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
|
||||
0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65,
|
||||
0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3c, 0x0a, 0x0b, 0x74, 0x61, 0x62,
|
||||
0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b,
|
||||
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
|
||||
0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x09, 0x74, 0x61, 0x62,
|
||||
0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x61,
|
||||
0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69,
|
||||
0x6f, 0x6e, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x66,
|
||||
0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e,
|
||||
0x66, 0x6f, 0x22, 0xbd, 0x01, 0x0a, 0x0c, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65,
|
||||
0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3c, 0x0a, 0x0b,
|
||||
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
|
||||
0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x0a,
|
||||
0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61,
|
||||
0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e,
|
||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61,
|
||||
0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49,
|
||||
0x64, 0x73, 0x22, 0xba, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
||||
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48,
|
||||
0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3a, 0x0a,
|
||||
0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x09,
|
||||
0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x74, 0x61, 0x62,
|
||||
0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72,
|
||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54,
|
||||
0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x22,
|
||||
0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x62,
|
||||
0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61,
|
||||
0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x22,
|
||||
0xb8, 0x01, 0x0a, 0x0d, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||
@@ -771,26 +611,16 @@ var file_greptime_v1_meta_route_proto_rawDesc = []byte{
|
||||
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x75, 0x74,
|
||||
0x65, 0x32, 0xf0, 0x01, 0x0a, 0x06, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x12, 0x4c, 0x0a, 0x06,
|
||||
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65,
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x05, 0x52, 0x6f,
|
||||
0x75, 0x74, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
|
||||
0x12, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
|
||||
0x65, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x73, 0x65, 0x22, 0x00, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
|
||||
0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f,
|
||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
|
||||
0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65,
|
||||
0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x65, 0x32, 0x54, 0x0a, 0x06, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x12, 0x4a, 0x0a, 0x05, 0x52,
|
||||
0x6f, 0x75, 0x74, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
||||
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
||||
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75,
|
||||
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65,
|
||||
0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31,
|
||||
0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -805,57 +635,45 @@ func file_greptime_v1_meta_route_proto_rawDescGZIP() []byte {
|
||||
return file_greptime_v1_meta_route_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_greptime_v1_meta_route_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
||||
var file_greptime_v1_meta_route_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||
var file_greptime_v1_meta_route_proto_goTypes = []interface{}{
|
||||
(*CreateRequest)(nil), // 0: greptime.v1.meta.CreateRequest
|
||||
(*RouteRequest)(nil), // 1: greptime.v1.meta.RouteRequest
|
||||
(*DeleteRequest)(nil), // 2: greptime.v1.meta.DeleteRequest
|
||||
(*RouteResponse)(nil), // 3: greptime.v1.meta.RouteResponse
|
||||
(*TableRoute)(nil), // 4: greptime.v1.meta.TableRoute
|
||||
(*RegionRoute)(nil), // 5: greptime.v1.meta.RegionRoute
|
||||
(*Table)(nil), // 6: greptime.v1.meta.Table
|
||||
(*Region)(nil), // 7: greptime.v1.meta.Region
|
||||
(*Partition)(nil), // 8: greptime.v1.meta.Partition
|
||||
(*TableRouteValue)(nil), // 9: greptime.v1.meta.TableRouteValue
|
||||
nil, // 10: greptime.v1.meta.Region.AttrsEntry
|
||||
(*RequestHeader)(nil), // 11: greptime.v1.meta.RequestHeader
|
||||
(*TableName)(nil), // 12: greptime.v1.meta.TableName
|
||||
(*TableId)(nil), // 13: greptime.v1.meta.TableId
|
||||
(*ResponseHeader)(nil), // 14: greptime.v1.meta.ResponseHeader
|
||||
(*Peer)(nil), // 15: greptime.v1.meta.Peer
|
||||
(*RouteRequest)(nil), // 0: greptime.v1.meta.RouteRequest
|
||||
(*RouteResponse)(nil), // 1: greptime.v1.meta.RouteResponse
|
||||
(*TableRoute)(nil), // 2: greptime.v1.meta.TableRoute
|
||||
(*RegionRoute)(nil), // 3: greptime.v1.meta.RegionRoute
|
||||
(*Table)(nil), // 4: greptime.v1.meta.Table
|
||||
(*Region)(nil), // 5: greptime.v1.meta.Region
|
||||
(*Partition)(nil), // 6: greptime.v1.meta.Partition
|
||||
(*TableRouteValue)(nil), // 7: greptime.v1.meta.TableRouteValue
|
||||
nil, // 8: greptime.v1.meta.Region.AttrsEntry
|
||||
(*RequestHeader)(nil), // 9: greptime.v1.meta.RequestHeader
|
||||
(*TableName)(nil), // 10: greptime.v1.meta.TableName
|
||||
(*TableId)(nil), // 11: greptime.v1.meta.TableId
|
||||
(*ResponseHeader)(nil), // 12: greptime.v1.meta.ResponseHeader
|
||||
(*Peer)(nil), // 13: greptime.v1.meta.Peer
|
||||
}
|
||||
var file_greptime_v1_meta_route_proto_depIdxs = []int32{
|
||||
11, // 0: greptime.v1.meta.CreateRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
||||
12, // 1: greptime.v1.meta.CreateRequest.table_name:type_name -> greptime.v1.meta.TableName
|
||||
8, // 2: greptime.v1.meta.CreateRequest.partitions:type_name -> greptime.v1.meta.Partition
|
||||
11, // 3: greptime.v1.meta.RouteRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
||||
12, // 4: greptime.v1.meta.RouteRequest.table_names:type_name -> greptime.v1.meta.TableName
|
||||
13, // 5: greptime.v1.meta.RouteRequest.table_ids:type_name -> greptime.v1.meta.TableId
|
||||
11, // 6: greptime.v1.meta.DeleteRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
||||
12, // 7: greptime.v1.meta.DeleteRequest.table_name:type_name -> greptime.v1.meta.TableName
|
||||
13, // 8: greptime.v1.meta.DeleteRequest.table_id:type_name -> greptime.v1.meta.TableId
|
||||
14, // 9: greptime.v1.meta.RouteResponse.header:type_name -> greptime.v1.meta.ResponseHeader
|
||||
15, // 10: greptime.v1.meta.RouteResponse.peers:type_name -> greptime.v1.meta.Peer
|
||||
4, // 11: greptime.v1.meta.RouteResponse.table_routes:type_name -> greptime.v1.meta.TableRoute
|
||||
6, // 12: greptime.v1.meta.TableRoute.table:type_name -> greptime.v1.meta.Table
|
||||
5, // 13: greptime.v1.meta.TableRoute.region_routes:type_name -> greptime.v1.meta.RegionRoute
|
||||
7, // 14: greptime.v1.meta.RegionRoute.region:type_name -> greptime.v1.meta.Region
|
||||
12, // 15: greptime.v1.meta.Table.table_name:type_name -> greptime.v1.meta.TableName
|
||||
8, // 16: greptime.v1.meta.Region.partition:type_name -> greptime.v1.meta.Partition
|
||||
10, // 17: greptime.v1.meta.Region.attrs:type_name -> greptime.v1.meta.Region.AttrsEntry
|
||||
15, // 18: greptime.v1.meta.TableRouteValue.peers:type_name -> greptime.v1.meta.Peer
|
||||
4, // 19: greptime.v1.meta.TableRouteValue.table_route:type_name -> greptime.v1.meta.TableRoute
|
||||
0, // 20: greptime.v1.meta.Router.Create:input_type -> greptime.v1.meta.CreateRequest
|
||||
1, // 21: greptime.v1.meta.Router.Route:input_type -> greptime.v1.meta.RouteRequest
|
||||
2, // 22: greptime.v1.meta.Router.Delete:input_type -> greptime.v1.meta.DeleteRequest
|
||||
3, // 23: greptime.v1.meta.Router.Create:output_type -> greptime.v1.meta.RouteResponse
|
||||
3, // 24: greptime.v1.meta.Router.Route:output_type -> greptime.v1.meta.RouteResponse
|
||||
3, // 25: greptime.v1.meta.Router.Delete:output_type -> greptime.v1.meta.RouteResponse
|
||||
23, // [23:26] is the sub-list for method output_type
|
||||
20, // [20:23] is the sub-list for method input_type
|
||||
20, // [20:20] is the sub-list for extension type_name
|
||||
20, // [20:20] is the sub-list for extension extendee
|
||||
0, // [0:20] is the sub-list for field type_name
|
||||
9, // 0: greptime.v1.meta.RouteRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
||||
10, // 1: greptime.v1.meta.RouteRequest.table_names:type_name -> greptime.v1.meta.TableName
|
||||
11, // 2: greptime.v1.meta.RouteRequest.table_ids:type_name -> greptime.v1.meta.TableId
|
||||
12, // 3: greptime.v1.meta.RouteResponse.header:type_name -> greptime.v1.meta.ResponseHeader
|
||||
13, // 4: greptime.v1.meta.RouteResponse.peers:type_name -> greptime.v1.meta.Peer
|
||||
2, // 5: greptime.v1.meta.RouteResponse.table_routes:type_name -> greptime.v1.meta.TableRoute
|
||||
4, // 6: greptime.v1.meta.TableRoute.table:type_name -> greptime.v1.meta.Table
|
||||
3, // 7: greptime.v1.meta.TableRoute.region_routes:type_name -> greptime.v1.meta.RegionRoute
|
||||
5, // 8: greptime.v1.meta.RegionRoute.region:type_name -> greptime.v1.meta.Region
|
||||
10, // 9: greptime.v1.meta.Table.table_name:type_name -> greptime.v1.meta.TableName
|
||||
6, // 10: greptime.v1.meta.Region.partition:type_name -> greptime.v1.meta.Partition
|
||||
8, // 11: greptime.v1.meta.Region.attrs:type_name -> greptime.v1.meta.Region.AttrsEntry
|
||||
13, // 12: greptime.v1.meta.TableRouteValue.peers:type_name -> greptime.v1.meta.Peer
|
||||
2, // 13: greptime.v1.meta.TableRouteValue.table_route:type_name -> greptime.v1.meta.TableRoute
|
||||
0, // 14: greptime.v1.meta.Router.Route:input_type -> greptime.v1.meta.RouteRequest
|
||||
1, // 15: greptime.v1.meta.Router.Route:output_type -> greptime.v1.meta.RouteResponse
|
||||
15, // [15:16] is the sub-list for method output_type
|
||||
14, // [14:15] is the sub-list for method input_type
|
||||
14, // [14:14] is the sub-list for extension type_name
|
||||
14, // [14:14] is the sub-list for extension extendee
|
||||
0, // [0:14] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_greptime_v1_meta_route_proto_init() }
|
||||
@@ -866,18 +684,6 @@ func file_greptime_v1_meta_route_proto_init() {
|
||||
file_greptime_v1_meta_common_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_greptime_v1_meta_route_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CreateRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_route_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RouteRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -889,19 +695,7 @@ func file_greptime_v1_meta_route_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_route_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DeleteRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_route_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_greptime_v1_meta_route_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RouteResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -913,7 +707,7 @@ func file_greptime_v1_meta_route_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_route_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_greptime_v1_meta_route_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*TableRoute); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -925,7 +719,7 @@ func file_greptime_v1_meta_route_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_route_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_greptime_v1_meta_route_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RegionRoute); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -937,7 +731,7 @@ func file_greptime_v1_meta_route_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_route_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_greptime_v1_meta_route_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Table); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -949,7 +743,7 @@ func file_greptime_v1_meta_route_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_route_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_greptime_v1_meta_route_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Region); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -961,7 +755,7 @@ func file_greptime_v1_meta_route_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_route_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_greptime_v1_meta_route_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Partition); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -973,7 +767,7 @@ func file_greptime_v1_meta_route_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_route_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_greptime_v1_meta_route_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*TableRouteValue); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -992,7 +786,7 @@ func file_greptime_v1_meta_route_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_greptime_v1_meta_route_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 11,
|
||||
NumMessages: 9,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
||||
@@ -22,7 +22,6 @@ const _ = grpc.SupportPackageIsVersion7
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type RouterClient interface {
|
||||
Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*RouteResponse, error)
|
||||
// Fetch routing information for tables. The smallest unit is the complete
|
||||
// routing information(all regions) of a table.
|
||||
//
|
||||
@@ -46,7 +45,6 @@ type RouterClient interface {
|
||||
//
|
||||
// ```
|
||||
Route(ctx context.Context, in *RouteRequest, opts ...grpc.CallOption) (*RouteResponse, error)
|
||||
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*RouteResponse, error)
|
||||
}
|
||||
|
||||
type routerClient struct {
|
||||
@@ -57,15 +55,6 @@ func NewRouterClient(cc grpc.ClientConnInterface) RouterClient {
|
||||
return &routerClient{cc}
|
||||
}
|
||||
|
||||
func (c *routerClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*RouteResponse, error) {
|
||||
out := new(RouteResponse)
|
||||
err := c.cc.Invoke(ctx, "/greptime.v1.meta.Router/Create", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *routerClient) Route(ctx context.Context, in *RouteRequest, opts ...grpc.CallOption) (*RouteResponse, error) {
|
||||
out := new(RouteResponse)
|
||||
err := c.cc.Invoke(ctx, "/greptime.v1.meta.Router/Route", in, out, opts...)
|
||||
@@ -75,20 +64,10 @@ func (c *routerClient) Route(ctx context.Context, in *RouteRequest, opts ...grpc
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *routerClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*RouteResponse, error) {
|
||||
out := new(RouteResponse)
|
||||
err := c.cc.Invoke(ctx, "/greptime.v1.meta.Router/Delete", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// RouterServer is the server API for Router service.
|
||||
// All implementations must embed UnimplementedRouterServer
|
||||
// for forward compatibility
|
||||
type RouterServer interface {
|
||||
Create(context.Context, *CreateRequest) (*RouteResponse, error)
|
||||
// Fetch routing information for tables. The smallest unit is the complete
|
||||
// routing information(all regions) of a table.
|
||||
//
|
||||
@@ -112,7 +91,6 @@ type RouterServer interface {
|
||||
//
|
||||
// ```
|
||||
Route(context.Context, *RouteRequest) (*RouteResponse, error)
|
||||
Delete(context.Context, *DeleteRequest) (*RouteResponse, error)
|
||||
mustEmbedUnimplementedRouterServer()
|
||||
}
|
||||
|
||||
@@ -120,15 +98,9 @@ type RouterServer interface {
|
||||
type UnimplementedRouterServer struct {
|
||||
}
|
||||
|
||||
func (UnimplementedRouterServer) Create(context.Context, *CreateRequest) (*RouteResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
||||
}
|
||||
func (UnimplementedRouterServer) Route(context.Context, *RouteRequest) (*RouteResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Route not implemented")
|
||||
}
|
||||
func (UnimplementedRouterServer) Delete(context.Context, *DeleteRequest) (*RouteResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
||||
}
|
||||
func (UnimplementedRouterServer) mustEmbedUnimplementedRouterServer() {}
|
||||
|
||||
// UnsafeRouterServer may be embedded to opt out of forward compatibility for this service.
|
||||
@@ -142,24 +114,6 @@ func RegisterRouterServer(s grpc.ServiceRegistrar, srv RouterServer) {
|
||||
s.RegisterService(&Router_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _Router_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(RouterServer).Create(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/greptime.v1.meta.Router/Create",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(RouterServer).Create(ctx, req.(*CreateRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Router_Route_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(RouteRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -178,24 +132,6 @@ func _Router_Route_Handler(srv interface{}, ctx context.Context, dec func(interf
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Router_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(RouterServer).Delete(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/greptime.v1.meta.Router/Delete",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(RouterServer).Delete(ctx, req.(*DeleteRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// Router_ServiceDesc is the grpc.ServiceDesc for Router service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -203,18 +139,10 @@ var Router_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "greptime.v1.meta.Router",
|
||||
HandlerType: (*RouterServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Create",
|
||||
Handler: _Router_Create_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Route",
|
||||
Handler: _Router_Route_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Delete",
|
||||
Handler: _Router_Delete_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "greptime/v1/meta/route.proto",
|
||||
|
||||
Reference in New Issue
Block a user