REST web service for psmb written in Golang.
I do continuous integration and build docker images after git push by self-hosted drone.io server for armhf platform , circleci server for x86 platform and dockerhub service.
CI Server | Target | Status |
---|---|---|
Travis | x86 | |
CircleCI | x86 | |
Drone | armhf |
Why environment variable? Refer to the 12 factors
- CONF_WEB: config file path
- EP_BACKEND: endpoint of remote service discovery server (optional)
- Separation of concerns - I separate config, route and worker functions to respective packages, link route and worker services by predefined function signature and go channel.
- API-First Design
- Microservice Design
- Object-oriented Design
- 12-Factor App Design
I implement three kinds of REST API testing.
MIT