MCPcopy Index your code
hub / github.com/cortexproject/cortex / NewProtoCodec

Function NewProtoCodec

pkg/ring/kv/codec/codec.go:30–32  ·  view source on GitHub ↗
(id string, factory func() proto.Message)

Source from the content-addressed store, hash-verified

28}
29
30func NewProtoCodec(id string, factory func() proto.Message) Proto {
31 return Proto{id: id, factory: factory}
32}
33
34func (p Proto) CodecID() string {
35 return p.id

Callers 7

GetCodecFunction · 0.92
newConfigsForTestFunction · 0.92
GetReplicaDescCodecFunction · 0.92
Test_EncodeMultikeyFunction · 0.85
Test_DecodeMultikeyFunction · 0.85

Calls

no outgoing calls

Tested by 5

newConfigsForTestFunction · 0.74
Test_EncodeMultikeyFunction · 0.68
Test_DecodeMultikeyFunction · 0.68