modulepackage
1.1.1
Repository: https://github.com/jason-cky/url-resolver.git
Documentation: pkg.go.dev
# README
url-resolver
Resolves an url using a routing rules in routing.json
. Routing complex load-balancing rules or routing an endpoint to both http
and https
endpoints is a non-trivial task using something like nginx
. Sometimes you just want to resolve the actual connection url based on simple weighted load-balancing rules without generating ssl certificates if the upstream has both http
and https
endpoint.
This is a simple golang api that resolves the url based on routing rules in a json config rule file.
Development
go install github.com/cosmtrek/air@latest
air
Implementation
Using environment variables
CONFIG_FPATH=./routing.json go run main.go
Using command line arguments
go run main.go --fpath ./routing.json
Deployment
Docker
docker-compose up
Kubernetes
kubectl apply -f k8s.yaml
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author