-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: make conn context-aware * feat: attempt to solve id allocation bug * decided to make the mailbox communication is split into two channels, as it is easier to manage * feat: expand makefile --------- Co-authored-by: Zino Kader <[email protected]>
- Loading branch information
Showing
18 changed files
with
288 additions
and
216 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
.PHONY: build run lint test test-e2e build-wasm | ||
.PHONY: serve lint test test-e2e build-wasm image | ||
|
||
LINKER_FLAGS = '-s -X main.version=${PORTAL_VERSION}' | ||
|
||
lint: | ||
golangci-lint run --timeout 5m ./... | ||
|
||
build: | ||
go build -o portal ./cmd/portal/ | ||
build: | ||
go build -o portal-bin ./cmd/portal/ | ||
|
||
build-production: | ||
CGO=0 go build -ldflags=${LINKER_FLAGS} -o portal ./cmd/portal/ | ||
|
||
image: | ||
docker build --tag rendezvous:latest . | ||
|
||
serve: image | ||
docker run -dp 8080:8080 rendezvous:latest | ||
|
||
build-wasm: | ||
GOOS=js GOARCH=wasm go build -o portal.wasm ./cmd/wasm/main.go | ||
|
||
run: build | ||
./portal -p 8080 | ||
|
||
test: | ||
go test -v -race -covermode=atomic -coverprofile=coverage.out -failfast -short ./... | ||
|
||
test-e2e: | ||
docker build --tag rendezvous:latest . | ||
test-e2e: image | ||
go test -v -race -covermode=atomic -coverprofile=coverage.out -failfast ./... |
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.