Skip to content

prithuadhikary/api-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Go API Gateway Using httputil.ReverseProxy

.
├── config
│   └── default.yml -- Gateway Configuration
├── go.mod 
├── go.sum
├── main.go
└── README.md <-- You are here.

Sample Gateway Configuration.

gateway:
  listenAddr: localhost:8080                # Server listens on this.
  routes:
    - name: Service A
      context: /service-a                   # The context root to match.
      target: http://localhost:8082         # The target url to forward the request to.
    - name: Service B
      context: /service-b                   # So on and so forth.
      target: http://localhost:8081

About

An example Go API gateway using A Reverse Proxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages