refactor: update node interface

This commit is contained in:
Derrick Hammer 2024-01-09 08:20:19 -05:00
parent 18bc518dad
commit 58cc6153bd
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package interfaces
import (
"git.lumeweb.com/LumeWeb/libs5-go/config"
"git.lumeweb.com/LumeWeb/libs5-go/encoding"
"git.lumeweb.com/LumeWeb/libs5-go/metadata"
"git.lumeweb.com/LumeWeb/libs5-go/structs"
"git.lumeweb.com/LumeWeb/libs5-go/types"
bolt "go.etcd.io/bbolt"
@ -22,4 +23,6 @@ type Node interface {
GetCachedStorageLocations(hash *encoding.Multihash, kinds []types.StorageLocationType) (map[string]StorageLocation, error)
AddStorageLocation(hash *encoding.Multihash, nodeId *encoding.NodeId, location StorageLocation, message []byte, config *config.NodeConfig) error
NetworkId() string
DownloadBytesByHash(hash *encoding.Multihash) ([]byte, error)
GetMetadataByCID(cid *encoding.CID) (metadata.Metadata, error)
}