MCPcopy Create free account
hub / github.com/devld/go-drive / PutEntries

Method PutEntries

drive/script/cache.go:15–19  ·  view source on GitHub ↗
(entries []scriptEntryStruct, ttl time.Duration)

Source from the content-addressed store, hash-verified

13}
14
15func (sc *scriptDriveCache) PutEntries(entries []scriptEntryStruct, ttl time.Duration) {
16 if e := sc.c.PutEntries(utils.ArrayMap(entries, structToEntry), ttl); e != nil {
17 s.ThrowDetachedError(e)
18 }
19}
20
21func (sc *scriptDriveCache) PutEntry(entry scriptEntryStruct, ttl time.Duration) {
22 if e := sc.c.PutEntry(structToEntry(&entry), ttl); e != nil {

Callers

nothing calls this directly

Calls 2

ArrayMapFunction · 0.92
PutEntriesMethod · 0.65

Tested by

no test coverage detected