WithUserAgent returns a DialOption that specifies a user agent string for all the RPCs.
(s string)
| 563 | // WithUserAgent returns a DialOption that specifies a user agent string for all |
| 564 | // the RPCs. |
| 565 | func WithUserAgent(s string) DialOption { |
| 566 | return newFuncDialOption(func(o *dialOptions) { |
| 567 | o.copts.UserAgent = s + " " + grpcUA |
| 568 | }) |
| 569 | } |
| 570 | |
| 571 | // WithKeepaliveParams returns a DialOption that specifies keepalive parameters |
| 572 | // for the client transport. |