WithCodec Clones and changes the codec of the consul client.
(codec codec.Codec)
| 404 | |
| 405 | // WithCodec Clones and changes the codec of the consul client. |
| 406 | func (c *Client) WithCodec(codec codec.Codec) *Client { |
| 407 | n := *c |
| 408 | n.codec = codec |
| 409 | return &n |
| 410 | } |