Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rpc1 ¶
type Rpc1 struct {
}
func (*Rpc1) Say ¶
func (a *Rpc1) Say(ctx context.Context, in *srv1.HelloRequest, out *srv1.HelloResponse) error
Rpc1.Get 通过API向外暴露为/rpc1/get,接收http请求 即:/rpc1/get请求会调用 com.anycps.wolferhua.api.rpc1 服务的 Rpc1.Get方法 curl 'http://localhost:8080/rpc1/say' -X POST -H 'Content-Type: application/json' -d '{"name":"wolferhua"}'
Click to show internal directories.
Click to hide internal directories.