摘要:
编写注册函数 package utils import ( consulapi "github.com/hashicorp/consul/api" "log" ) func RegService() { config := consulapi.DefaultConfig() config.Address = "192.168.3.14:8500" re... 阅读全文
posted @ 2019-12-22 17:41
离地最远的星
阅读(1811)
评论(0)
推荐(0)
摘要:
package main import ( httptransport "github.com/go-kit/kit/transport/http" mymux "github.com/gorilla/mux" "gomicro/Services" "net/http" ) func main() { user := Services.UserService{} ... 阅读全文
posted @ 2019-12-22 10:48
离地最远的星
阅读(1384)
评论(0)
推荐(0)

浙公网安备 33010602011771号