【文件属性】:
文件名称:真实世界示例应用
文件大小:34KB
文件格式:ZIP
更新时间:2021-02-28 09:31:28
Go
现实世界服务
这是真实世界的服务
产生于
micro new --namespace=com.example --alias=realworld --type=service realworld-example-app
入门
配置
FQDN:com.example.service.realworld
类型:服务
别名:真实世界
依存关系
微服务取决于服务发现。 默认值为多点传送DNS(zeroconf系统)。
如果您需要弹性的多主机设置,我们建议使用etcd。
# install etcd
brew install etcd
# run etcd
etcd
用法
为了方便起见,包含了一个Makefile
构建二进制文件
make build
运行服务
./realworld-service
建立一个Docker映像
make docker
【文件预览】:
realworld-example-app-main
----subscriber()
--------realworld.go(437B)
----generate.go(38B)
----handler()
--------realworld.go(2KB)
----internal()
--------json()
----Dockerfile(89B)
----main.go(717B)
----.gitignore(19B)
----Makefile(413B)
----go.sum(56KB)
----README.md(777B)
----proto()
--------imports()
--------realworld()
----plugin.go(14B)
----go.mod(596B)