Documentation ¶
Index ¶
- func InstrumentingMiddleware(duration metrics.Histogram) endpoint.Middleware
- func LoggingMiddleware(logger log.Logger) endpoint.Middleware
- func MakeConcatEndpoint(s addservice.Service) endpoint.Endpoint
- func MakeSumEndpoint(s addservice.Service) endpoint.Endpoint
- type ConcatRequest
- type ConcatResponse
- type Set
- type SumRequest
- type SumResponse
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 MakeConcatEndpoint ¶
func MakeConcatEndpoint(s addservice.Service) endpoint.Endpoint
func MakeSumEndpoint ¶
func MakeSumEndpoint(s addservice.Service) endpoint.Endpoint
Types ¶
type ConcatRequest ¶
type ConcatRequest struct {
A, B string
}
type ConcatResponse ¶
func (ConcatResponse) Failed ¶
func (r ConcatResponse) Failed() error
type SumRequest ¶
type SumRequest struct {
A, B int
}
type SumResponse ¶
func (SumResponse) Failed ¶
func (r SumResponse) Failed() error
Click to show internal directories.
Click to hide internal directories.