Categorygithub.com/planetfall/gateway
module
0.1.1
Repository: https://github.com/planetfall/gateway.git
Documentation: pkg.go.dev

# README

Go Reference Go Report Card codecov Tests Release

Gateway

Main entrypoint to GRPC microservices.

Run

Get the gateway service account as a key JSON file.

gcloud iam service-accounts keys create ./gateway-key.json \
    --iam-account=echo-slam-planetfall-gateway@echo-slam-planetfall.iam.gserviceaccount.com

Set the GOOGLE_APPLICATION_CREDENTIALS as the path to this JSON file.

export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key/json/gateway-key.json

Setup your configuration file (ex: config.dev.yaml)

Run

go run ./cmd/server/main.go --env development --config ./config/config.dev.yaml

Tests

Run the tests

go test ./...

Run the tests with coverage

go test -v -race -covermode=atomic -coverprofile=coverage.out ./...

Print the coverage in HTML

go tool cover -html=coverage.out

Lint

Report card

goreportcard-cli

Golang Lint

golangci-lint run

Release

go mod tidy
go test ./...
git commit -m "release"
git tag v0.1.0
git push origin v0.1.0
GOPROXY=proxy.golang.org go list -m github.com/planetfall/[email protected]

# Packages

No description provided by the author
No description provided by the author
No description provided by the author