From 065d08016932324fa3850ab3771123f3a9ae138b Mon Sep 17 00:00:00 2001 From: iamqizhao Date: Wed, 21 Jan 2015 17:29:20 -0800 Subject: [PATCH 1/2] chmod *.go files --- call.go | 0 clientconn.go | 0 codes/codes.go | 0 credentials/credentials.go | 0 interop/client/client.go | 0 interop/server/server.go | 0 interop/testdata/test_proto.pb.go | 0 interop/testdata/test_proto_grpc.pb.go | 0 metadata/metadata.go | 0 metadata/metadata_test.go | 0 rpc_util.go | 0 rpc_util_test.go | 0 server.go | 0 stream.go | 0 test/end2end_test.go | 0 test/testdata/test.pb.go | 92 +++++--------------------- test/testdata/test_grpc.pb.go | 32 --------- transport/control.go | 0 transport/http2_client_transport.go | 0 transport/http2_server_transport.go | 0 transport/http_util.go | 0 transport/http_util_test.go | 0 transport/transport.go | 0 transport/transport_test.go | 0 24 files changed, 17 insertions(+), 107 deletions(-) mode change 100755 => 100644 call.go mode change 100755 => 100644 clientconn.go mode change 100755 => 100644 codes/codes.go mode change 100755 => 100644 credentials/credentials.go mode change 100755 => 100644 interop/client/client.go mode change 100755 => 100644 interop/server/server.go mode change 100755 => 100644 interop/testdata/test_proto.pb.go mode change 100755 => 100644 interop/testdata/test_proto_grpc.pb.go mode change 100755 => 100644 metadata/metadata.go mode change 100755 => 100644 metadata/metadata_test.go mode change 100755 => 100644 rpc_util.go mode change 100755 => 100644 rpc_util_test.go mode change 100755 => 100644 server.go mode change 100755 => 100644 stream.go mode change 100755 => 100644 test/end2end_test.go mode change 100755 => 100644 test/testdata/test.pb.go mode change 100755 => 100644 test/testdata/test_grpc.pb.go mode change 100755 => 100644 transport/control.go mode change 100755 => 100644 transport/http2_client_transport.go mode change 100755 => 100644 transport/http2_server_transport.go mode change 100755 => 100644 transport/http_util.go mode change 100755 => 100644 transport/http_util_test.go mode change 100755 => 100644 transport/transport.go mode change 100755 => 100644 transport/transport_test.go diff --git a/call.go b/call.go old mode 100755 new mode 100644 diff --git a/clientconn.go b/clientconn.go old mode 100755 new mode 100644 diff --git a/codes/codes.go b/codes/codes.go old mode 100755 new mode 100644 diff --git a/credentials/credentials.go b/credentials/credentials.go old mode 100755 new mode 100644 diff --git a/interop/client/client.go b/interop/client/client.go old mode 100755 new mode 100644 diff --git a/interop/server/server.go b/interop/server/server.go old mode 100755 new mode 100644 diff --git a/interop/testdata/test_proto.pb.go b/interop/testdata/test_proto.pb.go old mode 100755 new mode 100644 diff --git a/interop/testdata/test_proto_grpc.pb.go b/interop/testdata/test_proto_grpc.pb.go old mode 100755 new mode 100644 diff --git a/metadata/metadata.go b/metadata/metadata.go old mode 100755 new mode 100644 diff --git a/metadata/metadata_test.go b/metadata/metadata_test.go old mode 100755 new mode 100644 diff --git a/rpc_util.go b/rpc_util.go old mode 100755 new mode 100644 diff --git a/rpc_util_test.go b/rpc_util_test.go old mode 100755 new mode 100644 diff --git a/server.go b/server.go old mode 100755 new mode 100644 diff --git a/stream.go b/stream.go old mode 100755 new mode 100644 diff --git a/test/end2end_test.go b/test/end2end_test.go old mode 100755 new mode 100644 diff --git a/test/testdata/test.pb.go b/test/testdata/test.pb.go old mode 100755 new mode 100644 index 0477e2be455..a2d3dc161c4 --- a/test/testdata/test.pb.go +++ b/test/testdata/test.pb.go @@ -1,44 +1,12 @@ -/* - * - * Copyright 2014, Google Inc. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - */ // Code generated by protoc-gen-go. -// source: net/grpc/go/test/test.proto +// source: test.proto // DO NOT EDIT! /* Package test is a generated protocol buffer package. It is generated from these files: - net/grpc/go/test/test.proto + test.proto It has these top-level messages: DivArgs @@ -62,10 +30,9 @@ type DivArgs struct { XXX_unrecognized []byte `json:"-"` } -func (m *DivArgs) Reset() { *m = DivArgs{} } -func (m *DivArgs) String() string { return proto.CompactTextString(m) } -func (*DivArgs) ProtoMessage() {} -func (*DivArgs) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (m *DivArgs) Reset() { *m = DivArgs{} } +func (m *DivArgs) String() string { return proto.CompactTextString(m) } +func (*DivArgs) ProtoMessage() {} func (m *DivArgs) GetDividend() int64 { if m != nil && m.Dividend != nil { @@ -87,10 +54,9 @@ type DivReply struct { XXX_unrecognized []byte `json:"-"` } -func (m *DivReply) Reset() { *m = DivReply{} } -func (m *DivReply) String() string { return proto.CompactTextString(m) } -func (*DivReply) ProtoMessage() {} -func (*DivReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +func (m *DivReply) Reset() { *m = DivReply{} } +func (m *DivReply) String() string { return proto.CompactTextString(m) } +func (*DivReply) ProtoMessage() {} func (m *DivReply) GetQuotient() int64 { if m != nil && m.Quotient != nil { @@ -111,10 +77,9 @@ type FibArgs struct { XXX_unrecognized []byte `json:"-"` } -func (m *FibArgs) Reset() { *m = FibArgs{} } -func (m *FibArgs) String() string { return proto.CompactTextString(m) } -func (*FibArgs) ProtoMessage() {} -func (*FibArgs) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +func (m *FibArgs) Reset() { *m = FibArgs{} } +func (m *FibArgs) String() string { return proto.CompactTextString(m) } +func (*FibArgs) ProtoMessage() {} func (m *FibArgs) GetLimit() int64 { if m != nil && m.Limit != nil { @@ -128,10 +93,9 @@ type Num struct { XXX_unrecognized []byte `json:"-"` } -func (m *Num) Reset() { *m = Num{} } -func (m *Num) String() string { return proto.CompactTextString(m) } -func (*Num) ProtoMessage() {} -func (*Num) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +func (m *Num) Reset() { *m = Num{} } +func (m *Num) String() string { return proto.CompactTextString(m) } +func (*Num) ProtoMessage() {} func (m *Num) GetNum() int64 { if m != nil && m.Num != nil { @@ -145,10 +109,9 @@ type FibReply struct { XXX_unrecognized []byte `json:"-"` } -func (m *FibReply) Reset() { *m = FibReply{} } -func (m *FibReply) String() string { return proto.CompactTextString(m) } -func (*FibReply) ProtoMessage() {} -func (*FibReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +func (m *FibReply) Reset() { *m = FibReply{} } +func (m *FibReply) String() string { return proto.CompactTextString(m) } +func (*FibReply) ProtoMessage() {} func (m *FibReply) GetCount() int64 { if m != nil && m.Count != nil { @@ -159,24 +122,3 @@ func (m *FibReply) GetCount() int64 { func init() { } - -var fileDescriptor0 = []byte{ - // 268 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x84, 0x90, 0xbf, 0x4e, 0xc3, 0x30, - 0x10, 0x87, 0xb9, 0xba, 0x34, 0xe9, 0xa1, 0xf2, 0xc7, 0x53, 0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e, 0x17, 0x0e, 0x5b, 0x65, 0x7a, 0xb7, 0x8f, 0x9d, 0xb4, 0x00, 0x5f, 0x00, 0x0b, 0xb8, 0x01, - 0x9f, 0x4e, 0x06, 0xc3, 0x46, 0xaf, 0x3e, 0x9f, 0x76, 0x25, 0xf9, 0x0a, 0x46, 0x24, 0x71, 0x02, - 0xd9, 0x2b, 0xd9, 0xff, 0x0d, 0xfe, 0x31, 0xad, 0x4f, 0x7b, 0x98, 0xbc, 0x85, 0x27, 0xfe, 0x09, - 0x00, 0x00, 0xff, 0xff, 0x5d, 0x79, 0x02, 0xec, 0x86, 0x01, 0x00, 0x00, -} diff --git a/test/testdata/test_grpc.pb.go b/test/testdata/test_grpc.pb.go old mode 100755 new mode 100644 index 69d4c1aaea5..01c73d989f7 --- a/test/testdata/test_grpc.pb.go +++ b/test/testdata/test_grpc.pb.go @@ -1,35 +1,3 @@ -/* - * - * Copyright 2014, Google Inc. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - */ package test import ( diff --git a/transport/control.go b/transport/control.go old mode 100755 new mode 100644 diff --git a/transport/http2_client_transport.go b/transport/http2_client_transport.go old mode 100755 new mode 100644 diff --git a/transport/http2_server_transport.go b/transport/http2_server_transport.go old mode 100755 new mode 100644 diff --git a/transport/http_util.go b/transport/http_util.go old mode 100755 new mode 100644 diff --git a/transport/http_util_test.go b/transport/http_util_test.go old mode 100755 new mode 100644 diff --git a/transport/transport.go b/transport/transport.go old mode 100755 new mode 100644 diff --git a/transport/transport_test.go b/transport/transport_test.go old mode 100755 new mode 100644 From b34454ce9283d9c491aecfa93bf11d63629b389a Mon Sep 17 00:00:00 2001 From: iamqizhao Date: Wed, 21 Jan 2015 17:38:14 -0800 Subject: [PATCH 2/2] added the missing license --- test/testdata/test.pb.go | 32 ++++++++++++++++++++++++++++++++ test/testdata/test_grpc.pb.go | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/test/testdata/test.pb.go b/test/testdata/test.pb.go index a2d3dc161c4..f9d22977d73 100644 --- a/test/testdata/test.pb.go +++ b/test/testdata/test.pb.go @@ -1,3 +1,35 @@ +/* + * + * Copyright 2014, Google Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following disclaimer + * in the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Google Inc. nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ // Code generated by protoc-gen-go. // source: test.proto // DO NOT EDIT! diff --git a/test/testdata/test_grpc.pb.go b/test/testdata/test_grpc.pb.go index 01c73d989f7..69d4c1aaea5 100644 --- a/test/testdata/test_grpc.pb.go +++ b/test/testdata/test_grpc.pb.go @@ -1,3 +1,35 @@ +/* + * + * Copyright 2014, Google Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following disclaimer + * in the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Google Inc. nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ package test import (