Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions transport/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ func ClientAfter(after ...ClientResponseFunc) ClientOption {
return func(c *Client) { c.after = append(c.after, after...) }
}

// ClientNoPrefix reverts the auto-prefixing of "pb" to serviceName.
func ClientNoPrefix() ClientOption {
return func(c *Client) { c.method = strings.Replace(c.method, "/pb.", "/", 1) }
}

// Endpoint returns a usable endpoint that will invoke the gRPC specified by the
// client.
func (c Client) Endpoint() endpoint.Endpoint {
Expand Down