摘要:
编写json文件 { "service":{ "id": "hello", "name": "hello", "address": "127.0.0.1", "port": 8080, "tags": ["uth","report"], "checks":[ { "tcp": "127.0.0.1: 阅读全文
摘要:
建立proto syntax = "proto3"; option go_package = ".;say"; package say; service SayService{ rpc SayHello(sayRequest)returns(sayResponse){} } message sayR 阅读全文
摘要:
暂时忽略rpc的安装问题 构建rpc-server package main import ( "fmt" "net" "net/http" "net/rpc" ) type User struct { } func (u *User) GetUser(name string, out_data * 阅读全文