WithDefaultCallOptions returns a DialOption which sets the default CallOptions for calls over the connection.
(cos ...CallOption)
| 272 | // WithDefaultCallOptions returns a DialOption which sets the default |
| 273 | // CallOptions for calls over the connection. |
| 274 | func WithDefaultCallOptions(cos ...CallOption) DialOption { |
| 275 | return newFuncDialOption(func(o *dialOptions) { |
| 276 | o.callOptions = append(o.callOptions, cos...) |
| 277 | }) |
| 278 | } |
| 279 | |
| 280 | // WithCodec returns a DialOption which sets a codec for message marshaling and |
| 281 | // unmarshaling. |