Skip to content

Commit a94a7ac

Browse files
thinkeroumenghanl
authored andcommitted
add license for some files (grpc#1296)
1 parent 20e0396 commit a94a7ac

25 files changed

+248
-12
lines changed

backoff.go

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
*
3+
* Copyright 2017 gRPC authors.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/
18+
119
package grpc
220

321
import (

backoff_test.go

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
*
3+
* Copyright 2017 gRPC authors.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/
18+
119
package grpc
220

321
import "testing"

benchmark/benchmark16_test.go

+18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
// +build go1.6,!go1.7
22

3+
/*
4+
*
5+
* Copyright 2017 gRPC authors.
6+
*
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
*
19+
*/
20+
321
package benchmark
422

523
import (

benchmark/benchmark17_test.go

+18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
// +build go1.7
22

3+
/*
4+
*
5+
* Copyright 2017 gRPC authors.
6+
*
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
*
19+
*/
20+
321
package benchmark
422

523
import (

benchmark/client/main.go

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
*
3+
* Copyright 2017 gRPC authors.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/
18+
119
package main
220

321
import (

benchmark/latency/latency_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* limitations under the License.
1616
*
1717
*/
18+
1819
package latency
1920

2021
import (

benchmark/server/main.go

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
*
3+
* Copyright 2017 gRPC authors.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/
18+
119
package main
220

321
import (

benchmark/stats/histogram.go

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
*
3+
* Copyright 2017 gRPC authors.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/
18+
119
package stats
220

321
import (

benchmark/stats/stats.go

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
*
3+
* Copyright 2017 gRPC authors.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/
18+
119
package stats
220

321
import (

benchmark/stats/util.go

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
*
3+
* Copyright 2017 gRPC authors.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/
18+
119
package stats
220

321
import (

benchmark/worker/util.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
*
23
* Copyright 2016 gRPC authors.
34
*
45
* Licensed under the Apache License, Version 2.0 (the "License");

codec.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
*
2+
*
33
* Copyright 2014 gRPC authors.
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,7 +14,7 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*
17-
*/
17+
*/
1818

1919
package grpc
2020

examples/helloworld/mock_helloworld/hw_mock_test.go

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
*
3+
* Copyright 2017 gRPC authors.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/
18+
119
package mock_helloworld_test
220

321
import (

examples/route_guide/mock_routeguide/rg_mock_test.go

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
*
3+
* Copyright 2017 gRPC authors.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/
18+
119
package mock_routeguide_test
220

321
import (

go16.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// +build go1.6,!go1.7
22

33
/*
4+
*
45
* Copyright 2016 gRPC authors.
56
*
67
* Licensed under the Apache License, Version 2.0 (the "License");

go17.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// +build go1.7
22

33
/*
4+
*
45
* Copyright 2016 gRPC authors.
56
*
67
* Licensed under the Apache License, Version 2.0 (the "License");

grpclb/grpclb_server_generated.go

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
*
3+
* Copyright 2017 gRPC authors.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/
18+
119
// This file contains the generated server side code.
220
// It's only used for grpclb testing.
321

grpclog/glogger/glogger.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
*
1717
*/
1818

19-
/*
20-
Package glogger defines glog-based logging for grpc.
21-
*/
19+
// Package glogger defines glog-based logging for grpc.
2220
package glogger
2321

2422
import (

grpclog/logger.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
*
1717
*/
1818

19-
/*
20-
Package grpclog defines logging for grpc.
21-
*/
19+
// Package grpclog defines logging for grpc.
2220
package grpclog // import "google.golang.org/grpc/grpclog"
2321

2422
import (

health/health.go

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
*
3+
* Copyright 2017 gRPC authors.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/
18+
119
// Package health provides some utility functions to health-check a server. The implementation
220
// is based on protobuf. Users need to write their own implementations if other IDLs are used.
321
package health

transport/go16.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// +build go1.6,!go1.7
22

33
/*
4+
*
45
* Copyright 2016 gRPC authors.
56
*
67
* Licensed under the Apache License, Version 2.0 (the "License");

transport/go17.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// +build go1.7
22

33
/*
4+
*
45
* Copyright 2016 gRPC authors.
56
*
67
* Licensed under the Apache License, Version 2.0 (the "License");

transport/handler_server.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
*
23
* Copyright 2016 gRPC authors.
34
*
45
* Licensed under the Apache License, Version 2.0 (the "License");

transport/handler_server_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
*
23
* Copyright 2016 gRPC authors.
34
*
45
* Licensed under the Apache License, Version 2.0 (the "License");

transport/transport.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616
*
1717
*/
1818

19-
/*
20-
Package transport defines and implements message oriented communication channel
21-
to complete various transactions (e.g., an RPC).
22-
*/
19+
// Package transport defines and implements message oriented communication
20+
// channel to complete various transactions (e.g., an RPC).
2321
package transport // import "google.golang.org/grpc/transport"
2422

2523
import (

0 commit comments

Comments
 (0)