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

Struct System

src/bccore/bccore.go:40–55  ·  view source on GitHub ↗

System manages objects and handles to those objects

Source from the content-addressed store, hash-verified

38
39// System manages objects and handles to those objects
40type System struct {
41 p Params
42 root volume
43
44 // mu guards the volumes, queues, and txns.
45 // pure handle operations like Drop, KeepAlive, Inspect, etc. do not require this lock.
46 // mu should always be taken for a superset of the time that the handle system's lock is taken.
47 mu sync.RWMutex
48 volumes map[blobcache.OID]volume
49 queues map[blobcache.OID]queue
50 txns map[blobcache.OID]transaction
51
52 handles handleSystem
53 setup singleflight.Group[blobcache.OID, AnyObject]
54 hub hub
55}
56
57type AnyObject interface {
58 Down(ctx context.Context) error

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected