Skip to content

Commit

Permalink
feat(plugins): vendorize Traefik & Tyk
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweak committed Mar 11, 2024
1 parent 7d2b41f commit afa055c
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion plugins/traefik/override/middleware/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func NewHTTPCacheHandler(c configurationtypes.AbstractConfigurationInterface) *S
}
fmt.Println("Storers initialized.")
regexpUrls := helpers.InitializeRegexp(c)
surrogateStorage := surrogate.InitializeSurrogate(c)
surrogateStorage := surrogate.InitializeSurrogate(c, storers[0].Name())
fmt.Println("Surrogate storage initialized.")
var excludedRegexp *regexp.Regexp = nil
if c.GetDefaultCache().GetRegex().Exclude != "" {
Expand Down
2 changes: 1 addition & 1 deletion plugins/traefik/override/surrogate/providers/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ type baseStorage struct {
duration time.Duration
}

func (s *baseStorage) init(config configurationtypes.AbstractConfigurationInterface) {
func (s *baseStorage) init(config configurationtypes.AbstractConfigurationInterface, _ string) {
storers, err := storage.NewStorages(config)
if err != nil {
panic(fmt.Sprintf("Impossible to instanciate the storer for the surrogate-keys: %v", err))
Expand Down

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

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

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

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

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

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

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

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

2 changes: 1 addition & 1 deletion plugins/tyk/override/middleware/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func NewHTTPCacheHandler(c configurationtypes.AbstractConfigurationInterface) *S
}
c.GetLogger().Debug("Storer initialized.")
regexpUrls := helpers.InitializeRegexp(c)
surrogateStorage := surrogate.InitializeSurrogate(c)
surrogateStorage := surrogate.InitializeSurrogate(c, storers[0].Name())
c.GetLogger().Debug("Surrogate storage initialized.")
var excludedRegexp *regexp.Regexp = nil
if c.GetDefaultCache().GetRegex().Exclude != "" {
Expand Down

0 comments on commit afa055c

Please sign in to comment.