Skip to content

Commit

Permalink
Move api/router/util to util/router (#1909)
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Aug 7, 2020
1 parent 8ee31b9 commit a6d7b1d
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion api/router/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (

"github.com/micro/go-micro/v3/api"
"github.com/micro/go-micro/v3/api/router"
"github.com/micro/go-micro/v3/api/router/util"
"github.com/micro/go-micro/v3/logger"
"github.com/micro/go-micro/v3/metadata"
"github.com/micro/go-micro/v3/registry"
"github.com/micro/go-micro/v3/registry/cache"
util "github.com/micro/go-micro/v3/util/router"
)

// endpoint struct, that holds compiled pcre
Expand Down
2 changes: 1 addition & 1 deletion api/router/static/static.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (

"github.com/micro/go-micro/v3/api"
"github.com/micro/go-micro/v3/api/router"
"github.com/micro/go-micro/v3/api/router/util"
"github.com/micro/go-micro/v3/logger"
"github.com/micro/go-micro/v3/metadata"
"github.com/micro/go-micro/v3/registry"
rutil "github.com/micro/go-micro/v3/util/registry"
util "github.com/micro/go-micro/v3/util/router"
)

type endpoint struct {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion api/router/util/compile.go → util/router/compile.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package util
package router

// download from https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/master/protoc-gen-grpc-gateway/httprule/compile.go

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package util
package router

// download from https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/master/protoc-gen-grpc-gateway/httprule/compile_test.go

Expand Down
2 changes: 1 addition & 1 deletion api/router/util/parse.go → util/router/parse.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package util
package router

// download from https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/master/protoc-gen-grpc-gateway/httprule/parse.go

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package util
package router

// download from https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/master/protoc-gen-grpc-gateway/httprule/parse_test.go

Expand Down
2 changes: 1 addition & 1 deletion api/router/util/pattern.go → util/router/pattern.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package util
package router

// download from https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/master/utilities/pattern.go

Expand Down
2 changes: 1 addition & 1 deletion api/router/util/runtime.go → util/router/runtime.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package util
package router

// download from https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/master/runtime/pattern.go

Expand Down
2 changes: 1 addition & 1 deletion api/router/util/types.go → util/router/types.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package util
package router

// download from https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/master/protoc-gen-grpc-gateway/httprule/types.go

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package util
package router

// download from https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/master/protoc-gen-grpc-gateway/httprule/types_test.go

Expand Down

0 comments on commit a6d7b1d

Please sign in to comment.