diff --git a/backend.go b/backend.go index 13e15c1..3165f79 100644 --- a/backend.go +++ b/backend.go @@ -4,17 +4,19 @@ package main -type Session interface { - Fetch(hash, key []byte) ([]byte, error) - InTransaction() bool - Store(hash, key, value []byte) (bool, error) - AllKeys(hash []byte) (chan []byte, int, error) - BeginTransaction() error - CommitTransaction() error - Close() error -} +type ( + Session interface { + Fetch(hash, key []byte) ([]byte, error) + InTransaction() bool + Store(hash, key, value []byte) (bool, error) + AllKeys(hash []byte) (chan []byte, int, error) + BeginTransaction() error + CommitTransaction() error + Close() error + } -type Backend interface { - NewSession() (Session, error) - Shutdown() error -} + Backend interface { + NewSession() (Session, error) + Shutdown() error + } +)