directory
Version:
v1.0.8
Opens a new window with list of versions in this module.
Published: Jul 29, 2021
License: Apache-2.0
Opens a new window with license information.
README
¶
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
Click to show internal directories.
Click to hide internal directories.