MCPcopy Create free account
hub / github.com/CPChain/chain / MemDatabase

Struct MemDatabase

database/memdb.go:15–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13var ErrKeyNotFound = errors.New("not found")
14
15type MemDatabase struct {
16 db map[string][]byte
17 rw sync.RWMutex
18}
19
20func NewMemDatabase() *MemDatabase {
21 return &MemDatabase{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected