WithAuthority returns a DialOption that specifies the value to be used as the :authority pseudo-header and as the server name in authentication handshake. This overrides all other ways of setting authority on the channel, but can be overridden per-call by using grpc.CallAuthority.
(a string)
| 625 | // This overrides all other ways of setting authority on the channel, but can be |
| 626 | // overridden per-call by using grpc.CallAuthority. |
| 627 | func WithAuthority(a string) DialOption { |
| 628 | return newFuncDialOption(func(o *dialOptions) { |
| 629 | o.authority = a |
| 630 | }) |
| 631 | } |
| 632 | |
| 633 | // WithChannelzParentID returns a DialOption that specifies the channelz ID of |
| 634 | // current ClientConn's parent. This function is used in nested channel creation |