MCPcopy Create free account
hub / github.com/evilsocket/sum / WrapRecords

Function WrapRecords

wrapper/records.go:18–22  ·  view source on GitHub ↗

WrapRecords creates a Records wrapper around a *storage.Records object.

(records *storage.Records)

Source from the content-addressed store, hash-verified

16
17// WrapRecords creates a Records wrapper around a *storage.Records object.
18func WrapRecords(records *storage.Records) Records {
19 return Records{
20 records: records,
21 }
22}
23
24// Find returns a wrapped Record given its identifier.
25// If not found, the resulting record will result as null

Calls

no outgoing calls