MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / ScanProto

Method ScanProto

pkg/redis/redis.go:232–238  ·  view source on GitHub ↗

ScanProto scans command result into proto.Message pb.

(pb proto.Message)

Source from the content-addressed store, hash-verified

230
231// ScanProto scans command result into proto.Message pb.
232func (cmd ProtoCmd) ScanProto(pb proto.Message) error {
233 s, err := cmd.result()
234 if err != nil {
235 return ConvertError(err)
236 }
237 return UnmarshalProto(s, pb)
238}
239
240// GetProto unmarshals protocol buffer message stored under key k in r into pb.
241// Note, that GetProto passes k verbatim to the underlying store and hence, k must represent the full key(including namespace etc.).

Callers 15

MatchMethod · 0.95
GetByIDMethod · 0.80
GetByEUIMethod · 0.80
setMethod · 0.80
RangeByIDMethod · 0.80
GetByIDMethod · 0.80
SetByIDMethod · 0.80
GetByIDMethod · 0.80
SetByIDMethod · 0.80
RangeMethod · 0.80
SetMethod · 0.80
GetMethod · 0.80

Calls 2

ConvertErrorFunction · 0.85
UnmarshalProtoFunction · 0.85

Tested by

no test coverage detected