Persistent is a wrapper of persistent storage for a bolt.DB file
| 80 | |
| 81 | // Persistent is a wrapper of persistent storage for a bolt.DB file |
| 82 | type 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 |
| 93 | func newPersistent(dbPath, chunkPath string, f *Features) (*Persistent, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected