# Functions
DecodeGRPCConcatRequest is a transport/grpc.DecodeRequestFunc that converts a gRPC concat request to a user-domain concat request.
DecodeGRPCConcatResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC concat reply to a user-domain concat response.
DecodeGRPCSumRequest is a transport/grpc.DecodeRequestFunc that converts a gRPC sum request to a user-domain sum request.
DecodeGRPCSumResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC sum reply to a user-domain sum response.
DecodeHTTPConcatRequest is a transport/http.DecodeRequestFunc that decodes a JSON-encoded concat request from the HTTP request body.
DecodeHTTPConcatResponse is a transport/http.DecodeResponseFunc that decodes a JSON-encoded concat response from the HTTP response body.
DecodeHTTPSumRequest is a transport/http.DecodeRequestFunc that decodes a JSON-encoded sum request from the HTTP request body.
DecodeHTTPSumResponse is a transport/http.DecodeResponseFunc that decodes a JSON-encoded sum response from the HTTP response body.
EncodeGRPCConcatRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain concat request to a gRPC concat request.
EncodeGRPCConcatResponse is a transport/grpc.EncodeResponseFunc that converts a user-domain concat response to a gRPC concat reply.
EncodeGRPCSumRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain sum request to a gRPC sum request.
EncodeGRPCSumResponse is a transport/grpc.EncodeResponseFunc that converts a user-domain sum response to a gRPC sum reply.
EncodeHTTPGenericRequest is a transport/http.EncodeRequestFunc that JSON-encodes any request to the request body.
EncodeHTTPGenericResponse is a transport/http.EncodeResponseFunc that encodes the response as JSON to the response writer.
EndpointInstrumentingMiddleware returns an endpoint middleware that records the duration of each invocation to the passed histogram.
EndpointLoggingMiddleware returns an endpoint middleware that logs the duration of each invocation, and the resulting error, if any.
MakeConcatEndpoint returns an endpoint that invokes Concat on the service.
MakeGRPCServer makes a set of endpoints available as a gRPC AddServer.
MakeHTTPHandler returns a handler that makes a set of endpoints available on predefined paths.
MakeSumEndpoint returns an endpoint that invokes Sum on the service.
MakeThriftConcatEndpoint returns an endpoint that invokes the passed Thrift client.
MakeThriftHandler makes a set of endpoints available as a Thrift service.
MakeThriftSumEndpoint returns an endpoint that invokes the passed Thrift client.
NewBasicService returns a naïve, stateless implementation of Service.
ServiceInstrumentingMiddleware returns a service middleware that instruments the number of integers summed and characters concatenated over the lifetime of the service.
ServiceLoggingMiddleware returns a service middleware that logs the parameters and result of each method invocation.
# Variables
ErrIntOverflow protects the Add method.
ErrMaxSizeExceeded protects the Concat method.
ErrTwoZeroes is an arbitrary business rule for the Add method.
# Interfaces
Service describes a service that adds things together.
# Type aliases
Middleware describes a service (as opposed to endpoint) middleware.