mtsatellite/backend.go

11 lines
221 B
Go
Raw Normal View History

package main
type Backend interface {
Fetch(hash, key []byte) ([]byte, error)
InTransaction() bool
Store(hash, key, value []byte) (bool, error)
BeginTransaction() error
2014-08-03 14:52:24 +02:00
CommitTransaction() error
Shutdown() error
}