add tag support

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-05-08 00:04:52 +03:00
parent 3fb4932db7
commit 02aa11ff16
12 changed files with 637 additions and 116 deletions

View File

@@ -14,17 +14,16 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// protoc-gen-go v1.26.0
// protoc v3.15.6
// source: api/httpbody.proto
package api
import (
proto "github.com/golang/protobuf/proto"
any "github.com/golang/protobuf/ptypes/any"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
anypb "google.golang.org/protobuf/types/known/anypb"
reflect "reflect"
sync "sync"
)
@@ -36,10 +35,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// Message that represents an arbitrary HTTP body. It should only be used for
// payload formats that can't be represented as JSON, such as raw binary or
// an HTML page.
@@ -90,7 +85,7 @@ type HttpBody struct {
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// Application specific response metadata. Must be set in the first response
// for streaming APIs.
Extensions []*any.Any `protobuf:"bytes,3,rep,name=extensions,proto3" json:"extensions,omitempty"`
Extensions []*anypb.Any `protobuf:"bytes,3,rep,name=extensions,proto3" json:"extensions,omitempty"`
}
func (x *HttpBody) Reset() {
@@ -139,7 +134,7 @@ func (x *HttpBody) GetData() []byte {
return nil
}
func (x *HttpBody) GetExtensions() []*any.Any {
func (x *HttpBody) GetExtensions() []*anypb.Any {
if x != nil {
return x.Extensions
}
@@ -182,8 +177,8 @@ func file_api_httpbody_proto_rawDescGZIP() []byte {
var file_api_httpbody_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_api_httpbody_proto_goTypes = []interface{}{
(*HttpBody)(nil), // 0: micro.api.HttpBody
(*any.Any)(nil), // 1: google.protobuf.Any
(*HttpBody)(nil), // 0: micro.api.HttpBody
(*anypb.Any)(nil), // 1: google.protobuf.Any
}
var file_api_httpbody_proto_depIdxs = []int32{
1, // 0: micro.api.HttpBody.extensions:type_name -> google.protobuf.Any