Skip to content

Commit f72f9c8

Browse files
committed
添加 micro v2
1 parent 1d5f8f3 commit f72f9c8

File tree

3 files changed

+273
-0
lines changed

3 files changed

+273
-0
lines changed

micro_v2/server/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func (a *Agent) RpcUserInfo(ctx context.Context, in *test_agent.ReqMsg, out *tes
2626
func main() {
2727
micReg := etcd.NewRegistry(registry.Addrs("127.0.0.1:2379"))
2828
service := micro.NewService(
29+
micro.Address("192.168.1.100:8080"),
2930
micro.Name("srv.test"),
3031
micro.Registry(micReg),
3132
micro.RegisterTTL(time.Second*30),

micro_v2/test.pb.go

Lines changed: 179 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

micro_v2/test.pb.micro.go

Lines changed: 93 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)