11 lines
221 B
Go
11 lines
221 B
Go
|
package main
|
||
|
|
||
|
type Backend interface {
|
||
|
Fetch(hash, key []byte) ([]byte, error)
|
||
|
InTransaction() bool
|
||
|
Store(hash, key, value []byte) (bool, error)
|
||
|
BeginTransaction() error
|
||
|
CommitTransAction() error
|
||
|
Shutdown() error
|
||
|
}
|