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

Method All

wrapper/records.go:32–39  ·  view source on GitHub ↗

All returns a wrapped list of records in the current storage.

()

Source from the content-addressed store, hash-verified

30
31// All returns a wrapped list of records in the current storage.
32func (w Records) All() []*Record {
33 wrapped := make([]*Record, 0)
34 w.records.ForEach(func(m proto.Message) error {
35 wrapped = append(wrapped, WrapRecord(m.(*pb.Record)))
36 return nil
37 })
38 return wrapped
39}
40
41// AllBut returns a wrapped list of records in the current storage
42// but the one specified.

Callers 2

TestWrappedRecordsAllFunction · 0.80

Calls 2

WrapRecordFunction · 0.85
ForEachMethod · 0.80

Tested by 2

TestWrappedRecordsAllFunction · 0.64