Documentation ¶
Index ¶
- func InstrumentingMiddleware(duration metrics.Histogram) endpoint.Middleware
- func LoggingMiddleware(logger log.Logger) endpoint.Middleware
- func MakeAggregateEndpoint(s aggservice.Service) endpoint.Endpoint
- func MakeConcatEndpoint(s aggservice.Service) endpoint.Endpoint
- type AggregateRequest
- type AggregateResponse
- type CalculateRequest
- type CalculateResponse
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstrumentingMiddleware ¶
func InstrumentingMiddleware(duration metrics.Histogram) endpoint.Middleware
func LoggingMiddleware ¶
func LoggingMiddleware(logger log.Logger) endpoint.Middleware
LoggingMiddleware returns an endpoint middleware that logs the duration of each invocation, and the resulting error, if any.
func MakeAggregateEndpoint ¶
func MakeAggregateEndpoint(s aggservice.Service) endpoint.Endpoint
func MakeConcatEndpoint ¶
func MakeConcatEndpoint(s aggservice.Service) endpoint.Endpoint
MakeConcatEndpoint constructs a Concat endpoint wrapping the service.
Types ¶
type AggregateRequest ¶
type AggregateResponse ¶
type AggregateResponse struct {
Err error `json:"err"`
}
type CalculateRequest ¶
type CalculateRequest struct {
OBUID int `json:"obuID"`
}
type CalculateResponse ¶
Click to show internal directories.
Click to hide internal directories.