handler

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandler

func RegisterHandler(server server.Server)

func ResponseBody

func ResponseBody(code int64, data interface{}, detail ...string) (string, error)

Types

type Account

type Account struct{}

func (*Account) Info

func (*Account) Info(ctx context.Context, req *api.Request, rsp *api.Response) error

Example.Call is called by the API as /example/call with post body {"name": "foo"}

func (*Account) Login

func (*Account) Login(ctx context.Context, req *pb.LoginRequest, rsp *pb.Response) error

Example.Call is called by the API as /example/call with post body {"name": "foo"}

func (*Account) Logout

func (*Account) Logout(ctx context.Context, req *api.Request, rsp *api.Response) error

Example.Call is called by the API as /example/call with post body {"name": "foo"}

Jump to

Keyboard shortcuts

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