Skip to content

Commit

Permalink
modify filter package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick0308 committed Jan 4, 2020
1 parent 527f21e commit 4854646
Show file tree
Hide file tree
Showing 29 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion filter/impl/access_log_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package filter_impl

import (
"os"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/access_log_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package filter_impl

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/active_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package filter_impl

import (
"github.com/apache/dubbo-go/common/extension"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/echo_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package filter_impl

import (
"github.com/apache/dubbo-go/common/constant"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/echo_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package filter_impl

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/execute_limit_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package filter_impl

import (
"strconv"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/execute_limit_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package filter_impl

import (
"net/url"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/generic_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package filter_impl

import (
"reflect"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/generic_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package filter_impl

import (
"reflect"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/generic_service_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package filter_impl

import (
"reflect"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/generic_service_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package filter_impl

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/graceful_shutdown_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package filter_impl

import (
"sync/atomic"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/graceful_shutdown_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package filter_impl

import (
"net/url"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/hystrix_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package impl
package filter_impl

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/hystrix_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package impl
package filter_impl

import (
"regexp"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/token_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package impl
package filter_impl

import (
"strings"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/token_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package impl
package filter_impl

import (
"net/url"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/tps/impl/tps_limit_fix_window_strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package tps_impl

import (
"sync/atomic"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/tps/impl/tps_limit_fix_window_strategy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package tps_impl

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/tps/impl/tps_limit_sliding_window_strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package tps_impl

import (
"container/list"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package tps_impl

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/tps/impl/tps_limit_strategy_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package tps_impl

import (
"sync"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package tps_impl

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/tps/impl/tps_limiter_method_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package impl
package tps_impl

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/tps/impl/tps_limiter_method_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package tps_impl

import (
"net/url"
Expand Down
2 changes: 1 addition & 1 deletion filter/impl/tps/impl/tps_limiter_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion filter/impl/tps_limit_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package filter_impl

import (
"github.com/apache/dubbo-go/common/constant"
Expand Down
6 changes: 3 additions & 3 deletions filter/impl/tps_limit_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package impl
package filter_impl

import (
"net/url"
Expand Down Expand Up @@ -56,7 +56,7 @@ func TestTpsLimitFilter_Invoke_With_No_TpsLimiter(t *testing.T) {
func TestGenericFilter_Invoke_With_Default_TpsLimiter(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()
mockLimiter := impl.NewMockTpsLimiter(ctrl)
mockLimiter := tps_impl.NewMockTpsLimiter(ctrl)
mockLimiter.EXPECT().IsAllowable(gomock.Any(), gomock.Any()).Return(true).Times(1)
extension.SetTpsLimiter(constant.DEFAULT_KEY, func() tps.TpsLimiter {
return mockLimiter
Expand All @@ -77,7 +77,7 @@ func TestGenericFilter_Invoke_With_Default_TpsLimiter(t *testing.T) {
func TestGenericFilter_Invoke_With_Default_TpsLimiter_Not_Allow(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()
mockLimiter := impl.NewMockTpsLimiter(ctrl)
mockLimiter := tps_impl.NewMockTpsLimiter(ctrl)
mockLimiter.EXPECT().IsAllowable(gomock.Any(), gomock.Any()).Return(false).Times(1)
extension.SetTpsLimiter(constant.DEFAULT_KEY, func() tps.TpsLimiter {
return mockLimiter
Expand Down

0 comments on commit 4854646

Please sign in to comment.