Remove references to go-micro (#13)

* Remove references to go-micro

* Fix proto import
This commit is contained in:
ben-toogood
2020-10-16 13:23:04 +01:00
committed by GitHub
parent 0eb6f0d325
commit 784ed763fd
27 changed files with 403 additions and 673 deletions

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"time"
log "github.com/micro/go-micro/v3/logger"
log "github.com/micro/micro/v3/service/logger"
store "github.com/micro/micro/v3/service/store"
pb "github.com/micro/services/test/kv/proto"

View File

@@ -1,15 +1,11 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: test/service/storeexample/proto/example.proto
// source: github.com/micro/services/test/kv/proto/example.proto
package srv_test_example
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
@@ -34,7 +30,7 @@ func (m *Request) Reset() { *m = Request{} }
func (m *Request) String() string { return proto.CompactTextString(m) }
func (*Request) ProtoMessage() {}
func (*Request) Descriptor() ([]byte, []int) {
return fileDescriptor_060cb6963cd2b8f6, []int{0}
return fileDescriptor_c4c395a09e1b1991, []int{0}
}
func (m *Request) XXX_Unmarshal(b []byte) error {
@@ -66,7 +62,7 @@ func (m *Response) Reset() { *m = Response{} }
func (m *Response) String() string { return proto.CompactTextString(m) }
func (*Response) ProtoMessage() {}
func (*Response) Descriptor() ([]byte, []int) {
return fileDescriptor_060cb6963cd2b8f6, []int{1}
return fileDescriptor_c4c395a09e1b1991, []int{1}
}
func (m *Response) XXX_Unmarshal(b []byte) error {
@@ -100,99 +96,22 @@ func init() {
}
func init() {
proto.RegisterFile("test/service/storeexample/proto/example.proto", fileDescriptor_060cb6963cd2b8f6)
proto.RegisterFile("github.com/micro/services/test/kv/proto/example.proto", fileDescriptor_c4c395a09e1b1991)
}
var fileDescriptor_060cb6963cd2b8f6 = []byte{
// 155 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2d, 0x49, 0x2d, 0x2e,
0xd1, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2f, 0x2e, 0xc9, 0x2f, 0x4a, 0x4d, 0xad,
0x48, 0xcc, 0x2d, 0xc8, 0x49, 0xd5, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x87, 0xf2, 0xf4, 0xc0,
0x3c, 0x21, 0x81, 0xe2, 0xa2, 0x32, 0x3d, 0x90, 0x96, 0x78, 0xa8, 0xb8, 0x12, 0x27, 0x17, 0x7b,
0x50, 0x6a, 0x61, 0x69, 0x6a, 0x71, 0x89, 0x92, 0x0c, 0x17, 0x47, 0x50, 0x6a, 0x71, 0x41, 0x7e,
0x5e, 0x71, 0xaa, 0x90, 0x00, 0x17, 0x73, 0x6e, 0x71, 0xba, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x67,
0x10, 0x88, 0x69, 0x14, 0xc0, 0xc5, 0xee, 0x0a, 0xd1, 0x23, 0xe4, 0xca, 0xc5, 0x15, 0x92, 0x5a,
0x5c, 0xe2, 0x5a, 0x51, 0x90, 0x59, 0x54, 0x29, 0x24, 0xa9, 0x87, 0x6e, 0xa8, 0x1e, 0xd4, 0x44,
0x29, 0x29, 0x6c, 0x52, 0x10, 0x1b, 0x94, 0x18, 0x92, 0xd8, 0xc0, 0x6e, 0x32, 0x06, 0x04, 0x00,
0x00, 0xff, 0xff, 0x4c, 0xad, 0xe6, 0x25, 0xc4, 0x00, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// ExampleClient is the client API for Example service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ExampleClient interface {
TestExpiry(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
type exampleClient struct {
cc *grpc.ClientConn
}
func NewExampleClient(cc *grpc.ClientConn) ExampleClient {
return &exampleClient{cc}
}
func (c *exampleClient) TestExpiry(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/srv.test_example.Example/TestExpiry", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ExampleServer is the server API for Example service.
type ExampleServer interface {
TestExpiry(context.Context, *Request) (*Response, error)
}
// UnimplementedExampleServer can be embedded to have forward compatible implementations.
type UnimplementedExampleServer struct {
}
func (*UnimplementedExampleServer) TestExpiry(ctx context.Context, req *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method TestExpiry not implemented")
}
func RegisterExampleServer(s *grpc.Server, srv ExampleServer) {
s.RegisterService(&_Example_serviceDesc, srv)
}
func _Example_TestExpiry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ExampleServer).TestExpiry(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/srv.test_example.Example/TestExpiry",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ExampleServer).TestExpiry(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
var _Example_serviceDesc = grpc.ServiceDesc{
ServiceName: "srv.test_example.Example",
HandlerType: (*ExampleServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "TestExpiry",
Handler: _Example_TestExpiry_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "test/service/storeexample/proto/example.proto",
var fileDescriptor_c4c395a09e1b1991 = []byte{
// 206 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x4d, 0xcf, 0x2c, 0xc9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x31, 0xa7, 0x72, 0xa7, 0x01, 0x00, 0x00,
}

View File

@@ -1,5 +1,5 @@
// Code generated by protoc-gen-micro. DO NOT EDIT.
// source: test/service/storeexample/proto/example.proto
// source: github.com/micro/services/test/kv/proto/example.proto
package srv_test_example
@@ -11,9 +11,9 @@ import (
import (
context "context"
api "github.com/micro/go-micro/v3/api"
client "github.com/micro/go-micro/v3/client"
server "github.com/micro/go-micro/v3/server"
api "github.com/micro/micro/v3/service/api"
client "github.com/micro/micro/v3/service/client"
server "github.com/micro/micro/v3/service/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -1,157 +1,88 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.11.4
// source: github.com/micro/services/pubsub/proto/pubsub.proto
// source: github.com/micro/services/test/pubsub/proto/pubsub.proto
package pubsub
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
math "math"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type Message struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (x *Message) Reset() {
*x = Message{}
if protoimpl.UnsafeEnabled {
mi := &file_github_com_micro_services_pubsub_proto_pubsub_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Message) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Message) ProtoMessage() {}
func (x *Message) ProtoReflect() protoreflect.Message {
mi := &file_github_com_micro_services_pubsub_proto_pubsub_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 Message.ProtoReflect.Descriptor instead.
func (m *Message) Reset() { *m = Message{} }
func (m *Message) String() string { return proto.CompactTextString(m) }
func (*Message) ProtoMessage() {}
func (*Message) Descriptor() ([]byte, []int) {
return file_github_com_micro_services_pubsub_proto_pubsub_proto_rawDescGZIP(), []int{0}
return fileDescriptor_59fce66331057326, []int{0}
}
func (x *Message) GetId() string {
if x != nil {
return x.Id
func (m *Message) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Message.Unmarshal(m, b)
}
func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Message.Marshal(b, m, deterministic)
}
func (m *Message) XXX_Merge(src proto.Message) {
xxx_messageInfo_Message.Merge(m, src)
}
func (m *Message) XXX_Size() int {
return xxx_messageInfo_Message.Size(m)
}
func (m *Message) XXX_DiscardUnknown() {
xxx_messageInfo_Message.DiscardUnknown(m)
}
var xxx_messageInfo_Message proto.InternalMessageInfo
func (m *Message) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (x *Message) GetBody() []byte {
if x != nil {
return x.Body
func (m *Message) GetBody() []byte {
if m != nil {
return m.Body
}
return nil
}
var File_github_com_micro_services_pubsub_proto_pubsub_proto protoreflect.FileDescriptor
var file_github_com_micro_services_pubsub_proto_pubsub_proto_rawDesc = []byte{
0x0a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x69, 0x63,
0x72, 0x6f, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x73,
0x75, 0x62, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x22, 0x2d, 0x0a,
0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
func init() {
proto.RegisterType((*Message)(nil), "pubsub.Message")
}
var (
file_github_com_micro_services_pubsub_proto_pubsub_proto_rawDescOnce sync.Once
file_github_com_micro_services_pubsub_proto_pubsub_proto_rawDescData = file_github_com_micro_services_pubsub_proto_pubsub_proto_rawDesc
)
func file_github_com_micro_services_pubsub_proto_pubsub_proto_rawDescGZIP() []byte {
file_github_com_micro_services_pubsub_proto_pubsub_proto_rawDescOnce.Do(func() {
file_github_com_micro_services_pubsub_proto_pubsub_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_micro_services_pubsub_proto_pubsub_proto_rawDescData)
})
return file_github_com_micro_services_pubsub_proto_pubsub_proto_rawDescData
func init() {
proto.RegisterFile("github.com/micro/services/test/pubsub/proto/pubsub.proto", fileDescriptor_59fce66331057326)
}
var file_github_com_micro_services_pubsub_proto_pubsub_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_github_com_micro_services_pubsub_proto_pubsub_proto_goTypes = []interface{}{
(*Message)(nil), // 0: pubsub.Message
}
var file_github_com_micro_services_pubsub_proto_pubsub_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_github_com_micro_services_pubsub_proto_pubsub_proto_init() }
func file_github_com_micro_services_pubsub_proto_pubsub_proto_init() {
if File_github_com_micro_services_pubsub_proto_pubsub_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_github_com_micro_services_pubsub_proto_pubsub_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Message); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_github_com_micro_services_pubsub_proto_pubsub_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_github_com_micro_services_pubsub_proto_pubsub_proto_goTypes,
DependencyIndexes: file_github_com_micro_services_pubsub_proto_pubsub_proto_depIdxs,
MessageInfos: file_github_com_micro_services_pubsub_proto_pubsub_proto_msgTypes,
}.Build()
File_github_com_micro_services_pubsub_proto_pubsub_proto = out.File
file_github_com_micro_services_pubsub_proto_pubsub_proto_rawDesc = nil
file_github_com_micro_services_pubsub_proto_pubsub_proto_goTypes = nil
file_github_com_micro_services_pubsub_proto_pubsub_proto_depIdxs = nil
var fileDescriptor_59fce66331057326 = []byte{
// 126 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0x48, 0xcf, 0x2c, 0xc9,
0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0xcf, 0xcd, 0x4c, 0x2e, 0xca, 0xd7, 0x2f, 0x4e, 0x2d,
0x2a, 0xcb, 0x4c, 0x4e, 0x2d, 0xd6, 0x2f, 0x49, 0x2d, 0x2e, 0xd1, 0x2f, 0x28, 0x4d, 0x2a, 0x2e,
0x4d, 0xd2, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x87, 0x72, 0xf4, 0xc0, 0x1c, 0x21, 0x36, 0x08, 0x4f,
0x49, 0x97, 0x8b, 0xdd, 0x37, 0xb5, 0xb8, 0x38, 0x31, 0x3d, 0x55, 0x88, 0x8f, 0x8b, 0x29, 0x33,
0x45, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x29, 0x33, 0x45, 0x48, 0x88, 0x8b, 0x25, 0x29,
0x3f, 0xa5, 0x52, 0x82, 0x49, 0x81, 0x51, 0x83, 0x27, 0x08, 0xcc, 0x4e, 0x62, 0x03, 0xeb, 0x36,
0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x26, 0xef, 0xb4, 0x87, 0x79, 0x00, 0x00, 0x00,
}

View File

@@ -1,5 +1,5 @@
// Code generated by protoc-gen-micro. DO NOT EDIT.
// source: github.com/micro/services/pubsub/proto/pubsub.proto
// source: github.com/micro/services/test/pubsub/proto/pubsub.proto
package pubsub

View File

@@ -1,5 +1,5 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: proto/stream.proto
// source: github.com/micro/services/test/routes/proto/stream.proto
package stream
@@ -36,7 +36,7 @@ func (m *Point) Reset() { *m = Point{} }
func (m *Point) String() string { return proto.CompactTextString(m) }
func (*Point) ProtoMessage() {}
func (*Point) Descriptor() ([]byte, []int) {
return fileDescriptor_45777bc300452f06, []int{0}
return fileDescriptor_585c4bbb470dd9c7, []int{0}
}
func (m *Point) XXX_Unmarshal(b []byte) error {
@@ -87,7 +87,7 @@ func (m *Rectangle) Reset() { *m = Rectangle{} }
func (m *Rectangle) String() string { return proto.CompactTextString(m) }
func (*Rectangle) ProtoMessage() {}
func (*Rectangle) Descriptor() ([]byte, []int) {
return fileDescriptor_45777bc300452f06, []int{1}
return fileDescriptor_585c4bbb470dd9c7, []int{1}
}
func (m *Rectangle) XXX_Unmarshal(b []byte) error {
@@ -138,7 +138,7 @@ func (m *Feature) Reset() { *m = Feature{} }
func (m *Feature) String() string { return proto.CompactTextString(m) }
func (*Feature) ProtoMessage() {}
func (*Feature) Descriptor() ([]byte, []int) {
return fileDescriptor_45777bc300452f06, []int{2}
return fileDescriptor_585c4bbb470dd9c7, []int{2}
}
func (m *Feature) XXX_Unmarshal(b []byte) error {
@@ -188,7 +188,7 @@ func (m *RouteNote) Reset() { *m = RouteNote{} }
func (m *RouteNote) String() string { return proto.CompactTextString(m) }
func (*RouteNote) ProtoMessage() {}
func (*RouteNote) Descriptor() ([]byte, []int) {
return fileDescriptor_45777bc300452f06, []int{3}
return fileDescriptor_585c4bbb470dd9c7, []int{3}
}
func (m *RouteNote) XXX_Unmarshal(b []byte) error {
@@ -245,7 +245,7 @@ func (m *RouteSummary) Reset() { *m = RouteSummary{} }
func (m *RouteSummary) String() string { return proto.CompactTextString(m) }
func (*RouteSummary) ProtoMessage() {}
func (*RouteSummary) Descriptor() ([]byte, []int) {
return fileDescriptor_45777bc300452f06, []int{4}
return fileDescriptor_585c4bbb470dd9c7, []int{4}
}
func (m *RouteSummary) XXX_Unmarshal(b []byte) error {
@@ -303,33 +303,35 @@ func init() {
}
func init() {
proto.RegisterFile("proto/stream.proto", fileDescriptor_45777bc300452f06)
proto.RegisterFile("github.com/micro/services/test/routes/proto/stream.proto", fileDescriptor_585c4bbb470dd9c7)
}
var fileDescriptor_45777bc300452f06 = []byte{
// 371 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x52, 0x4f, 0x4b, 0xfb, 0x40,
0x10, 0xed, 0xf6, 0xd7, 0x3f, 0xbf, 0x4c, 0x52, 0xc4, 0xc1, 0x43, 0x29, 0x8a, 0x1a, 0x2f, 0xf5,
0x52, 0x4b, 0x05, 0x3d, 0x4b, 0xc1, 0x2a, 0x88, 0x94, 0xe8, 0xbd, 0xac, 0xc9, 0xda, 0x2e, 0x24,
0xd9, 0x92, 0x6c, 0x0e, 0x7e, 0x0e, 0x3f, 0xa3, 0xdf, 0xc3, 0xcd, 0xee, 0x26, 0xb6, 0xb6, 0x78,
0xcb, 0xbc, 0x37, 0x6f, 0xde, 0xec, 0x9b, 0x00, 0xae, 0x33, 0x21, 0xc5, 0x55, 0x2e, 0x33, 0x46,
0x93, 0x91, 0x2e, 0xb0, 0x63, 0x2a, 0xff, 0x0e, 0xda, 0x73, 0xc1, 0x53, 0x89, 0x03, 0xf8, 0x1f,
0x53, 0xc9, 0x65, 0x11, 0xb1, 0x3e, 0x39, 0x23, 0xc3, 0x76, 0x50, 0xd7, 0x78, 0x0c, 0x4e, 0x2c,
0xd2, 0xa5, 0x21, 0x9b, 0x9a, 0xfc, 0x01, 0xfc, 0x47, 0x70, 0x02, 0x16, 0x4a, 0x9a, 0x2e, 0x63,
0x86, 0x27, 0xd0, 0x8c, 0x85, 0x1e, 0xe0, 0x4e, 0x7a, 0x23, 0x6b, 0xa9, 0x1d, 0x02, 0x45, 0x94,
0xf4, 0x8a, 0xeb, 0x11, 0xbb, 0xf4, 0x8a, 0xfb, 0x0f, 0xd0, 0xbd, 0x67, 0x54, 0x16, 0x19, 0x43,
0x84, 0x56, 0x4a, 0x13, 0xb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b, 0x50, 0x29, 0x1b, 0x93,
0xb7, 0x8e, 0xfe, 0x6d, 0xaf, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xcf, 0x12, 0xaf, 0xc8, 0xcc,
0x02, 0x00, 0x00,
var fileDescriptor_585c4bbb470dd9c7 = []byte{
// 402 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x52, 0x5d, 0x6b, 0xd5, 0x40,
0x10, 0xed, 0x5e, 0xfb, 0x71, 0x33, 0xf7, 0x16, 0x71, 0xf0, 0xe1, 0x12, 0x14, 0x35, 0xbe, 0xd4,
0x97, 0xa4, 0x54, 0xa8, 0xbe, 0x4a, 0xc1, 0x2a, 0x88, 0x94, 0xe8, 0x7b, 0xd9, 0x6e, 0xc6, 0x64,
0x21, 0x9b, 0xbd, 0xec, 0x4e, 0x04, 0x7f, 0x87, 0xbf, 0xd1, 0xff, 0x21, 0xd9, 0x4d, 0x62, 0x6b,
0x2f, 0x7d, 0xcb, 0x39, 0x67, 0xce, 0xcc, 0xce, 0x99, 0xc0, 0xfb, 0x5a, 0x73, 0xd3, 0xdf, 0xe4,
0xca, 0x9a, 0xc2, 0x68, 0xe5, 0x6c, 0xe1, 0xc9, 0xfd, 0xd4, 0x8a, 0x7c, 0xc1, 0xe4, 0xb9, 0x70,
0xb6, 0x67, 0xf2, 0xc5, 0xd6, 0x59, 0xb6, 0x85, 0x67, 0x47, 0xd2, 0xe4, 0x01, 0xe0, 0x61, 0x44,
0xd9, 0x07, 0x38, 0xb8, 0xb2, 0xba, 0x63, 0x4c, 0x61, 0xd9, 0x4a, 0xd6, 0xdc, 0x57, 0xb4, 0x11,
0x2f, 0xc5, 0xc9, 0x41, 0x39, 0x63, 0x7c, 0x06, 0x49, 0x6b, 0xbb, 0x3a, 0x8a, 0x8b, 0x20, 0xfe,
0x23, 0xb2, 0xcf, 0x90, 0x94, 0xa4, 0x58, 0x76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0x9f, 0x4c, 0x25, 0xf3, 0x45, 0x77, 0xb8, 0x4e, 0x05, 0x9e, 0xc3, 0xaa, 0x24, 0x65, 0x5d,
0x15, 0x66, 0xff, 0x3f, 0xe8, 0xe9, 0xdc, 0xe5, 0x56, 0x5e, 0xd9, 0xde, 0x89, 0xc0, 0x77, 0xe3,
0x59, 0x2e, 0x1a, 0xc9, 0xb7, 0x86, 0x4d, 0x97, 0x4a, 0xef, 0x53, 0x83, 0xed, 0x54, 0xdc, 0x1c,
0x86, 0xdf, 0xf6, 0xed, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x9a, 0x82, 0x91, 0x05, 0xf2, 0x02,
0x00, 0x00,
}

View File

@@ -1,5 +1,5 @@
// Code generated by protoc-gen-micro. DO NOT EDIT.
// source: proto/stream.proto
// source: github.com/micro/services/test/routes/proto/stream.proto
package stream

View File

@@ -1,5 +1,5 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: proto/idiomatic.proto
// source: github.com/micro/services/test/template/proto/idiomatic.proto
package idiomatic
@@ -31,7 +31,7 @@ func (m *Message) Reset() { *m = Message{} }
func (m *Message) String() string { return proto.CompactTextString(m) }
func (*Message) ProtoMessage() {}
func (*Message) Descriptor() ([]byte, []int) {
return fileDescriptor_70718d389c4b1652, []int{0}
return fileDescriptor_62f877917a7b488e, []int{0}
}
func (m *Message) XXX_Unmarshal(b []byte) error {
@@ -70,7 +70,7 @@ func (m *Request) Reset() { *m = Request{} }
func (m *Request) String() string { return proto.CompactTextString(m) }
func (*Request) ProtoMessage() {}
func (*Request) Descriptor() ([]byte, []int) {
return fileDescriptor_70718d389c4b1652, []int{1}
return fileDescriptor_62f877917a7b488e, []int{1}
}
func (m *Request) XXX_Unmarshal(b []byte) error {
@@ -109,7 +109,7 @@ func (m *Response) Reset() { *m = Response{} }
func (m *Response) String() string { return proto.CompactTextString(m) }
func (*Response) ProtoMessage() {}
func (*Response) Descriptor() ([]byte, []int) {
return fileDescriptor_70718d389c4b1652, []int{2}
return fileDescriptor_62f877917a7b488e, []int{2}
}
func (m *Response) XXX_Unmarshal(b []byte) error {
@@ -148,7 +148,7 @@ func (m *StreamingRequest) Reset() { *m = StreamingRequest{} }
func (m *StreamingRequest) String() string { return proto.CompactTextString(m) }
func (*StreamingRequest) ProtoMessage() {}
func (*StreamingRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_70718d389c4b1652, []int{3}
return fileDescriptor_62f877917a7b488e, []int{3}
}
func (m *StreamingRequest) XXX_Unmarshal(b []byte) error {
@@ -187,7 +187,7 @@ func (m *StreamingResponse) Reset() { *m = StreamingResponse{} }
func (m *StreamingResponse) String() string { return proto.CompactTextString(m) }
func (*StreamingResponse) ProtoMessage() {}
func (*StreamingResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_70718d389c4b1652, []int{4}
return fileDescriptor_62f877917a7b488e, []int{4}
}
func (m *StreamingResponse) XXX_Unmarshal(b []byte) error {
@@ -226,7 +226,7 @@ func (m *Ping) Reset() { *m = Ping{} }
func (m *Ping) String() string { return proto.CompactTextString(m) }
func (*Ping) ProtoMessage() {}
func (*Ping) Descriptor() ([]byte, []int) {
return fileDescriptor_70718d389c4b1652, []int{5}
return fileDescriptor_62f877917a7b488e, []int{5}
}
func (m *Ping) XXX_Unmarshal(b []byte) error {
@@ -265,7 +265,7 @@ func (m *Pong) Reset() { *m = Pong{} }
func (m *Pong) String() string { return proto.CompactTextString(m) }
func (*Pong) ProtoMessage() {}
func (*Pong) Descriptor() ([]byte, []int) {
return fileDescriptor_70718d389c4b1652, []int{6}
return fileDescriptor_62f877917a7b488e, []int{6}
}
func (m *Pong) XXX_Unmarshal(b []byte) error {
@@ -303,25 +303,29 @@ func init() {
proto.RegisterType((*Pong)(nil), "idiomatic.Pong")
}
func init() { proto.RegisterFile("proto/idiomatic.proto", fileDescriptor_70718d389c4b1652) }
var fileDescriptor_70718d389c4b1652 = []byte{
// 270 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00,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0xd7, 0xd0, 0xbb,
0x17, 0xab, 0x15, 0xe2, 0xec, 0xf7, 0x85, 0x62, 0xd4, 0xec, 0x70, 0x47, 0xab, 0x43, 0xf1, 0x0e,
0x3e, 0x40, 0x52, 0x67, 0xc5, 0x49, 0xcb, 0xf0, 0xf7, 0xd0, 0x6c, 0xba, 0x1f, 0x36, 0x6b, 0xe6,
0x0c, 0x17, 0x30, 0xa8, 0x2e, 0x09, 0x69, 0x87, 0x2d, 0x77, 0x25, 0x66, 0x3b, 0x82, 0xb3, 0x8a,
0x77, 0x72, 0x36, 0x67, 0x77, 0xe3, 0xd7, 0x61, 0xf8, 0xc0, 0xdb, 0x2d, 0x7d, 0x4b, 0x82, 0x70,
0xf3, 0x13, 0x00, 0x00, 0xff, 0xff, 0xf8, 0xd7, 0xdf, 0x69, 0xea, 0x01, 0x00, 0x00,
func init() {
proto.RegisterFile("github.com/micro/services/test/template/proto/idiomatic.proto", fileDescriptor_62f877917a7b488e)
}
var fileDescriptor_62f877917a7b488e = []byte{
// 303 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x51, 0xbd, 0x4e, 0x33, 0x31,
0x10, 0x8c, 0x95, 0x7c, 0xf9, 0xd9, 0xe6, 0x0b, 0x06, 0x21, 0x94, 0x04, 0x84, 0x5c, 0x85, 0x26,
0x0e, 0xa1, 0x40, 0x08, 0xd1, 0x40, 0x81, 0x28, 0x90, 0xd0, 0xd1, 0xd1, 0x39, 0xc7, 0xca, 0x58,
0xc4, 0x76, 0xb8, 0x75, 0x90, 0x78, 0x36, 0x5e, 0x0e, 0x9d, 0xef, 0x2e, 0x5c, 0x50, 0x28, 0xe8,
0x76, 0x67, 0x66, 0x47, 0x33, 0x36, 0x5c, 0x69, 0x13, 0x5e, 0x56, 0xf3, 0x49, 0xea, 0xad, 0xb4,
0x26, 0xcd, 0xbc, 0x24, 0xcc, 0xde, 0x4d, 0x8a,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0xcc, 0xa6, 0xec, 0xfa, 0xe2, 0xe9, 0xfc, 0x4f, 0x1f, 0x7f, 0xb9, 0x76, 0x99, 0xb7, 0x23,
0x70, 0xf6, 0x15, 0x00, 0x00, 0xff, 0xff, 0xeb, 0xd1, 0xb5, 0x3e, 0x3a, 0x02, 0x00, 0x00,
}

View File

@@ -1,5 +1,5 @@
// Code generated by protoc-gen-micro. DO NOT EDIT.
// source: proto/idiomatic.proto
// source: github.com/micro/services/test/template/proto/idiomatic.proto
package idiomatic
@@ -11,9 +11,9 @@ import (
import (
context "context"
api "github.com/micro/go-micro/v3/api"
client "github.com/micro/go-micro/v3/client"
server "github.com/micro/go-micro/v3/server"
api "github.com/micro/micro/v3/service/api"
client "github.com/micro/micro/v3/service/client"
server "github.com/micro/micro/v3/service/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -2,7 +2,7 @@ syntax = "proto3";
package idiomatic;
option go_package = "proto;idiomatic";
option go_package = "github.com/micro/services/test/template/proto;idiomatic";
service Idiomatic {
rpc Call(Request) returns (Response) {}