Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
30
func
NewProtoCodec(id string, factory
func
() proto.Message) Proto {
31
return
Proto{id: id, factory: factory}
32
}
33
34
func
(p Proto) CodecID() string {
35
return
p.id
Callers
7
GetCodec
Function · 0.92
newConfigsForTest
Function · 0.92
GetReplicaDescCodec
Function · 0.92
Test_EncodeMultikey_CheckInterface
Function · 0.85
Test_DecodeMultikey_CheckInterface
Function · 0.85
Test_EncodeMultikey
Function · 0.85
Test_DecodeMultikey
Function · 0.85
Calls
no outgoing calls
Tested by
5
newConfigsForTest
Function · 0.74
Test_EncodeMultikey_CheckInterface
Function · 0.68
Test_DecodeMultikey_CheckInterface
Function · 0.68
Test_EncodeMultikey
Function · 0.68
Test_DecodeMultikey
Function · 0.68