channeldb/migration: add generic CreateTLB migration

This commit creates a generic migration for creating top-level buckets.
This commit is contained in:
Conner Fromknecht
2020-05-21 15:36:26 -07:00
parent 24cce7a6ec
commit e80e21d1a8
4 changed files with 98 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
package migration
import "github.com/btcsuite/btclog"
// log is a logger that is initialized as disabled. This means the package will
// not perform any logging by default until a logger is set.
var log = btclog.Disabled
// UseLogger uses a specified Logger to output package logging info.
func UseLogger(logger btclog.Logger) {
log = logger
}