-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(middleware): roadrunner support & performance update (#11)
* feat(middlewares): implement roadrunner * update golangci-lint * update tests * feat: improve performances and refacto with rr support * feat: finish roadrunner * fix: github actions tests setup * fix: run detached caddy on the 8080 HTTP port * fix: middleware caddy unit tests * feat: documentation update to include roadrunner * temporary downgrade to be able to build * feat: bump version
- Loading branch information
Showing
45 changed files
with
2,890 additions
and
1,678 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,25 @@ | ||
run: | ||
timeout: 30s | ||
issues-exit-code: 1 | ||
|
||
linters: | ||
enable-all: true | ||
disable: | ||
- bodyclose | ||
- cyclop | ||
- exhaustivestruct | ||
- exhaustruct | ||
- forbidigo | ||
- gochecknoglobals | ||
- gci | ||
- golint | ||
- gomnd | ||
- ifshort | ||
- ireturn | ||
- nestif | ||
- nonamedreturns | ||
- nosnakecase | ||
- revive | ||
- testpackage | ||
- stylecheck | ||
- varnamelen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,30 @@ | ||
.PHONY: lint run-caddy run-server run-traefik | ||
.PHONY: bump-version lint run-caddy run-roadrunner run-server run-traefik vendor | ||
MIDDLEWARES_LIST=caddy roadrunner server traefik | ||
|
||
bump-version: | ||
test $(from) | ||
test $(to) | ||
sed -i '' 's/version: $(from)/version: $(to)/' README.md | ||
for middleware in $(MIDDLEWARES_LIST) ; do \ | ||
sed -i '' 's/github.com\/darkweak\/go-esi $(from)/github.com\/darkweak\/go-esi $(to)/' middleware/$$middleware/go.mod ; \ | ||
done | ||
|
||
lint: ## Run golangci-lint to ensure the code quality | ||
docker run --rm -v $(PWD):/app -w /app golangci/golangci-lint golangci-lint run | ||
|
||
run-caddy: ## Build and run caddy binary | ||
cd middleware/caddy && $(MAKE) build && $(MAKE) run | ||
|
||
run-roadrunner: ## Build and run roadrunner | ||
cd middleware/roadrunner && $(MAKE) build && $(MAKE) run | ||
|
||
run-server: ## Run server main.go | ||
go run middleware/server/main.go | ||
|
||
run-traefik: ## Run server main.go | ||
run-traefik: ## Build and run træfik | ||
cd middleware/traefik && $(MAKE) build && $(MAKE) run | ||
|
||
vendor: ## Generate and prepare vendors for each plugin | ||
go mod tidy && go mod download | ||
for middleware in $(MIDDLEWARES_LIST) ; do \ | ||
cd middleware/$$middleware && ($(MAKE) build || true) && cd -; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.