handler

package
v0.0.0-...-26b160e Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Every handler runs in a goroutine.

@Time : 2018/8/16 15:26 @Author : kenny zhu @File : init.go @Software: GoLand @Others:

@Time : 2018/9/27 10:59 @Author : kenny zhu @File : sample.go @Software: GoLand @Others:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(s server.Server)

all handlers init here...

Types

type Example

type Example struct{}

func (*Example) GetArticle

func (e *Example) GetArticle(ctx context.Context, req *example.PreferenceRequest, rsp *example.PreferenceResponse) error

Call is a single request handler called via client.Call or the generated client code Preferences.GetPreference

func (*Example) GetPreference

func (e *Example) GetPreference(ctx context.Context, req *go_micro_srv_dbservice.PreferenceRequest, rsp *go_micro_srv_dbservice.PreferenceResponse) error

Call is a single request handler called via client.Call or the generated client code Preferences.GetPreference

func (*Example) GetPreferencesList

func (e *Example) GetPreferencesList(ctx context.Context, req *go_micro_srv_dbservice.PreferencesListRequest, rsp *go_micro_srv_dbservice.PreferencesListResponse) error

get all list.

type Sample

type Sample struct{}

Jump to

Keyboard shortcuts

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