tdb/transaction.go

15 lines
216 B
Go

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
}