go-ethereum/p2p/discover/portal_storage.go
grapebaba 5944d6589c feat:add find content
Signed-off-by: grapebaba <281165273@qq.com>
2023-11-03 21:56:14 +08:00

13 lines
257 B
Go

package discover
import "fmt"
var ContentNotFound = fmt.Errorf("content not found")
type Storage interface {
ContentId(contentKey []byte) []byte
Get(contentKey []byte, contentId []byte) ([]byte, error)
Put(contentKey []byte, content []byte) error
}