mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-01-11 09:20:17 +01:00
Use a type block for backend interfaces.
This commit is contained in:
parent
efe6c6abb8
commit
37eb407572
@ -4,7 +4,8 @@
|
||||
|
||||
package main
|
||||
|
||||
type Session interface {
|
||||
type (
|
||||
Session interface {
|
||||
Fetch(hash, key []byte) ([]byte, error)
|
||||
InTransaction() bool
|
||||
Store(hash, key, value []byte) (bool, error)
|
||||
@ -14,7 +15,8 @@ type Session interface {
|
||||
Close() error
|
||||
}
|
||||
|
||||
type Backend interface {
|
||||
Backend interface {
|
||||
NewSession() (Session, error)
|
||||
Shutdown() error
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user