MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / DB

Struct DB

driver/ipfs-synckv/db.go:152–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 return nil
151}
152
153type DB struct {
154 path string
155
156 cfg *config.LevelDBConfig
157
158 localDB *leveldb.DB
159 opts *opt.Options
160
161 iteratorOpts *opt.ReadOptions
162 syncOpts *opt.WriteOptions
163
164 cache *ristretto.Cache
165 filter filter.Filter
166 remoteShell *shell.Shell
167 encryptionKey []byte
168
169 ctx context.Context
170 ipfsDB *levelkv.LevelKV
171 ipfsLog *iflog.IpfsLog
172 ipfsNode *core.IpfsNode // Stores the IPFS node returned by iflog.CreateNode()
173 logger *zap.Logger
174
175 // For decentralized consistency
176 peerID peer.ID
177 versionMu sync.RWMutex
178 versions map[string]uint64 // Key to version counter
179}
180
181func (s *DB) GetStorageEngine() interface{} {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected