MCPcopy
hub / github.com/rclone/rclone / Persistent

Struct Persistent

backend/cache/storage_persistent.go:82–90  ·  view source on GitHub ↗

Persistent is a wrapper of persistent storage for a bolt.DB file

Source from the content-addressed store, hash-verified

80
81// Persistent is a wrapper of persistent storage for a bolt.DB file
82type Persistent struct {
83 dbPath string
84 dataPath string
85 open bool
86 db *bolt.DB
87 cleanupMux sync.Mutex
88 tempQueueMux sync.Mutex
89 features *Features
90}
91
92// newPersistent builds a new wrapper and connects to the bolt.DB file
93func newPersistent(dbPath, chunkPath string, f *Features) (*Persistent, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected