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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api1

type Api1 struct {
}

func (*Api1) Get

func (a *Api1) Get(ctx context.Context, in *proto1.Request, out *proto1.Response) error

Api1.Get 通过API向外暴露为/api1/get,接收http请求 即:/api1/get请求会调用com.anycps.wolferhua.api.api1服务的Api1.Get方法 curl 'http://localhost:8080/api1/get?name=wolferhua'

func (*Api1) Post

func (a *Api1) Post(ctx context.Context, in *proto1.Request, out *proto1.Response) error

func (*Api1) Test

func (a *Api1) Test()

其他方法,无法被api调用

Jump to

Keyboard shortcuts

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