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

Struct Proto

kv/codec/codec.go:19–22  ·  view source on GitHub ↗

Proto is a Codec for proto/snappy

Source from the content-addressed store, hash-verified

17
18// Proto is a Codec for proto/snappy
19type Proto struct {
20 id string
21 factory func() proto.Message
22}
23
24func NewProtoCodec(id string, factory func() proto.Message) Proto {
25 return Proto{id: id, factory: factory}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected