【文件属性】:
文件名称:et-microservice:ET 微服务
文件大小:26KB
文件格式:ZIP
更新时间:2021-06-03 12:03:49
Go
新兴技术微服务 API
最伟大的 ET 微服务
出于某种原因,用 Go 编写。
使用 OpenWeatherMap API 以及 Google 的 Places API
使用 BoltDB 进行轻量级键/值存储
使用服务
只需运行go run ,或者go build然后./et-microservice或et-microservice.exe ./et-microservice ,该服务可以通过http://localhost:8080
端点
Route Action
------- --------
/ Returns "Welcome!" (text/html)
/food
【文件预览】:
et-microservice-master
----main.go(200B)
----db()
--------db.go(728B)
----logger()
--------logger.go(454B)
----handlers.go(3KB)
----img()
--------go.png(17KB)
----food()
--------food.go(1KB)
----weather()
--------weather.go(886B)
--------weather_test.go(526B)
----routes.go(467B)
----config()
--------places-test.json(96B)
----README.md(2KB)
----.gitignore(320B)
----rest()
--------rest.go(638B)
----router.go(519B)