Skip to content

Commit

Permalink
Move interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
evg4b committed Feb 27, 2023
1 parent ac1d4ac commit 81d353a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/middlewares/proxy/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

type Middleware struct {
replacers contracts.URLReplacerFactory
replacers URLReplacerFactory
http contracts.HTTPClient
logger contracts.Logger
}
Expand Down
2 changes: 1 addition & 1 deletion internal/middlewares/proxy/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

type MiddlewareOption = func(*Middleware)

func WithURLReplacerFactory(replacerFactory contracts.URLReplacerFactory) MiddlewareOption {
func WithURLReplacerFactory(replacerFactory URLReplacerFactory) MiddlewareOption {
return func(m *Middleware) {
m.replacers = replacerFactory
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package contracts
package proxy

import (
"net/url"
Expand Down

0 comments on commit 81d353a

Please sign in to comment.