From f2a7d3d5de8471e73c70abd95a18de4ba29b2b2e Mon Sep 17 00:00:00 2001 From: watermelo <80680489@qq.com> Date: Fri, 31 Jul 2020 17:09:48 +0800 Subject: [PATCH] Add: add apache license --- .travis.yml | 8 +++- before_validate_license.sh | 26 +++++++++++ examples/echo/tcp-echo/client/app/client.go | 24 ++++++---- examples/echo/tcp-echo/client/app/config.go | 24 ++++++---- examples/echo/tcp-echo/client/app/echo.go | 24 ++++++---- examples/echo/tcp-echo/client/app/handler.go | 24 ++++++---- examples/echo/tcp-echo/client/app/main.go | 24 ++++++---- .../echo/tcp-echo/client/app/readwriter.go | 24 ++++++---- examples/echo/tcp-echo/server/app/config.go | 24 ++++++---- examples/echo/tcp-echo/server/app/echo.go | 24 ++++++---- examples/echo/tcp-echo/server/app/handler.go | 24 ++++++---- .../echo/tcp-echo/server/app/readwriter.go | 24 ++++++---- examples/echo/tcp-echo/server/app/server.go | 24 ++++++---- examples/echo/udp-echo/client/app/client.go | 24 ++++++---- examples/echo/udp-echo/client/app/config.go | 24 ++++++---- examples/echo/udp-echo/client/app/echo.go | 24 ++++++---- examples/echo/udp-echo/client/app/handler.go | 24 ++++++---- examples/echo/udp-echo/client/app/main.go | 24 ++++++---- .../echo/udp-echo/client/app/readwriter.go | 24 ++++++---- examples/echo/udp-echo/server/app/config.go | 24 ++++++---- examples/echo/udp-echo/server/app/echo.go | 24 ++++++---- examples/echo/udp-echo/server/app/handler.go | 24 ++++++---- .../echo/udp-echo/server/app/readwriter.go | 24 ++++++---- examples/echo/udp-echo/server/app/server.go | 24 ++++++---- examples/echo/ws-echo/client/app/client.go | 24 ++++++---- examples/echo/ws-echo/client/app/config.go | 24 ++++++---- examples/echo/ws-echo/client/app/echo.go | 24 ++++++---- examples/echo/ws-echo/client/app/handler.go | 24 ++++++---- examples/echo/ws-echo/client/app/main.go | 24 ++++++---- .../echo/ws-echo/client/app/readwriter.go | 24 ++++++---- examples/echo/ws-echo/server/app/config.go | 24 ++++++---- examples/echo/ws-echo/server/app/echo.go | 24 ++++++---- examples/echo/ws-echo/server/app/handler.go | 24 ++++++---- .../echo/ws-echo/server/app/readwriter.go | 24 ++++++---- examples/echo/ws-echo/server/app/server.go | 24 ++++++---- examples/echo/wss-echo/client/app/client.go | 24 ++++++---- examples/echo/wss-echo/client/app/config.go | 24 ++++++---- examples/echo/wss-echo/client/app/echo.go | 24 ++++++---- examples/echo/wss-echo/client/app/handler.go | 24 ++++++---- examples/echo/wss-echo/client/app/main.go | 24 ++++++---- .../echo/wss-echo/client/app/readwriter.go | 24 ++++++---- examples/echo/wss-echo/server/app/config.go | 24 ++++++---- examples/echo/wss-echo/server/app/echo.go | 24 ++++++---- examples/echo/wss-echo/server/app/handler.go | 24 ++++++---- .../echo/wss-echo/server/app/readwriter.go | 24 ++++++---- examples/echo/wss-echo/server/app/server.go | 24 ++++++---- examples/micro/client/app/config.go | 24 ++++++---- examples/micro/client/app/main.go | 24 ++++++---- examples/micro/client/app/service.pb.go | 17 +++++++ examples/micro/client/app/test.go | 17 +++++++ examples/micro/server/app/config.go | 24 ++++++---- examples/micro/server/app/server.go | 24 ++++++---- examples/micro/server/app/service.pb.go | 17 +++++++ examples/micro/server/app/test.go | 17 +++++++ examples/rpc/client/app/config.go | 24 ++++++---- examples/rpc/client/app/main.go | 24 ++++++---- examples/rpc/server/app/config.go | 24 ++++++---- examples/rpc/server/app/server.go | 24 ++++++---- examples/rpc/service/service.pb.go | 17 +++++++ examples/rpc/service/test.go | 17 +++++++ micro/client.go | 17 +++++++ micro/client_test.go | 17 +++++++ micro/config.go | 17 +++++++ micro/server.go | 17 +++++++ micro/server_test.go | 17 +++++++ rpc/client.go | 17 +++++++ rpc/client_test.go | 17 +++++++ rpc/codec.go | 17 +++++++ rpc/codec.pb.go | 17 +++++++ rpc/codec.pb_test.go | 17 +++++++ rpc/config.go | 17 +++++++ rpc/config_test.go | 17 +++++++ rpc/listener.go | 17 +++++++ rpc/pool.go | 17 +++++++ rpc/pool_test.go | 17 +++++++ rpc/readwriter.go | 17 +++++++ rpc/rpc.go | 17 +++++++ rpc/rpc_test.go | 17 +++++++ rpc/rpcclientmap.go | 17 +++++++ rpc/rpcclientmap_test.go | 17 +++++++ rpc/server.go | 17 +++++++ rpc/server_test.go | 17 +++++++ rpc/util.go | 17 +++++++ transport/client.go | 24 ++++++---- transport/client_test.go | 17 +++++++ transport/connection.go | 24 ++++++---- transport/const.go | 25 +++++++---- transport/getty.go | 24 ++++++---- transport/options.go | 25 +++++++---- transport/options_test.go | 17 +++++++ transport/server.go | 24 ++++++---- transport/server_test.go | 17 +++++++ transport/session.go | 44 +++++++++++-------- transport/version.go | 24 ++++++---- 94 files changed, 1546 insertions(+), 494 deletions(-) create mode 100644 before_validate_license.sh mode change 100755 => 100644 examples/echo/wss-echo/server/app/config.go mode change 100755 => 100644 examples/echo/wss-echo/server/app/echo.go mode change 100755 => 100644 examples/echo/wss-echo/server/app/handler.go mode change 100755 => 100644 examples/echo/wss-echo/server/app/readwriter.go mode change 100755 => 100644 examples/echo/wss-echo/server/app/server.go diff --git a/.travis.yml b/.travis.yml index 070e7954..7190590d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,12 +11,16 @@ env: install: true script: + - echo 'start license check' + - sh before_validate_license.sh + - chmod u+x /tmp/tools/license/license-header-checker + - /tmp/tools/license/license-header-checker -v -a -r -i vendor /tmp/tools/license/license.txt . go && [[ -z `git status -s` ]] - go fmt ./... && [[ -z `git status -s` ]] - go mod vendor && go test $(go list ./... | grep -v vendor | grep -v examples) -coverprofile=coverage.txt -covermode=atomic -after_success: +after_success: - bash <(curl -s https://codecov.io/bash) -t "26520766-2aa8-4b82-8e44-f778d718b4d9" -notifications: +notifications: webhooks: https://oapi.dingtalk.com/robot/send?access_token=75f4f1ec3868508aa89e5a5d6f9d342216809df3ebc8a78c8ae8722848e06166 webhooks: https://oapi.dingtalk.com/robot/send?access_token=072b74afbf3e746adeac1edecd5823cd24625a97eac42862476046e3057fb5ab \ No newline at end of file diff --git a/before_validate_license.sh b/before_validate_license.sh new file mode 100644 index 00000000..8fa6e381 --- /dev/null +++ b/before_validate_license.sh @@ -0,0 +1,26 @@ +# +# 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. + +remoteLicenseCheckerPath="https://github.com/dubbogo/resources/raw/master/tools/license" +remoteLicenseCheckerName="license-header-checker" +remoteLicenseCheckerURL="${remoteLicenseCheckerPath}/${remoteLicenseCheckerName}" +remoteLicenseName="license.txt" +remoteLicenseURL="${remoteLicenseCheckerPath}/${remoteLicenseName}" + +licensePath="/tmp/tools/license" +mkdir -p ${licensePath} +wget -P "${licensePath}" ${remoteLicenseCheckerURL} +wget -P "${licensePath}" ${remoteLicenseURL} diff --git a/examples/echo/tcp-echo/client/app/client.go b/examples/echo/tcp-echo/client/app/client.go index ae96737f..e4acd7db 100644 --- a/examples/echo/tcp-echo/client/app/client.go +++ b/examples/echo/tcp-echo/client/app/client.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo client -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 17:24 -# FILE : client.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/tcp-echo/client/app/config.go b/examples/echo/tcp-echo/client/app/config.go index 138a01ec..fa6aa0b2 100644 --- a/examples/echo/tcp-echo/client/app/config.go +++ b/examples/echo/tcp-echo/client/app/config.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : env var & configure -# MAINTAINER : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 16:53 -# FILE : config.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/tcp-echo/client/app/echo.go b/examples/echo/tcp-echo/client/app/echo.go index 33dbd269..f52fbdf3 100644 --- a/examples/echo/tcp-echo/client/app/echo.go +++ b/examples/echo/tcp-echo/client/app/echo.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo package -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-08-22 17:44 -# FILE : echo.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/tcp-echo/client/app/handler.go b/examples/echo/tcp-echo/client/app/handler.go index 45e53034..1365c492 100644 --- a/examples/echo/tcp-echo/client/app/handler.go +++ b/examples/echo/tcp-echo/client/app/handler.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo package handler -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 13:08 -# FILE : handler.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/tcp-echo/client/app/main.go b/examples/echo/tcp-echo/client/app/main.go index ce739289..5f2292e0 100644 --- a/examples/echo/tcp-echo/client/app/main.go +++ b/examples/echo/tcp-echo/client/app/main.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo client app -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 17:24 -# FILE : main.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/tcp-echo/client/app/readwriter.go b/examples/echo/tcp-echo/client/app/readwriter.go index 731c9d9d..b18601da 100644 --- a/examples/echo/tcp-echo/client/app/readwriter.go +++ b/examples/echo/tcp-echo/client/app/readwriter.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo stream parser -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 13:08 -# FILE : readwriter.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/tcp-echo/server/app/config.go b/examples/echo/tcp-echo/server/app/config.go index 47ca2bf1..42b8ba74 100644 --- a/examples/echo/tcp-echo/server/app/config.go +++ b/examples/echo/tcp-echo/server/app/config.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : env var & configure -# MAINTAINER : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 16:53 -# FILE : config.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/tcp-echo/server/app/echo.go b/examples/echo/tcp-echo/server/app/echo.go index cefaa96f..9d092101 100644 --- a/examples/echo/tcp-echo/server/app/echo.go +++ b/examples/echo/tcp-echo/server/app/echo.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo package -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-08-22 17:44 -# FILE : echo.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/tcp-echo/server/app/handler.go b/examples/echo/tcp-echo/server/app/handler.go index e3dda360..4acff158 100644 --- a/examples/echo/tcp-echo/server/app/handler.go +++ b/examples/echo/tcp-echo/server/app/handler.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo package handler -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 13:08 -# FILE : handler.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/tcp-echo/server/app/readwriter.go b/examples/echo/tcp-echo/server/app/readwriter.go index fecacaf5..9a9e890f 100644 --- a/examples/echo/tcp-echo/server/app/readwriter.go +++ b/examples/echo/tcp-echo/server/app/readwriter.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo stream parser -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 13:08 -# FILE : readwriter.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/tcp-echo/server/app/server.go b/examples/echo/tcp-echo/server/app/server.go index 3bc9f64a..b86b413c 100644 --- a/examples/echo/tcp-echo/server/app/server.go +++ b/examples/echo/tcp-echo/server/app/server.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo server -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 15:49 -# FILE : server.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/udp-echo/client/app/client.go b/examples/echo/udp-echo/client/app/client.go index ca6cee29..3c9f0905 100644 --- a/examples/echo/udp-echo/client/app/client.go +++ b/examples/echo/udp-echo/client/app/client.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo client -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 17:24 -# FILE : client.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/udp-echo/client/app/config.go b/examples/echo/udp-echo/client/app/config.go index 7480d9b7..e69cd1ac 100644 --- a/examples/echo/udp-echo/client/app/config.go +++ b/examples/echo/udp-echo/client/app/config.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : env var & configure -# MAINTAINER : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 16:53 -# FILE : config.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/udp-echo/client/app/echo.go b/examples/echo/udp-echo/client/app/echo.go index 15177dfd..4e9f2721 100644 --- a/examples/echo/udp-echo/client/app/echo.go +++ b/examples/echo/udp-echo/client/app/echo.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo package -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-08-22 17:44 -# FILE : echo.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/udp-echo/client/app/handler.go b/examples/echo/udp-echo/client/app/handler.go index 3f05071e..00de2457 100644 --- a/examples/echo/udp-echo/client/app/handler.go +++ b/examples/echo/udp-echo/client/app/handler.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo package handler -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 13:08 -# FILE : handler.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/udp-echo/client/app/main.go b/examples/echo/udp-echo/client/app/main.go index 4f41ddd5..d3f895a0 100644 --- a/examples/echo/udp-echo/client/app/main.go +++ b/examples/echo/udp-echo/client/app/main.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo client app -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 17:24 -# FILE : main.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/udp-echo/client/app/readwriter.go b/examples/echo/udp-echo/client/app/readwriter.go index 9ac1f750..965ddc61 100644 --- a/examples/echo/udp-echo/client/app/readwriter.go +++ b/examples/echo/udp-echo/client/app/readwriter.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo stream parser -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 13:08 -# FILE : readwriter.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/udp-echo/server/app/config.go b/examples/echo/udp-echo/server/app/config.go index 95a752a9..1465f994 100644 --- a/examples/echo/udp-echo/server/app/config.go +++ b/examples/echo/udp-echo/server/app/config.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : env var & configure -# MAINTAINER : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 16:53 -# FILE : config.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/udp-echo/server/app/echo.go b/examples/echo/udp-echo/server/app/echo.go index cefaa96f..9d092101 100644 --- a/examples/echo/udp-echo/server/app/echo.go +++ b/examples/echo/udp-echo/server/app/echo.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo package -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-08-22 17:44 -# FILE : echo.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/udp-echo/server/app/handler.go b/examples/echo/udp-echo/server/app/handler.go index 46100841..0f9af5c2 100644 --- a/examples/echo/udp-echo/server/app/handler.go +++ b/examples/echo/udp-echo/server/app/handler.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo package handler -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 13:08 -# FILE : handler.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/udp-echo/server/app/readwriter.go b/examples/echo/udp-echo/server/app/readwriter.go index 16c86e25..c0e0ae25 100644 --- a/examples/echo/udp-echo/server/app/readwriter.go +++ b/examples/echo/udp-echo/server/app/readwriter.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo stream parser -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 13:08 -# FILE : readwriter.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/udp-echo/server/app/server.go b/examples/echo/udp-echo/server/app/server.go index dcc4474c..2a746ea6 100644 --- a/examples/echo/udp-echo/server/app/server.go +++ b/examples/echo/udp-echo/server/app/server.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo server -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 15:49 -# FILE : server.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/ws-echo/client/app/client.go b/examples/echo/ws-echo/client/app/client.go index fe852d1d..d0247ece 100644 --- a/examples/echo/ws-echo/client/app/client.go +++ b/examples/echo/ws-echo/client/app/client.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo client -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 17:24 -# FILE : client.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/ws-echo/client/app/config.go b/examples/echo/ws-echo/client/app/config.go index f896e325..cda05542 100644 --- a/examples/echo/ws-echo/client/app/config.go +++ b/examples/echo/ws-echo/client/app/config.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : env var & configure -# MAINTAINER : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 16:53 -# FILE : config.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/ws-echo/client/app/echo.go b/examples/echo/ws-echo/client/app/echo.go index 709eb05d..55472dea 100644 --- a/examples/echo/ws-echo/client/app/echo.go +++ b/examples/echo/ws-echo/client/app/echo.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo package -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-08-22 17:44 -# FILE : echo.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/ws-echo/client/app/handler.go b/examples/echo/ws-echo/client/app/handler.go index fa32aeb2..86f22707 100644 --- a/examples/echo/ws-echo/client/app/handler.go +++ b/examples/echo/ws-echo/client/app/handler.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo package handler -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 13:08 -# FILE : handler.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/ws-echo/client/app/main.go b/examples/echo/ws-echo/client/app/main.go index b4e3c060..f856197f 100644 --- a/examples/echo/ws-echo/client/app/main.go +++ b/examples/echo/ws-echo/client/app/main.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo client app -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 17:24 -# FILE : main.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/ws-echo/client/app/readwriter.go b/examples/echo/ws-echo/client/app/readwriter.go index fecacaf5..9a9e890f 100644 --- a/examples/echo/ws-echo/client/app/readwriter.go +++ b/examples/echo/ws-echo/client/app/readwriter.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo stream parser -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 13:08 -# FILE : readwriter.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/ws-echo/server/app/config.go b/examples/echo/ws-echo/server/app/config.go index 66dc8c0a..800030e9 100644 --- a/examples/echo/ws-echo/server/app/config.go +++ b/examples/echo/ws-echo/server/app/config.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : env var & configure -# MAINTAINER : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 16:53 -# FILE : config.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/ws-echo/server/app/echo.go b/examples/echo/ws-echo/server/app/echo.go index e9043d67..ccfec789 100644 --- a/examples/echo/ws-echo/server/app/echo.go +++ b/examples/echo/ws-echo/server/app/echo.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo package -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-08-22 17:44 -# FILE : echo.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/ws-echo/server/app/handler.go b/examples/echo/ws-echo/server/app/handler.go index 56957745..32b2dfd5 100644 --- a/examples/echo/ws-echo/server/app/handler.go +++ b/examples/echo/ws-echo/server/app/handler.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo package handler -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 13:08 -# FILE : handler.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/ws-echo/server/app/readwriter.go b/examples/echo/ws-echo/server/app/readwriter.go index 29679411..941523e7 100644 --- a/examples/echo/ws-echo/server/app/readwriter.go +++ b/examples/echo/ws-echo/server/app/readwriter.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo stream parser -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 13:08 -# FILE : readwriter.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/ws-echo/server/app/server.go b/examples/echo/ws-echo/server/app/server.go index f8e1e40a..e83f245b 100644 --- a/examples/echo/ws-echo/server/app/server.go +++ b/examples/echo/ws-echo/server/app/server.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo server -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 15:49 -# FILE : server.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/wss-echo/client/app/client.go b/examples/echo/wss-echo/client/app/client.go index fe852d1d..d0247ece 100644 --- a/examples/echo/wss-echo/client/app/client.go +++ b/examples/echo/wss-echo/client/app/client.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo client -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 17:24 -# FILE : client.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/wss-echo/client/app/config.go b/examples/echo/wss-echo/client/app/config.go index 195026cc..c570de39 100644 --- a/examples/echo/wss-echo/client/app/config.go +++ b/examples/echo/wss-echo/client/app/config.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : env var & configure -# MAINTAINER : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 16:53 -# FILE : config.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/wss-echo/client/app/echo.go b/examples/echo/wss-echo/client/app/echo.go index 709eb05d..55472dea 100644 --- a/examples/echo/wss-echo/client/app/echo.go +++ b/examples/echo/wss-echo/client/app/echo.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo package -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-08-22 17:44 -# FILE : echo.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/wss-echo/client/app/handler.go b/examples/echo/wss-echo/client/app/handler.go index fa32aeb2..86f22707 100644 --- a/examples/echo/wss-echo/client/app/handler.go +++ b/examples/echo/wss-echo/client/app/handler.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo package handler -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 13:08 -# FILE : handler.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/wss-echo/client/app/main.go b/examples/echo/wss-echo/client/app/main.go index 3abea7fb..cb65eddc 100644 --- a/examples/echo/wss-echo/client/app/main.go +++ b/examples/echo/wss-echo/client/app/main.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo client app -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 17:24 -# FILE : main.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/wss-echo/client/app/readwriter.go b/examples/echo/wss-echo/client/app/readwriter.go index fecacaf5..9a9e890f 100644 --- a/examples/echo/wss-echo/client/app/readwriter.go +++ b/examples/echo/wss-echo/client/app/readwriter.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo stream parser -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 13:08 -# FILE : readwriter.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/wss-echo/server/app/config.go b/examples/echo/wss-echo/server/app/config.go old mode 100755 new mode 100644 index b1089ae3..5917e66b --- a/examples/echo/wss-echo/server/app/config.go +++ b/examples/echo/wss-echo/server/app/config.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : env var & configure -# MAINTAINER : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 16:53 -# FILE : config.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/wss-echo/server/app/echo.go b/examples/echo/wss-echo/server/app/echo.go old mode 100755 new mode 100644 index e9043d67..ccfec789 --- a/examples/echo/wss-echo/server/app/echo.go +++ b/examples/echo/wss-echo/server/app/echo.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo package -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-08-22 17:44 -# FILE : echo.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/wss-echo/server/app/handler.go b/examples/echo/wss-echo/server/app/handler.go old mode 100755 new mode 100644 index 56957745..32b2dfd5 --- a/examples/echo/wss-echo/server/app/handler.go +++ b/examples/echo/wss-echo/server/app/handler.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo package handler -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 13:08 -# FILE : handler.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/wss-echo/server/app/readwriter.go b/examples/echo/wss-echo/server/app/readwriter.go old mode 100755 new mode 100644 index 29679411..941523e7 --- a/examples/echo/wss-echo/server/app/readwriter.go +++ b/examples/echo/wss-echo/server/app/readwriter.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo stream parser -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 13:08 -# FILE : readwriter.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/echo/wss-echo/server/app/server.go b/examples/echo/wss-echo/server/app/server.go old mode 100755 new mode 100644 index ba4a5dd5..1e1121f0 --- a/examples/echo/wss-echo/server/app/server.go +++ b/examples/echo/wss-echo/server/app/server.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo server -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 15:49 -# FILE : server.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/micro/client/app/config.go b/examples/micro/client/app/config.go index 3cf11f68..552e509d 100644 --- a/examples/micro/client/app/config.go +++ b/examples/micro/client/app/config.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : env var & configure -# MAINTAINER : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 16:53 -# FILE : config.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/micro/client/app/main.go b/examples/micro/client/app/main.go index c8def29f..f1daa248 100644 --- a/examples/micro/client/app/main.go +++ b/examples/micro/client/app/main.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo client app -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 17:24 -# FILE : main.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/micro/client/app/service.pb.go b/examples/micro/client/app/service.pb.go index a42fd42b..8b8f74ec 100644 --- a/examples/micro/client/app/service.pb.go +++ b/examples/micro/client/app/service.pb.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: service.proto diff --git a/examples/micro/client/app/test.go b/examples/micro/client/app/test.go index 9f886a4e..46e54782 100644 --- a/examples/micro/client/app/test.go +++ b/examples/micro/client/app/test.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package main import ( diff --git a/examples/micro/server/app/config.go b/examples/micro/server/app/config.go index 72aaf942..fc7a13b4 100644 --- a/examples/micro/server/app/config.go +++ b/examples/micro/server/app/config.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : env var & configure -# MAINTAINER : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 16:53 -# FILE : config.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/micro/server/app/server.go b/examples/micro/server/app/server.go index 75e63388..cc39c361 100644 --- a/examples/micro/server/app/server.go +++ b/examples/micro/server/app/server.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo server -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 15:49 -# FILE : server.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/micro/server/app/service.pb.go b/examples/micro/server/app/service.pb.go index a42fd42b..8b8f74ec 100644 --- a/examples/micro/server/app/service.pb.go +++ b/examples/micro/server/app/service.pb.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: service.proto diff --git a/examples/micro/server/app/test.go b/examples/micro/server/app/test.go index 9f886a4e..46e54782 100644 --- a/examples/micro/server/app/test.go +++ b/examples/micro/server/app/test.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package main import ( diff --git a/examples/rpc/client/app/config.go b/examples/rpc/client/app/config.go index 5a37cf8f..3c890a96 100644 --- a/examples/rpc/client/app/config.go +++ b/examples/rpc/client/app/config.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : env var & configure -# MAINTAINER : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 16:53 -# FILE : config.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/rpc/client/app/main.go b/examples/rpc/client/app/main.go index 0453d877..2bd3c6b0 100644 --- a/examples/rpc/client/app/main.go +++ b/examples/rpc/client/app/main.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo client app -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 17:24 -# FILE : main.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/rpc/server/app/config.go b/examples/rpc/server/app/config.go index ef541a9f..0ae7221a 100644 --- a/examples/rpc/server/app/config.go +++ b/examples/rpc/server/app/config.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : env var & configure -# MAINTAINER : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-06 16:53 -# FILE : config.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/rpc/server/app/server.go b/examples/rpc/server/app/server.go index f21fd54a..0180d723 100644 --- a/examples/rpc/server/app/server.go +++ b/examples/rpc/server/app/server.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : echo server -# AUTHOR : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-04 15:49 -# FILE : server.go -******************************************************/ +/* + * 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. + */ package main diff --git a/examples/rpc/service/service.pb.go b/examples/rpc/service/service.pb.go index ad713ca2..c981d6b1 100644 --- a/examples/rpc/service/service.pb.go +++ b/examples/rpc/service/service.pb.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: service.proto diff --git a/examples/rpc/service/test.go b/examples/rpc/service/test.go index 97d6cabc..aa83363c 100644 --- a/examples/rpc/service/test.go +++ b/examples/rpc/service/test.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package service import ( diff --git a/micro/client.go b/micro/client.go index c14df8a3..40f47540 100644 --- a/micro/client.go +++ b/micro/client.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package micro import ( diff --git a/micro/client_test.go b/micro/client_test.go index b3af5760..93539e0c 100644 --- a/micro/client_test.go +++ b/micro/client_test.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package micro import ( diff --git a/micro/config.go b/micro/config.go index 65f1b417..abec5302 100644 --- a/micro/config.go +++ b/micro/config.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package micro import ( diff --git a/micro/server.go b/micro/server.go index 64c4c2e9..74d95bf8 100644 --- a/micro/server.go +++ b/micro/server.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package micro import ( diff --git a/micro/server_test.go b/micro/server_test.go index 58631366..42ddc907 100644 --- a/micro/server_test.go +++ b/micro/server_test.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package micro import ( diff --git a/rpc/client.go b/rpc/client.go index 8a1872fe..cef429ae 100644 --- a/rpc/client.go +++ b/rpc/client.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package rpc import ( diff --git a/rpc/client_test.go b/rpc/client_test.go index 2e236556..8b3892fd 100644 --- a/rpc/client_test.go +++ b/rpc/client_test.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package rpc import ( diff --git a/rpc/codec.go b/rpc/codec.go index 6bfc1f7d..05f54a7d 100644 --- a/rpc/codec.go +++ b/rpc/codec.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package rpc import ( diff --git a/rpc/codec.pb.go b/rpc/codec.pb.go index 645d0999..83652cb9 100644 --- a/rpc/codec.pb.go +++ b/rpc/codec.pb.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: codec.proto diff --git a/rpc/codec.pb_test.go b/rpc/codec.pb_test.go index 7852bbf6..4844dca4 100644 --- a/rpc/codec.pb_test.go +++ b/rpc/codec.pb_test.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package rpc import ( diff --git a/rpc/config.go b/rpc/config.go index a1448ad7..bda240e3 100644 --- a/rpc/config.go +++ b/rpc/config.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package rpc import ( diff --git a/rpc/config_test.go b/rpc/config_test.go index b0d30420..460652e4 100644 --- a/rpc/config_test.go +++ b/rpc/config_test.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package rpc import ( diff --git a/rpc/listener.go b/rpc/listener.go index d07b19c8..4724e95e 100644 --- a/rpc/listener.go +++ b/rpc/listener.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package rpc import ( diff --git a/rpc/pool.go b/rpc/pool.go index b3d8b1ff..1866e573 100644 --- a/rpc/pool.go +++ b/rpc/pool.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package rpc import ( diff --git a/rpc/pool_test.go b/rpc/pool_test.go index a534ca19..0721d1cc 100644 --- a/rpc/pool_test.go +++ b/rpc/pool_test.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package rpc import ( diff --git a/rpc/readwriter.go b/rpc/readwriter.go index 3d677250..2ae4dcbb 100644 --- a/rpc/readwriter.go +++ b/rpc/readwriter.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package rpc import ( diff --git a/rpc/rpc.go b/rpc/rpc.go index 07391c32..b308a40c 100644 --- a/rpc/rpc.go +++ b/rpc/rpc.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package rpc import ( diff --git a/rpc/rpc_test.go b/rpc/rpc_test.go index 6261cf1b..c68f3758 100644 --- a/rpc/rpc_test.go +++ b/rpc/rpc_test.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package rpc import ( diff --git a/rpc/rpcclientmap.go b/rpc/rpcclientmap.go index 38569850..5f048148 100644 --- a/rpc/rpcclientmap.go +++ b/rpc/rpcclientmap.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + // Code generated by syncmap; DO NOT EDIT. // Copyright 2016 The Go Authors. All rights reserved. diff --git a/rpc/rpcclientmap_test.go b/rpc/rpcclientmap_test.go index 801cc87d..027efb52 100644 --- a/rpc/rpcclientmap_test.go +++ b/rpc/rpcclientmap_test.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package rpc import ( diff --git a/rpc/server.go b/rpc/server.go index 16ce5ce8..67051127 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package rpc import ( diff --git a/rpc/server_test.go b/rpc/server_test.go index 979aec8d..95c974b1 100644 --- a/rpc/server_test.go +++ b/rpc/server_test.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package rpc import ( diff --git a/rpc/util.go b/rpc/util.go index 0963266f..bec6cd72 100644 --- a/rpc/util.go +++ b/rpc/util.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package rpc import ( diff --git a/transport/client.go b/transport/client.go index 3829ef1d..febfa689 100644 --- a/transport/client.go +++ b/transport/client.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : getty client -# MAINTAINER : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-09-01 21:32 -# FILE : client.go -******************************************************/ +/* + * 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. + */ package getty diff --git a/transport/client_test.go b/transport/client_test.go index f2407a8a..8e11a4a5 100644 --- a/transport/client_test.go +++ b/transport/client_test.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package getty import ( diff --git a/transport/connection.go b/transport/connection.go index 6e9222b0..c078c9b8 100644 --- a/transport/connection.go +++ b/transport/connection.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : tcp/websocket connection -# MAINTAINER : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-08-17 11:21 -# FILE : connection.go -******************************************************/ +/* + * 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. + */ package getty diff --git a/transport/const.go b/transport/const.go index 044465d5..fbec5b09 100644 --- a/transport/const.go +++ b/transport/const.go @@ -1,12 +1,19 @@ -/****************************************************** -# DESC : const properties -# AUTHOR : Alex Stocks -# VERSION : 1.0 -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2018-03-17 16:54 -# FILE : const.go -******************************************************/ +/* + * 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. + */ package getty diff --git a/transport/getty.go b/transport/getty.go index 63ce0d88..c455c38d 100644 --- a/transport/getty.go +++ b/transport/getty.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : getty interface -# MAINTAINER : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-08-17 11:20 -# FILE : getty.go -******************************************************/ +/* + * 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. + */ package getty diff --git a/transport/options.go b/transport/options.go index d0c12adf..dfbbaa67 100644 --- a/transport/options.go +++ b/transport/options.go @@ -1,12 +1,19 @@ -/****************************************************** -# DESC : getty client/server options -# AUTHOR : Alex Stocks -# VERSION : 1.0 -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2018-03-17 21:12 -# FILE : options.go -******************************************************/ +/* + * 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. + */ package getty diff --git a/transport/options_test.go b/transport/options_test.go index a5200728..1e27bede 100644 --- a/transport/options_test.go +++ b/transport/options_test.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package getty import ( diff --git a/transport/server.go b/transport/server.go index 81c36358..fee31c34 100644 --- a/transport/server.go +++ b/transport/server.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : getty server -# MAINTAINER : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-08-17 11:21 -# FILE : server.go -******************************************************/ +/* + * 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. + */ package getty diff --git a/transport/server_test.go b/transport/server_test.go index 5643380e..01a92709 100644 --- a/transport/server_test.go +++ b/transport/server_test.go @@ -1,3 +1,20 @@ +/* + * 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. + */ + package getty import ( diff --git a/transport/session.go b/transport/session.go index 7f5e19c8..e6290564 100644 --- a/transport/session.go +++ b/transport/session.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : session -# MAINTAINER : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-08-17 11:21 -# FILE : session.go -******************************************************/ +/* + * 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. + */ package getty @@ -800,17 +808,17 @@ func (s *session) handleTCPPackage() error { // get package from udp packet func (s *session) handleUDPPackage() error { var ( - ok bool - err error - netError net.Error - conn *gettyUDPConn - bufLen int + ok bool + err error + netError net.Error + conn *gettyUDPConn + bufLen int maxBufLen int - bufp *[]byte - buf []byte - addr *net.UDPAddr - pkgLen int - pkg interface{} + bufp *[]byte + buf []byte + addr *net.UDPAddr + pkgLen int + pkg interface{} ) conn = s.Connection.(*gettyUDPConn) diff --git a/transport/version.go b/transport/version.go index 606a56fd..0c52dd4b 100644 --- a/transport/version.go +++ b/transport/version.go @@ -1,11 +1,19 @@ -/****************************************************** -# DESC : getty version -# MAINTAINER : Alex Stocks -# LICENCE : Apache License 2.0 -# EMAIL : alexstocks@foxmail.com -# MOD : 2016-08-17 11:23 -# FILE : version.go -******************************************************/ +/* + * 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. + */ package getty