Golang

go-micro 增加插件(etcd等插件)

2018-12-29  本文已影响0人  Alex_Paul

增加etcdv3
在$GOPATH/src/github.com/micro/micro 下新建plugins.go

package main

import (
    _ "github.com/micro/go-plugins/registry/etcdv3"
)
  $ go build -i -o micro ./main.go ./plugins.go
  $ mv micro $GOBIN/
  $ micro --registry=etcdv3 list services
  lp.srv.eg1
  lp.srv.eg2 
  # 报错trace包重复, 将报错路径下的trace包删除
上一篇下一篇

猜你喜欢

热点阅读