From 16d8fcfe4d570289b234c13cde73a3d26ecc47a2 Mon Sep 17 00:00:00 2001 From: Chandrashekhar Mullaparthi Date: Wed, 11 Oct 2017 11:02:38 +0100 Subject: [PATCH] Added license headers to source --- NOTICE | 2 ++ src/grpc.erl | 19 +++++++++++++++++++ src/grpc_app.erl | 19 +++++++++++++++++++ src/grpc_server.erl | 19 +++++++++++++++++++ src/grpc_stream_handler.erl | 19 +++++++++++++++++++ src/grpc_sup.erl | 19 +++++++++++++++++++ 6 files changed, 97 insertions(+) create mode 100644 NOTICE diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..6722abe --- /dev/null +++ b/NOTICE @@ -0,0 +1,2 @@ +grpc - Support for GRPC in Erlang +Copyright 2017 Bluehouse Technology Ltd. diff --git a/src/grpc.erl b/src/grpc.erl index 73d2ec2..0028884 100644 --- a/src/grpc.erl +++ b/src/grpc.erl @@ -1,3 +1,22 @@ +%%%------------------------------------------------------------------- +%%% Licensed to the Apache Software Foundation (ASF) under one +%%% or more contributor license agreements. See the NOTICE file +%%% distributed with this work for additional information +%%% regarding copyright ownership. The ASF licenses this file +%%% to you under the Apache License, Version 2.0 (the +%%% "License"); you may not use this file except in compliance +%%% with the License. You may obtain a copy of the License at +%%% +%%% http://www.apache.org/licenses/LICENSE-2.0 +%%% +%%% Unless required by applicable law or agreed to in writing, +%%% software distributed under the License is distributed on an +%%% "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +%%% KIND, either express or implied. See the License for the +%%% specific language governing permissions and limitations +%%% under the License. +%%% + %% %% @doc This is the interface for grpc. %% diff --git a/src/grpc_app.erl b/src/grpc_app.erl index e7b77a8..8630373 100644 --- a/src/grpc_app.erl +++ b/src/grpc_app.erl @@ -1,3 +1,22 @@ +%%%------------------------------------------------------------------- +%%% Licensed to the Apache Software Foundation (ASF) under one +%%% or more contributor license agreements. See the NOTICE file +%%% distributed with this work for additional information +%%% regarding copyright ownership. The ASF licenses this file +%%% to you under the Apache License, Version 2.0 (the +%%% "License"); you may not use this file except in compliance +%%% with the License. You may obtain a copy of the License at +%%% +%%% http://www.apache.org/licenses/LICENSE-2.0 +%%% +%%% Unless required by applicable law or agreed to in writing, +%%% software distributed under the License is distributed on an +%%% "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +%%% KIND, either express or implied. See the License for the +%%% specific language governing permissions and limitations +%%% under the License. +%%% + -module(grpc_app). -behaviour(application). diff --git a/src/grpc_server.erl b/src/grpc_server.erl index 92b4580..f74e92c 100644 --- a/src/grpc_server.erl +++ b/src/grpc_server.erl @@ -1,3 +1,22 @@ +%%%------------------------------------------------------------------- +%%% Licensed to the Apache Software Foundation (ASF) under one +%%% or more contributor license agreements. See the NOTICE file +%%% distributed with this work for additional information +%%% regarding copyright ownership. The ASF licenses this file +%%% to you under the Apache License, Version 2.0 (the +%%% "License"); you may not use this file except in compliance +%%% with the License. You may obtain a copy of the License at +%%% +%%% http://www.apache.org/licenses/LICENSE-2.0 +%%% +%%% Unless required by applicable law or agreed to in writing, +%%% software distributed under the License is distributed on an +%%% "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +%%% KIND, either express or implied. See the License for the +%%% specific language governing permissions and limitations +%%% under the License. +%%% + %%% Implementation of the interface between the gRPC framework and the %%% Cowboy HTTP server. %%% diff --git a/src/grpc_stream_handler.erl b/src/grpc_stream_handler.erl index 4df0b89..18a097c 100644 --- a/src/grpc_stream_handler.erl +++ b/src/grpc_stream_handler.erl @@ -1,3 +1,22 @@ +%%%------------------------------------------------------------------- +%%% Licensed to the Apache Software Foundation (ASF) under one +%%% or more contributor license agreements. See the NOTICE file +%%% distributed with this work for additional information +%%% regarding copyright ownership. The ASF licenses this file +%%% to you under the Apache License, Version 2.0 (the +%%% "License"); you may not use this file except in compliance +%%% with the License. You may obtain a copy of the License at +%%% +%%% http://www.apache.org/licenses/LICENSE-2.0 +%%% +%%% Unless required by applicable law or agreed to in writing, +%%% software distributed under the License is distributed on an +%%% "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +%%% KIND, either express or implied. See the License for the +%%% specific language governing permissions and limitations +%%% under the License. +%%% + %% @doc This cowboy stream handler takes care of flow control. %% %% It keeps track of the number of bytes received on a stream diff --git a/src/grpc_sup.erl b/src/grpc_sup.erl index 099cb21..585bdcd 100644 --- a/src/grpc_sup.erl +++ b/src/grpc_sup.erl @@ -1,3 +1,22 @@ +%%%------------------------------------------------------------------- +%%% Licensed to the Apache Software Foundation (ASF) under one +%%% or more contributor license agreements. See the NOTICE file +%%% distributed with this work for additional information +%%% regarding copyright ownership. The ASF licenses this file +%%% to you under the Apache License, Version 2.0 (the +%%% "License"); you may not use this file except in compliance +%%% with the License. You may obtain a copy of the License at +%%% +%%% http://www.apache.org/licenses/LICENSE-2.0 +%%% +%%% Unless required by applicable law or agreed to in writing, +%%% software distributed under the License is distributed on an +%%% "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +%%% KIND, either express or implied. See the License for the +%%% specific language governing permissions and limitations +%%% under the License. +%%% + -module(grpc_sup). -behaviour(supervisor).