Versions in this module Expand all Collapse all v0 v0.2.0 Jul 27, 2016 v0.1.0 Jun 7, 2016 Changes in this version + var ErrIntOverflow = errors.New("integer overflow") + var ErrMaxSizeExceeded = errors.New("result exceeds maximum size") + var ErrTwoZeroes = errors.New("can't sum two zeroes") + func DecodeGRPCConcatRequest(_ context.Context, grpcReq interface{}) (interface{}, error) + func DecodeGRPCConcatResponse(_ context.Context, grpcReply interface{}) (interface{}, error) + func DecodeGRPCSumRequest(_ context.Context, grpcReq interface{}) (interface{}, error) + func DecodeGRPCSumResponse(_ context.Context, grpcReply interface{}) (interface{}, error) + func DecodeHTTPConcatRequest(_ context.Context, r *http.Request) (interface{}, error) + func DecodeHTTPConcatResponse(_ context.Context, r *http.Response) (interface{}, error) + func DecodeHTTPSumRequest(_ context.Context, r *http.Request) (interface{}, error) + func DecodeHTTPSumResponse(_ context.Context, r *http.Response) (interface{}, error) + func EncodeGRPCConcatRequest(_ context.Context, request interface{}) (interface{}, error) + func EncodeGRPCConcatResponse(_ context.Context, response interface{}) (interface{}, error) + func EncodeGRPCSumRequest(_ context.Context, request interface{}) (interface{}, error) + func EncodeGRPCSumResponse(_ context.Context, response interface{}) (interface{}, error) + func EncodeHTTPGenericRequest(_ context.Context, r *http.Request, request interface{}) error + func EncodeHTTPGenericResponse(_ context.Context, w http.ResponseWriter, response interface{}) error + func EndpointInstrumentingMiddleware(duration metrics.TimeHistogram) endpoint.Middleware + func EndpointLoggingMiddleware(logger log.Logger) endpoint.Middleware + func MakeConcatEndpoint(s Service) endpoint.Endpoint + func MakeGRPCServer(ctx context.Context, endpoints Endpoints, tracer stdopentracing.Tracer, ...) pb.AddServer + func MakeHTTPHandler(ctx context.Context, endpoints Endpoints, tracer stdopentracing.Tracer, ...) http.Handler + func MakeSumEndpoint(s Service) endpoint.Endpoint + func MakeThriftConcatEndpoint(client *thriftadd.AddServiceClient) endpoint.Endpoint + func MakeThriftHandler(ctx context.Context, e Endpoints) thriftadd.AddService + func MakeThriftSumEndpoint(client *thriftadd.AddServiceClient) endpoint.Endpoint + type Endpoints struct + ConcatEndpoint endpoint.Endpoint + SumEndpoint endpoint.Endpoint + func (e Endpoints) Concat(ctx context.Context, a, b string) (string, error) + func (e Endpoints) Sum(ctx context.Context, a, b int) (int, error) + type Middleware func(Service) Service + func ServiceInstrumentingMiddleware(ints, chars metrics.Counter) Middleware + func ServiceLoggingMiddleware(logger log.Logger) Middleware + type Service interface + Concat func(ctx context.Context, a, b string) (string, error) + Sum func(ctx context.Context, a, b int) (int, error) + func NewBasicService() Service