Codebase list golang-github-go-kit-kit / d67bb4c
Merge pull request #524 from terinjokes/terin/remove-grpc-client-prefixing fix(transport/grpc): remove autoprefixing logic Bas van Beek authored 6 years ago GitHub committed 6 years ago
2 changed file(s) with 2 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
3333 {
3434 sumEndpoint = grpctransport.NewClient(
3535 conn,
36 "Add",
36 "pb.Add",
3737 "Sum",
3838 addsvc.EncodeGRPCSumRequest,
3939 addsvc.DecodeGRPCSumResponse,
5252 {
5353 concatEndpoint = grpctransport.NewClient(
5454 conn,
55 "Add",
55 "pb.Add",
5656 "Concat",
5757 addsvc.EncodeGRPCConcatRequest,
5858 addsvc.DecodeGRPCConcatResponse,
33 "context"
44 "fmt"
55 "reflect"
6 "strings"
76
87 "google.golang.org/grpc"
98 "google.golang.org/grpc/metadata"
3635 grpcReply interface{},
3736 options ...ClientOption,
3837 ) *Client {
39 if strings.IndexByte(serviceName, '.') == -1 {
40 serviceName = "pb." + serviceName
41 }
4238 c := &Client{
4339 client: cc,
4440 method: fmt.Sprintf("/%s/%s", serviceName, method),