From d8d3a751d1e71d006ba90379eed388c487bbb246 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Tue, 26 Nov 2019 19:38:13 +0300 Subject: [PATCH] chore: update import paths after repo move Signed-off-by: Andrey Smirnov --- .github/workflows/go.yml | 4 +- README.md | 4 +- go.mod | 3 +- go.sum | 3 +- proxy/examples_test.go | 4 +- proxy/handler_multi_test.go | 6 +- proxy/handler_test.go | 6 +- testservice/test.pb.go | 116 ++++++++++++++++++------------------ testservice/test.proto | 2 +- 9 files changed, 74 insertions(+), 74 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 7d00fbf..f1f2441 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,5 +1,7 @@ name: Go -on: [push] +on: + - push + - pull_request jobs: build: diff --git a/README.md b/README.md index c12ee4a..2863960 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # gRPC Proxy -[![Go Report Card](https://goreportcard.com/badge/github.com/smira/grpc-proxy)](https://goreportcard.com/report/github.com/smira/grpc-proxy) -[![GoDoc](http://img.shields.io/badge/GoDoc-Reference-blue.svg)](https://godoc.org/github.com/smira/grpc-proxy) +[![Go Report Card](https://goreportcard.com/badge/github.com/talos-systems/grpc-proxy)](https://goreportcard.com/report/github.com/talos-systems/grpc-proxy) +[![GoDoc](http://img.shields.io/badge/GoDoc-Reference-blue.svg)](https://godoc.org/github.com/talos-systems/grpc-proxy) [![Apache 2.0 License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE) [gRPC Go](https://github.com/grpc/grpc-go) Proxy server diff --git a/go.mod b/go.mod index 6c3b495..ba8fcdd 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/smira/grpc-proxy +module github.com/talos-systems/grpc-proxy go 1.13 @@ -6,6 +6,5 @@ require ( github.com/golang/protobuf v1.3.2 github.com/hashicorp/go-multierror v1.0.0 github.com/stretchr/testify v1.4.0 - golang.org/x/net v0.0.0-20191116160921-f9c825593386 // indirect google.golang.org/grpc v1.25.1 ) diff --git a/go.sum b/go.sum index 6ebfe7b..c168273 100644 --- a/go.sum +++ b/go.sum @@ -31,9 +31,8 @@ golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHl golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a h1:oWX7TPOiFAMXLq8o0ikBYfCJVlRHBcsciT5bXOrH628= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20191116160921-f9c825593386 h1:ktbWvQrW08Txdxno1PiDpSxPXG6ndGsfnJjRRtkM0LQ= -golang.org/x/net v0.0.0-20191116160921-f9c825593386/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= diff --git a/proxy/examples_test.go b/proxy/examples_test.go index ccaf8ac..f6698fe 100644 --- a/proxy/examples_test.go +++ b/proxy/examples_test.go @@ -12,7 +12,7 @@ import ( "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" - "github.com/smira/grpc-proxy/proxy" + "github.com/talos-systems/grpc-proxy/proxy" ) var ( @@ -24,7 +24,7 @@ func ExampleRegisterService() { server := grpc.NewServer(grpc.CustomCodec(proxy.Codec())) // Register a TestService with 4 of its methods explicitly. proxy.RegisterService(server, director, - "smira.testproto.TestService", + "talos.testproto.TestService", []string{"PingEmpty", "Ping", "PingError", "PingList"}, []string{"PingList"}) } diff --git a/proxy/handler_multi_test.go b/proxy/handler_multi_test.go index 1faeb2d..c847bbc 100644 --- a/proxy/handler_multi_test.go +++ b/proxy/handler_multi_test.go @@ -28,8 +28,8 @@ import ( "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" - "github.com/smira/grpc-proxy/proxy" - pb "github.com/smira/grpc-proxy/testservice" + pb "github.com/talos-systems/grpc-proxy/testservice" + "github.com/talos-systems/grpc-proxy/proxy" ) const ( @@ -596,7 +596,7 @@ func (s *MultiServiceSuite) SetupSuite() { ) // Ping handler is handled as an explicit registration and not as a TransparentHandler. proxy.RegisterService(s.proxy, director, - "smira.testproto.MultiService", + "talos.testproto.MultiService", []string{"Ping", "PingStream", "PingStreamError"}, []string{"PingStream", "PingStreamError"}) diff --git a/proxy/handler_test.go b/proxy/handler_test.go index 177e7bb..b34cac4 100644 --- a/proxy/handler_test.go +++ b/proxy/handler_test.go @@ -21,8 +21,8 @@ import ( "fmt" - "github.com/smira/grpc-proxy/proxy" - pb "github.com/smira/grpc-proxy/testservice" + "github.com/talos-systems/grpc-proxy/proxy" + pb "github.com/talos-systems/grpc-proxy/testservice" ) const ( @@ -229,7 +229,7 @@ func (s *ProxyHappySuite) SetupSuite() { ) // Ping handler is handled as an explicit registration and not as a TransparentHandler. proxy.RegisterService(s.proxy, director, - "smira.testproto.TestService", + "talos.testproto.TestService", []string{"Ping"}, nil) diff --git a/testservice/test.pb.go b/testservice/test.pb.go index 2954cc5..73664ba 100644 --- a/testservice/test.pb.go +++ b/testservice/test.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // source: test.proto -package smira_testproto +package talos_testproto import ( context "context" @@ -408,50 +408,50 @@ func (m *EmptyResponse) GetMetadata() *ResponseMetadata { } func init() { - proto.RegisterType((*Empty)(nil), "smira.testproto.Empty") - proto.RegisterType((*PingRequest)(nil), "smira.testproto.PingRequest") - proto.RegisterType((*PingResponse)(nil), "smira.testproto.PingResponse") - proto.RegisterType((*ResponseMetadata)(nil), "smira.testproto.ResponseMetadata") - proto.RegisterType((*ResponseMetadataPrepender)(nil), "smira.testproto.ResponseMetadataPrepender") - proto.RegisterType((*MultiPingResponse)(nil), "smira.testproto.MultiPingResponse") - proto.RegisterType((*MultiPingReply)(nil), "smira.testproto.MultiPingReply") - proto.RegisterType((*EmptyReply)(nil), "smira.testproto.EmptyReply") - proto.RegisterType((*EmptyResponse)(nil), "smira.testproto.EmptyResponse") + proto.RegisterType((*Empty)(nil), "talos.testproto.Empty") + proto.RegisterType((*PingRequest)(nil), "talos.testproto.PingRequest") + proto.RegisterType((*PingResponse)(nil), "talos.testproto.PingResponse") + proto.RegisterType((*ResponseMetadata)(nil), "talos.testproto.ResponseMetadata") + proto.RegisterType((*ResponseMetadataPrepender)(nil), "talos.testproto.ResponseMetadataPrepender") + proto.RegisterType((*MultiPingResponse)(nil), "talos.testproto.MultiPingResponse") + proto.RegisterType((*MultiPingReply)(nil), "talos.testproto.MultiPingReply") + proto.RegisterType((*EmptyReply)(nil), "talos.testproto.EmptyReply") + proto.RegisterType((*EmptyResponse)(nil), "talos.testproto.EmptyResponse") } func init() { proto.RegisterFile("test.proto", fileDescriptor_c161fcfdc0c3ff1e) } var fileDescriptor_c161fcfdc0c3ff1e = []byte{ // 459 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x93, 0xcd, 0x6e, 0xda, 0x40, - 0x10, 0xc7, 0x6b, 0x28, 0x60, 0x86, 0xaf, 0x76, 0x55, 0x21, 0x97, 0x7e, 0x6f, 0x55, 0x89, 0x93, - 0x85, 0xe8, 0xad, 0x52, 0xb9, 0xb4, 0xb4, 0x48, 0x2d, 0x2d, 0x35, 0x0d, 0x87, 0x5c, 0x22, 0x07, - 0x56, 0x89, 0x25, 0xfc, 0x91, 0xf5, 0x1a, 0x89, 0x57, 0xc9, 0xeb, 0xe5, 0x39, 0x22, 0x65, 0x77, - 0x6d, 0x13, 0xc0, 0x21, 0x36, 0xf2, 0x71, 0xfe, 0x3b, 0xf3, 0xdb, 0x99, 0xfd, 0xcf, 0x02, 0x30, - 0xe2, 0x33, 0xdd, 0xa3, 0x2e, 0x73, 0x51, 0xcb, 0xb7, 0x2d, 0x6a, 0xea, 0x42, 0x91, 0x02, 0xae, - 0x40, 0x69, 0x68, 0x7b, 0x6c, 0x8d, 0x3f, 0x42, 0x6d, 0x62, 0x39, 0x17, 0x06, 0xb9, 0x0a, 0xf8, - 0x21, 0x7a, 0x01, 0xa5, 0x95, 0xb9, 0x0c, 0x88, 0xa6, 0xbc, 0x57, 0xba, 0x55, 0x23, 0x0c, 0xf0, - 0x00, 0xea, 0x61, 0x92, 0xef, 0xb9, 0x8e, 0x4f, 0x44, 0xd6, 0x6c, 0x3b, 0x4b, 0x06, 0x48, 0x83, - 0xca, 0xdc, 0x0d, 0x1c, 0x46, 0xa8, 0x56, 0xe0, 0x7a, 0xc9, 0x88, 0x43, 0x7c, 0x02, 0xcf, 0xe2, - 0xda, 0x31, 0x61, 0xe6, 0xc2, 0x64, 0x26, 0xea, 0x80, 0x7a, 0xe9, 0xfa, 0xcc, 0x31, 0x6d, 0xa2, - 0xcd, 0x25, 0x66, 0x13, 0xa3, 0x4f, 0xd0, 0x0c, 0x3c, 0x9f, 0x51, 0x62, 0xda, 0x67, 0x84, 0x52, - 0x97, 0x6a, 0x0b, 0x99, 0xd1, 0x88, 0xd5, 0xa1, 0x10, 0xf1, 0x29, 0xbc, 0xdc, 0xc7, 0x4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, 0xc5, 0xe9, 0x29, 0xd2, 0x0f, 0x68, 0xed, 0x1d, 0x15, 0x7c, 0xb3, + 0xe1, 0x75, 0x09, 0x1a, 0xbf, 0x79, 0xe2, 0x9c, 0x8f, 0x6e, 0x2d, 0x09, 0xfa, 0x0c, 0x75, 0x31, + 0x83, 0xbc, 0x03, 0x75, 0xef, 0x6e, 0xab, 0xf7, 0x22, 0xa5, 0xef, 0xce, 0x8d, 0x1f, 0xa0, 0x31, + 0x3c, 0x14, 0x0a, 0x7a, 0x7e, 0x24, 0x51, 0xfe, 0x86, 0x6c, 0xcc, 0xa7, 0xb8, 0x19, 0xb1, 0x8e, + 0x19, 0xac, 0x23, 0xad, 0x72, 0xc8, 0x37, 0x50, 0x45, 0xe2, 0x77, 0x8b, 0xff, 0xbf, 0x62, 0xfd, + 0x0c, 0x14, 0xf4, 0x13, 0x40, 0x68, 0x73, 0xf9, 0x4d, 0x0a, 0xe2, 0xfa, 0xca, 0x40, 0x19, 0x5e, + 0x95, 0xa1, 0x29, 0x37, 0x27, 0x31, 0xe0, 0x4b, 0x1e, 0x03, 0x5e, 0xdd, 0xb7, 0x7d, 0x7c, 0xc5, + 0xf8, 0xd8, 0x5f, 0x73, 0x59, 0x90, 0x03, 0x34, 0xc9, 0x6f, 0xc2, 0xb3, 0x63, 0x6b, 0x1c, 0x91, + 0xa6, 0xb9, 0x9d, 0xc8, 0x6e, 0x8b, 0x7b, 0xf1, 0xeb, 0x04, 0x2f, 0xb2, 0x81, 0xc2, 0x0d, 0xb4, + 0x80, 0xce, 0x2d, 0x32, 0xcf, 0xc4, 0xf9, 0xb8, 0xff, 0xab, 0xf2, 0xec, 0xfd, 0x4d, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x79, 0x7e, 0x81, 0xd6, 0x35, 0x06, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -483,7 +483,7 @@ func NewTestServiceClient(cc *grpc.ClientConn) TestServiceClient { func (c *testServiceClient) PingEmpty(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PingResponse, error) { out := new(PingResponse) - err := c.cc.Invoke(ctx, "/smira.testproto.TestService/PingEmpty", in, out, opts...) + err := c.cc.Invoke(ctx, "/talos.testproto.TestService/PingEmpty", in, out, opts...) if err != nil { return nil, err } @@ -492,7 +492,7 @@ func (c *testServiceClient) PingEmpty(ctx context.Context, in *Empty, opts ...gr func (c *testServiceClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) { out := new(PingResponse) - err := c.cc.Invoke(ctx, "/smira.testproto.TestService/Ping", in, out, opts...) + err := c.cc.Invoke(ctx, "/talos.testproto.TestService/Ping", in, out, opts...) if err != nil { return nil, err } @@ -501,7 +501,7 @@ func (c *testServiceClient) Ping(ctx context.Context, in *PingRequest, opts ...g func (c *testServiceClient) PingError(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) - err := c.cc.Invoke(ctx, "/smira.testproto.TestService/PingError", in, out, opts...) + err := c.cc.Invoke(ctx, "/talos.testproto.TestService/PingError", in, out, opts...) if err != nil { return nil, err } @@ -509,7 +509,7 @@ func (c *testServiceClient) PingError(ctx context.Context, in *PingRequest, opts } func (c *testServiceClient) PingList(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (TestService_PingListClient, error) { - stream, err := c.cc.NewStream(ctx, &_TestService_serviceDesc.Streams[0], "/smira.testproto.TestService/PingList", opts...) + stream, err := c.cc.NewStream(ctx, &_TestService_serviceDesc.Streams[0], "/talos.testproto.TestService/PingList", opts...) if err != nil { return nil, err } @@ -541,7 +541,7 @@ func (x *testServicePingListClient) Recv() (*PingResponse, error) { } func (c *testServiceClient) PingStream(ctx context.Context, opts ...grpc.CallOption) (TestService_PingStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &_TestService_serviceDesc.Streams[1], "/smira.testproto.TestService/PingStream", opts...) + stream, err := c.cc.NewStream(ctx, &_TestService_serviceDesc.Streams[1], "/talos.testproto.TestService/PingStream", opts...) if err != nil { return nil, err } @@ -614,7 +614,7 @@ func _TestService_PingEmpty_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/smira.testproto.TestService/PingEmpty", + FullMethod: "/talos.testproto.TestService/PingEmpty", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TestServiceServer).PingEmpty(ctx, req.(*Empty)) @@ -632,7 +632,7 @@ func _TestService_Ping_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/smira.testproto.TestService/Ping", + FullMethod: "/talos.testproto.TestService/Ping", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TestServiceServer).Ping(ctx, req.(*PingRequest)) @@ -650,7 +650,7 @@ func _TestService_PingError_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/smira.testproto.TestService/PingError", + FullMethod: "/talos.testproto.TestService/PingError", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TestServiceServer).PingError(ctx, req.(*PingRequest)) @@ -706,7 +706,7 @@ func (x *testServicePingStreamServer) Recv() (*PingRequest, error) { } var _TestService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "smira.testproto.TestService", + ServiceName: "talos.testproto.TestService", HandlerType: (*TestServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -760,7 +760,7 @@ func NewMultiServiceClient(cc *grpc.ClientConn) MultiServiceClient { func (c *multiServiceClient) PingEmpty(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*MultiPingReply, error) { out := new(MultiPingReply) - err := c.cc.Invoke(ctx, "/smira.testproto.MultiService/PingEmpty", in, out, opts...) + err := c.cc.Invoke(ctx, "/talos.testproto.MultiService/PingEmpty", in, out, opts...) if err != nil { return nil, err } @@ -769,7 +769,7 @@ func (c *multiServiceClient) PingEmpty(ctx context.Context, in *Empty, opts ...g func (c *multiServiceClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*MultiPingReply, error) { out := new(MultiPingReply) - err := c.cc.Invoke(ctx, "/smira.testproto.MultiService/Ping", in, out, opts...) + err := c.cc.Invoke(ctx, "/talos.testproto.MultiService/Ping", in, out, opts...) if err != nil { return nil, err } @@ -778,7 +778,7 @@ func (c *multiServiceClient) Ping(ctx context.Context, in *PingRequest, opts ... func (c *multiServiceClient) PingError(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*EmptyReply, error) { out := new(EmptyReply) - err := c.cc.Invoke(ctx, "/smira.testproto.MultiService/PingError", in, out, opts...) + err := c.cc.Invoke(ctx, "/talos.testproto.MultiService/PingError", in, out, opts...) if err != nil { return nil, err } @@ -786,7 +786,7 @@ func (c *multiServiceClient) PingError(ctx context.Context, in *PingRequest, opt } func (c *multiServiceClient) PingList(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (MultiService_PingListClient, error) { - stream, err := c.cc.NewStream(ctx, &_MultiService_serviceDesc.Streams[0], "/smira.testproto.MultiService/PingList", opts...) + stream, err := c.cc.NewStream(ctx, &_MultiService_serviceDesc.Streams[0], "/talos.testproto.MultiService/PingList", opts...) if err != nil { return nil, err } @@ -818,7 +818,7 @@ func (x *multiServicePingListClient) Recv() (*MultiPingReply, error) { } func (c *multiServiceClient) PingStream(ctx context.Context, opts ...grpc.CallOption) (MultiService_PingStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &_MultiService_serviceDesc.Streams[1], "/smira.testproto.MultiService/PingStream", opts...) + stream, err := c.cc.NewStream(ctx, &_MultiService_serviceDesc.Streams[1], "/talos.testproto.MultiService/PingStream", opts...) if err != nil { return nil, err } @@ -849,7 +849,7 @@ func (x *multiServicePingStreamClient) Recv() (*MultiPingReply, error) { } func (c *multiServiceClient) PingStreamError(ctx context.Context, opts ...grpc.CallOption) (MultiService_PingStreamErrorClient, error) { - stream, err := c.cc.NewStream(ctx, &_MultiService_serviceDesc.Streams[2], "/smira.testproto.MultiService/PingStreamError", opts...) + stream, err := c.cc.NewStream(ctx, &_MultiService_serviceDesc.Streams[2], "/talos.testproto.MultiService/PingStreamError", opts...) if err != nil { return nil, err } @@ -926,7 +926,7 @@ func _MultiService_PingEmpty_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/smira.testproto.MultiService/PingEmpty", + FullMethod: "/talos.testproto.MultiService/PingEmpty", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MultiServiceServer).PingEmpty(ctx, req.(*Empty)) @@ -944,7 +944,7 @@ func _MultiService_Ping_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/smira.testproto.MultiService/Ping", + FullMethod: "/talos.testproto.MultiService/Ping", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MultiServiceServer).Ping(ctx, req.(*PingRequest)) @@ -962,7 +962,7 @@ func _MultiService_PingError_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/smira.testproto.MultiService/PingError", + FullMethod: "/talos.testproto.MultiService/PingError", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MultiServiceServer).PingError(ctx, req.(*PingRequest)) @@ -1044,7 +1044,7 @@ func (x *multiServicePingStreamErrorServer) Recv() (*PingRequest, error) { } var _MultiService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "smira.testproto.MultiService", + ServiceName: "talos.testproto.MultiService", HandlerType: (*MultiServiceServer)(nil), Methods: []grpc.MethodDesc{ { diff --git a/testservice/test.proto b/testservice/test.proto index e7a70ff..2024416 100644 --- a/testservice/test.proto +++ b/testservice/test.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package smira.testproto; +package talos.testproto; message Empty { }