Documentation ¶
Index ¶
- func InstrumentingMiddleware(duration metrics.Histogram) endpoint.Middleware
- func LoggingMiddleware(logger log.Logger) endpoint.Middleware
- func MakeSayGoodbyEndpoint(svc service.Service) endpoint.Endpoint
- func MakeSayHelloEndpoint(svc service.Service) endpoint.Endpoint
- type SayGoodbyRequest
- type SayGoodbyResponse
- type SayHelloRequest
- type SayHelloResponse
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstrumentingMiddleware ¶
func InstrumentingMiddleware(duration metrics.Histogram) endpoint.Middleware
InstrumentingMiddleware 度量中间件定义方法,记录服务端点方法的执行耗时
func LoggingMiddleware ¶
func LoggingMiddleware(logger log.Logger) endpoint.Middleware
LoggingMiddleware 日志中间件定义方法,记录服务端点方法的错误及执行耗时
func MakeSayGoodbyEndpoint ¶
MakeSayGoodbyEndpoint 创建服务端点方法
Types ¶
type SayGoodbyRequest ¶
SayGoodbyRequest 服务端点请求对象定义
type SayGoodbyResponse ¶
SayGoodbyResponse 服务端点响应对象定义
func (SayGoodbyResponse) Failed ¶
func (r SayGoodbyResponse) Failed() error
Failed 服务端点的相应对象需要继承 endpoint.Failer 接口
type SayHelloRequest ¶
SayHelloRequest 服务端点请求对象定义
type SayHelloResponse ¶
SayHelloResponse 服务端点响应对象定义
func (SayHelloResponse) Failed ¶
func (r SayHelloResponse) Failed() error
Failed 服务端点的相应对象需要继承 endpoint.Failer 接口
Click to show internal directories.
Click to hide internal directories.