blob: f7513094a6726471721f58a93ea95f138ccf8438 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package memory
import (
"codeberg.org/lindenii/furgit/objectid"
)
// Store is one in-memory object store.
type Store struct {
algo objectid.Algorithm
objects map[objectid.ObjectID]storedObject
}
// New builds one empty in-memory store for one object format.
func New(algo objectid.Algorithm) *Store {
return &Store{
algo: algo,
objects: make(map[objectid.ObjectID]storedObject),
}
}
// Close closes the in-memory store.
func (store *Store) Close() error {
return nil
}
|