v2

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Foo2Service

type Foo2Service struct {
	// contains filtered or unexported fields
}

Foo2Service struct

func NewFoo2Service

func NewFoo2Service(c *conf.Config) (s *Foo2Service)

NewFoo2Service init

func (*Foo2Service) Hello

func (s *Foo2Service) Hello(ctx context.Context, req *v2pb.Bar1Req) (resp *v2pb.Bar1Resp, err error)

Hello implementation

type FooService

type FooService struct {
	// contains filtered or unexported fields
}

FooService struct

func NewFooService

func NewFooService(c *conf.Config) (s *FooService)

NewFooService init

func (*FooService) GetDynamic

func (s *FooService) GetDynamic(ctx context.Context, req *v2pb.Bar1Req) (resp interface{}, err error)

GetDynamic implementation `dynamic_resp:"true"`

func (*FooService) GetInfo

func (s *FooService) GetInfo(ctx context.Context, req *v2pb.GetInfoReq) (resp *v2pb.GetInfoResp, err error)

GetInfo implementation 获取房间信息

func (*FooService) JsonReq

func (s *FooService) JsonReq(ctx context.Context, req *v2pb.JsonReq) (resp *v2pb.JsonResp, err error)

JsonReq implementation

func (*FooService) Nointerface

func (s *FooService) Nointerface(ctx context.Context, req *v2pb.Bar1Req) (resp *v2pb.Bar1Resp, err error)

Nointerface implementation `dynamic:"true"`

func (*FooService) UnameByUid

func (s *FooService) UnameByUid(ctx context.Context, req *v2pb.Bar1Req) (resp *v2pb.Bar1Resp, err error)

UnameByUid implementation 根据uid得到uname `method:"post" midware:"auth,verify"`

这是详细说明

func (*FooService) UnameByUid3

func (s *FooService) UnameByUid3(ctx context.Context, req *v2pb.Bar1Req) (resp *v2pb.Bar1Resp, err error)

UnameByUid3 implementation 根据uid得到uname v3

func (*FooService) UnameByUid4

func (s *FooService) UnameByUid4(ctx context.Context, req *v2pb.Bar1Req) (resp *v2pb.Bar1Resp, err error)

UnameByUid4 implementation test comment

Jump to

Keyboard shortcuts

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