tdb/transaction.go

15 lines
216 B
Go
Raw Normal View History

2020-04-16 04:53:50 +00:00
package tdb
// import (
// bolt "go.etcd.io/bbolt"
// )
// type Tx is defined in internals
type Transaction func(*Tx) error
type Transactable interface {
ReadTx(Transaction) error
WriteTx(Transaction) error
}