protoc --version
go get -u github.com/golang/protobuf/protoc-gen-go
go get github.com/micro/protoc-gen-micro
protoc --proto_path=./ --micro_out=. --go_out=. test.proto
GO111MODULE=on go get github.com/micro/go-micro/v3@latest
GO111MODULE=on go get github.com/micro/micro/v3@latest
cd $GOPATH/src git clone https://github.com/micro/micro.git cd micro
package main import( _"github.com/micro/go-plugins/registry/consul/v2" )
go install
micro --version
consul agent # 启动代理服务 consul members # 查询代理服务列表 consul leave # 关闭代理服务
使用道具 举报
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
小黑屋|手机版|Unity开发者联盟 ( 粤ICP备20003399号 )
GMT+8, 2024-11-27 05:25 , Processed in 0.090908 second(s), 25 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.