MCPcopy
hub / github.com/grafana/dskit / WithCodec

Method WithCodec

kv/consul/client.go:406–410  ·  view source on GitHub ↗

WithCodec Clones and changes the codec of the consul client.

(codec codec.Codec)

Source from the content-addressed store, hash-verified

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

Callers 1

createClientFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected