From 932c9cc1a096b5640c16467d32aa434f25600430 Mon Sep 17 00:00:00 2001 From: Lonng Date: Sat, 15 Jun 2019 13:56:49 +0800 Subject: [PATCH] *: change the license header Signed-off-by: Lonng --- app.go | 2 +- benchmark/io/connector.go | 2 +- cluster/agent.go | 2 +- cluster/cluster.go | 2 +- cluster/connpool.go | 2 +- cluster/const.go | 2 +- cluster/errors.go | 2 +- cluster/handler.go | 2 +- cluster/member.go | 2 +- cluster/node.go | 2 +- cluster/ws.go | 2 +- component/base.go | 2 +- component/component.go | 2 +- component/hub.go | 2 +- component/method.go | 2 +- component/options.go | 2 +- component/service.go | 2 +- config.go | 2 +- errors.go | 2 +- group.go | 2 +- interface.go | 2 +- internal/codec/codec.go | 2 +- internal/env/env.go | 2 +- internal/message/message.go | 2 +- internal/message/util.go | 2 +- internal/packet/packet.go | 2 +- mock/network_entity.go | 2 +- mock/network_entity_test.go | 2 +- scheduler/scheduler.go | 2 +- scheduler/timer.go | 2 +- scheduler/timer_test.go | 2 +- serialize/json/json.go | 2 +- serialize/protobuf/protobuf.go | 2 +- serialize/serializer.go | 2 +- service/connection.go | 2 +- session/session.go | 2 +- tests/integration_test.sh | 23 +++++++++++++++++++++++ 37 files changed, 59 insertions(+), 36 deletions(-) create mode 100644 tests/integration_test.sh diff --git a/app.go b/app.go index d757278e..894af378 100644 --- a/app.go +++ b/app.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/benchmark/io/connector.go b/benchmark/io/connector.go index a0a01627..0afe3b0f 100644 --- a/benchmark/io/connector.go +++ b/benchmark/io/connector.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/cluster/agent.go b/cluster/agent.go index fd446696..e8ac9dc0 100644 --- a/cluster/agent.go +++ b/cluster/agent.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/cluster/cluster.go b/cluster/cluster.go index 6f60f149..eaff27d6 100644 --- a/cluster/cluster.go +++ b/cluster/cluster.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/cluster/connpool.go b/cluster/connpool.go index dbd762dc..8a175f25 100644 --- a/cluster/connpool.go +++ b/cluster/connpool.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/cluster/const.go b/cluster/const.go index 3b265c0d..0908fe05 100644 --- a/cluster/const.go +++ b/cluster/const.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/cluster/errors.go b/cluster/errors.go index b20b39aa..02f4d1df 100644 --- a/cluster/errors.go +++ b/cluster/errors.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/cluster/handler.go b/cluster/handler.go index 3b12a467..2628221e 100644 --- a/cluster/handler.go +++ b/cluster/handler.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/cluster/member.go b/cluster/member.go index 5eda67eb..0064c55e 100644 --- a/cluster/member.go +++ b/cluster/member.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/cluster/node.go b/cluster/node.go index e114361a..640fb0f5 100644 --- a/cluster/node.go +++ b/cluster/node.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/cluster/ws.go b/cluster/ws.go index 4cba87ff..2a3164f9 100644 --- a/cluster/ws.go +++ b/cluster/ws.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/component/base.go b/component/base.go index fa2d1cb4..06e7b789 100644 --- a/component/base.go +++ b/component/base.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/component/component.go b/component/component.go index ba59ccc8..0455994c 100644 --- a/component/component.go +++ b/component/component.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/component/hub.go b/component/hub.go index bec879d2..aaadcd8c 100644 --- a/component/hub.go +++ b/component/hub.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/component/method.go b/component/method.go index e05edaa5..60cc2d99 100644 --- a/component/method.go +++ b/component/method.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/component/options.go b/component/options.go index a9c83528..af7a74f7 100644 --- a/component/options.go +++ b/component/options.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/component/service.go b/component/service.go index 71f8151e..b27d723e 100644 --- a/component/service.go +++ b/component/service.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/config.go b/config.go index b0b3f7bf..bc88d9ad 100644 --- a/config.go +++ b/config.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/errors.go b/errors.go index 826c003e..e726815b 100644 --- a/errors.go +++ b/errors.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/group.go b/group.go index 0377a3a1..a1c2d74f 100644 --- a/group.go +++ b/group.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/interface.go b/interface.go index bcc86d3d..83dd46bb 100644 --- a/interface.go +++ b/interface.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/internal/codec/codec.go b/internal/codec/codec.go index ede177b0..c584d0ef 100644 --- a/internal/codec/codec.go +++ b/internal/codec/codec.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/internal/env/env.go b/internal/env/env.go index 43b231ac..4722904e 100644 --- a/internal/env/env.go +++ b/internal/env/env.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/internal/message/message.go b/internal/message/message.go index c40e9044..e45178e2 100644 --- a/internal/message/message.go +++ b/internal/message/message.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/internal/message/util.go b/internal/message/util.go index c7a59b21..345c5666 100644 --- a/internal/message/util.go +++ b/internal/message/util.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/internal/packet/packet.go b/internal/packet/packet.go index 5df24282..89c5d77e 100644 --- a/internal/packet/packet.go +++ b/internal/packet/packet.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/mock/network_entity.go b/mock/network_entity.go index 23e2d3de..6d12e2ca 100644 --- a/mock/network_entity.go +++ b/mock/network_entity.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/mock/network_entity_test.go b/mock/network_entity_test.go index 7c480f95..35638896 100644 --- a/mock/network_entity_test.go +++ b/mock/network_entity_test.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/scheduler/scheduler.go b/scheduler/scheduler.go index 04555765..a3b32b43 100644 --- a/scheduler/scheduler.go +++ b/scheduler/scheduler.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/scheduler/timer.go b/scheduler/timer.go index 194358bd..29d35df7 100644 --- a/scheduler/timer.go +++ b/scheduler/timer.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/scheduler/timer_test.go b/scheduler/timer_test.go index 537cb65d..a5f464a7 100644 --- a/scheduler/timer_test.go +++ b/scheduler/timer_test.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/serialize/json/json.go b/serialize/json/json.go index ecdd6f6b..a55dce66 100644 --- a/serialize/json/json.go +++ b/serialize/json/json.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/serialize/protobuf/protobuf.go b/serialize/protobuf/protobuf.go index 667c4f20..44db4225 100644 --- a/serialize/protobuf/protobuf.go +++ b/serialize/protobuf/protobuf.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/serialize/serializer.go b/serialize/serializer.go index 1e7cbb46..38005263 100644 --- a/serialize/serializer.go +++ b/serialize/serializer.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/service/connection.go b/service/connection.go index a7b9f7d5..38eb4f0a 100644 --- a/service/connection.go +++ b/service/connection.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/session/session.go b/session/session.go index 516f1adf..58810dbb 100644 --- a/session/session.go +++ b/session/session.go @@ -1,4 +1,4 @@ -// Copyright (c) nano Author. All Rights Reserved. +// Copyright (c) nano Authors. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/tests/integration_test.sh b/tests/integration_test.sh new file mode 100644 index 00000000..01aa57cd --- /dev/null +++ b/tests/integration_test.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +# Copyright (c) nano Authors. All Rights Reserved. +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + +# integration test