diff --git a/internal/middlewares/proxy/middleware.go b/internal/middlewares/proxy/middleware.go index c469145b..6c55ec52 100644 --- a/internal/middlewares/proxy/middleware.go +++ b/internal/middlewares/proxy/middleware.go @@ -12,7 +12,7 @@ import ( ) type Middleware struct { - replacers contracts.URLReplacerFactory + replacers URLReplacerFactory http contracts.HTTPClient logger contracts.Logger } diff --git a/internal/middlewares/proxy/options.go b/internal/middlewares/proxy/options.go index cc9ab83a..256cde51 100644 --- a/internal/middlewares/proxy/options.go +++ b/internal/middlewares/proxy/options.go @@ -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 } diff --git a/internal/contracts/replacer_factory.go b/internal/middlewares/proxy/replacer_factory.go similarity index 91% rename from internal/contracts/replacer_factory.go rename to internal/middlewares/proxy/replacer_factory.go index 061c26bf..bdd80410 100644 --- a/internal/contracts/replacer_factory.go +++ b/internal/middlewares/proxy/replacer_factory.go @@ -1,4 +1,4 @@ -package contracts +package proxy import ( "net/url"