mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 14:33:52 +00:00
13 lines
257 B
Go
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
|
|
}
|