github.com/lbryio/lbcd@v0.22.119/claimtrie/merkletrie/repo.go (about) 1 package merkletrie 2 3 import ( 4 "io" 5 ) 6 7 // Repo defines APIs for PersistentTrie to access persistence layer. 8 type Repo interface { 9 Get(key []byte) ([]byte, io.Closer, error) 10 Set(key, value []byte) error 11 Close() error 12 Flush() error 13 }