handler

package
v0.0.0-...-ad582c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2020 License: EPL-1.0 Imports: 4 Imported by: 0

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"}'

func (*Rpc1) Test

func (a *Rpc1) Test()

其他方法,无法被api调用

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL