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 ¶
- func Init(s server.Server)
- type Example
- func (e *Example) GetArticle(ctx context.Context, req *example.PreferenceRequest, ...) error
- func (e *Example) GetPreference(ctx context.Context, req *go_micro_srv_dbservice.PreferenceRequest, ...) error
- func (e *Example) GetPreferencesList(ctx context.Context, req *go_micro_srv_dbservice.PreferencesListRequest, ...) error
- type Sample
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.