diff --git a/cluster/router/condition/default_health_check.go b/cluster/router/condition/default_health_check.go index ef4e2e53b1d459b7e276563fec5d87810545d09b..70542feb49de3eae702632c788decc32066413de 100644 --- a/cluster/router/condition/default_health_check.go +++ b/cluster/router/condition/default_health_check.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 condition import ( diff --git a/cluster/router/condition/default_health_check_test.go b/cluster/router/condition/default_health_check_test.go index 0a7f24392191d48a31ea93bd088f47c918257833..730e787ce44d6830556cb17e4d227f8972226e7d 100644 --- a/cluster/router/condition/default_health_check_test.go +++ b/cluster/router/condition/default_health_check_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 condition import ( diff --git a/cluster/router/condition/health_check_route.go b/cluster/router/condition/health_check_route.go index b40d22ddb5f35e13679a215477372e6a070a46e0..e25baf3b5dd806ee91938b363127981556677f88 100644 --- a/cluster/router/condition/health_check_route.go +++ b/cluster/router/condition/health_check_route.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 condition import ( diff --git a/cluster/router/condition/health_check_route_test.go b/cluster/router/condition/health_check_route_test.go index d345f199496189b0f7e1ea8ab4409e0b277dd17f..e2fe0856f93c1bba319b694beeb198ef8e530555 100644 --- a/cluster/router/condition/health_check_route_test.go +++ b/cluster/router/condition/health_check_route_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 condition import ( @@ -5,9 +22,11 @@ import ( "testing" "time" ) + import ( "github.com/stretchr/testify/assert" ) + import ( "github.com/apache/dubbo-go/common" "github.com/apache/dubbo-go/protocol" diff --git a/cluster/router/health_checker.go b/cluster/router/health_checker.go index 44e1f7ace624f17fa6b7ec755b1d1a73eb312b2c..d9e3087a272dd500cdd1dc9dc6680d436891f88b 100644 --- a/cluster/router/health_checker.go +++ b/cluster/router/health_checker.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 router import ( diff --git a/common/extension/health_checker.go b/common/extension/health_checker.go index 62ad1d47ff982389052347cbab7aec3a8712893a..365c5d0910812efb00eb94408bb226115b037c02 100644 --- a/common/extension/health_checker.go +++ b/common/extension/health_checker.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 extension import ( diff --git a/common/extension/health_checker_test.go b/common/extension/health_checker_test.go index 71547ce5b86d873465b55224d900048eee8f9c4a..ec934e6e9cedc5acbef350f17b87b0b2e37bc844 100644 --- a/common/extension/health_checker_test.go +++ b/common/extension/health_checker_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 extension import (