MCPcopy Create free account
hub / github.com/blobcache/blobcache / Resolve

Method Resolve

src/bccore/handles.go:65–74  ·  view source on GitHub ↗
(h blobcache.Handle)

Source from the content-addressed store, hash-verified

63}
64
65func (hs *handleSystem) Resolve(h blobcache.Handle) (blobcache.OID, blobcache.ActionSet) {
66 k := handleKey(h)
67 hs.mu.RLock()
68 defer hs.mu.RUnlock()
69 handle, exists := hs.handles[k]
70 if !exists {
71 return blobcache.OID{}, 0
72 }
73 return handle.target, handle.rights
74}
75
76func (hs *handleSystem) KeepAlive(h blobcache.Handle, expiresAt time.Time) {
77 k := handleKey(h)

Callers 6

ns.goFile · 0.45
resolveVolMethod · 0.45
resolveTxMethod · 0.45
resolveQueueMethod · 0.45
ShareMethod · 0.45
KeepAliveMethod · 0.45

Calls 1

handleKeyFunction · 0.85

Tested by

no test coverage detected