api: update extension index (#775)

* update extension & regenerate proto
pull/781/head
Tony Chen 4 years ago committed by GitHub
parent a185916df6
commit f9522036da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      api/kratos/api/annotations.pb.go
  2. 2
      api/kratos/api/annotations.proto
  3. 2
      cmd/protoc-gen-go-errors/go.mod
  4. 4
      cmd/protoc-gen-go-errors/go.sum

@ -1,16 +1,16 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.13.0
// protoc v3.14.0
// source: kratos/api/annotations.proto
package api
import (
proto "github.com/golang/protobuf/proto"
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
descriptorpb "google.golang.org/protobuf/types/descriptorpb"
reflect "reflect"
)
@ -27,18 +27,18 @@ const _ = proto.ProtoPackageIsVersion4
var file_kratos_api_annotations_proto_extTypes = []protoimpl.ExtensionInfo{
{
ExtendedType: (*descriptor.EnumOptions)(nil),
ExtendedType: (*descriptorpb.EnumOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 1000,
Field: 1108,
Name: "kratos.api.errors",
Tag: "varint,1000,opt,name=errors",
Tag: "varint,1108,opt,name=errors",
Filename: "kratos/api/annotations.proto",
},
}
// Extension fields to descriptor.EnumOptions.
// Extension fields to descriptorpb.EnumOptions.
var (
// optional bool errors = 1000;
// optional bool errors = 1108;
E_Errors = &file_kratos_api_annotations_proto_extTypes[0]
)
@ -52,7 +52,7 @@ var file_kratos_api_annotations_proto_rawDesc = []byte{
0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3a, 0x35, 0x0a, 0x06,
0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x4f, 0x70, 0x74,
0x69, 0x6f, 0x6e, 0x73, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x72, 0x72,
0x69, 0x6f, 0x6e, 0x73, 0x18, 0xd4, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x72, 0x72,
0x6f, 0x72, 0x73, 0x42, 0x58, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75,
0x62, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x50, 0x01, 0x5a, 0x31,
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2d, 0x6b, 0x72,
@ -63,7 +63,7 @@ var file_kratos_api_annotations_proto_rawDesc = []byte{
}
var file_kratos_api_annotations_proto_goTypes = []interface{}{
(*descriptor.EnumOptions)(nil), // 0: google.protobuf.EnumOptions
(*descriptorpb.EnumOptions)(nil), // 0: google.protobuf.EnumOptions
}
var file_kratos_api_annotations_proto_depIdxs = []int32{
0, // 0: kratos.api.errors:extendee -> google.protobuf.EnumOptions

@ -9,5 +9,5 @@ option objc_class_prefix = "KratosAPI";
import "google/protobuf/descriptor.proto";
extend google.protobuf.EnumOptions {
bool errors = 1000;
bool errors = 1108;
}

@ -3,6 +3,6 @@ module github.com/go-kratos/kratos/cmd/protoc-gen-go-errors/v2
go 1.15
require (
github.com/go-kratos/kratos/v2 v2.0.0-beta1
github.com/go-kratos/kratos/v2 v2.0.0-20210316155653-99c1cc471337
google.golang.org/protobuf v1.25.0
)

@ -9,8 +9,8 @@ github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.m
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
github.com/go-kratos/kratos/v2 v2.0.0-beta1 h1:5SWWLa0jYp92DhRGcuDKkuMg68wxkdrVvvPDpNyHy0w=
github.com/go-kratos/kratos/v2 v2.0.0-beta1/go.mod h1:oLvFyDBJkkWN8TPqb+NmpvRrSy9uM/K+XQubVRc11a8=
github.com/go-kratos/kratos/v2 v2.0.0-20210316155653-99c1cc471337 h1:UHahAsQ51BvoHP6KDk5VVbCwatLjMKV0vifXbIKeK4E=
github.com/go-kratos/kratos/v2 v2.0.0-20210316155653-99c1cc471337/go.mod h1:oLvFyDBJkkWN8TPqb+NmpvRrSy9uM/K+XQubVRc11a8=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=

Loading…
Cancel
Save