simple http api service
func main() {
s := service.New(
service.HttpAddress("0.0.0.0:9999"),
)
phello.RegisterHelloWorldServer(s.Server(), &hello.Hello{})
err := s.Run()
if err != nil {
rlog.Error(err)
}
}
curl -H "Content-Type:application/json" -X POST -d '{"ping": "ping"}' http://127.0.0.1:9999/roc/HelloWorld/Say