MCPcopy Create free account
hub / github.com/couchbase/moss / SnapshotWrapper

Struct SnapshotWrapper

wrap.go:17–22  ·  view source on GitHub ↗

SnapshotWrapper implements the moss.Snapshot interface.

Source from the content-addressed store, hash-verified

15
16// SnapshotWrapper implements the moss.Snapshot interface.
17type SnapshotWrapper struct {
18 m sync.Mutex
19 refCount uint64
20 ss Snapshot
21 closer io.Closer // Optional, may be nil.
22}
23
24// NewSnapshotWrapper creates a wrapper which provides ref-counting
25// around a snapshot. The snapshot (and an optional io.Closer) will

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected