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

Method Encode

kv/codec/codec.go:11–11  ·  view source on GitHub ↗
(interface{})

Source from the content-addressed store, hash-verified

9type Codec interface {
10 Decode([]byte) (interface{}, error)
11 Encode(interface{}) ([]byte, error)
12
13 // CodecID is a short identifier to communicate what codec should be used to decode the value.
14 // Once in use, this should be stable to avoid confusing other clients.

Callers 15

SetAsyncMethod · 0.65
SetMultiAsyncMethod · 0.65
SetMethod · 0.65
AddMethod · 0.65
TestSnappyCacheFunction · 0.65
writeJSONResponseFunction · 0.65
encodeMessageFunction · 0.65
CASMethod · 0.65
PutMethod · 0.65
casMethod · 0.65

Implementers 5

stringCodeckv/client_test.go
Protokv/codec/codec.go
Stringkv/codec/codec.go
dataCodeckv/memberlist/memberlist_client_test.g
distributedCounterCodeckv/memberlist/memberlist_client_test.g

Calls

no outgoing calls

Tested by 9

TestSnappyCacheFunction · 0.52
encodeMessageFunction · 0.52
EncodeMethod · 0.52
EncodeMethod · 0.52
keyValuePairFunction · 0.52
TestManagerGzipFunction · 0.52