mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-11-19 08:30:21 +01:00
15 lines
363 B
Go
15 lines
363 B
Go
// Copyright 2014 by Sascha L. Teichmann
|
|
// Use of this source code is governed by the MIT license
|
|
// that can be found in the LICENSE file.
|
|
|
|
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
|
|
}
|