MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / Get

Method Get

lib/wal/wal_db.go:23–33  ·  view source on GitHub ↗
(key []byte)

Source from the content-addressed store, hash-verified

21}
22
23func (w *Wal) Get(key []byte) error {
24 marshal, err := json.Marshal(&WriteMessage{
25 Key: key,
26 Type: 1,
27 Value: nil,
28 })
29 if err != nil {
30 return err
31 }
32 return w.Write(marshal)
33}
34
35func (w *Wal) Delete(key []byte) error {
36 marshal, err := json.Marshal(&WriteMessage{

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.95

Tested by

no test coverage detected