// MakeThriftConcatEndpoint returns an endpoint that invokes the passed Thrift // client. Useful only in clients, and only until a proper // transport/thrift.Client exists. func MakeThriftConcatEndpoint(client *thriftadd.AddServiceClient) endpoint.Endpoint { return func(ctx context.Context, request interface{}) (interface{}, error) { req := request.(concatRequest) reply, err := client.Concat(req.A, req.B) return concatResponse{V: reply.Value, Err: err}, nil } }