func Register() {
	valkeyrie.AddStore(store.BOLTDB, New)
}
Register registers boltdb to valkeyrie
package boltdb
import (
	"bytes"
	"encoding/binary"
	"errors"
	"os"
	"path/filepath"
	"sync"
	"sync/atomic"
	"time"
	"github.com/abronan/valkeyrie"
	"github.com/abronan/valkeyrie/store"
	"go.etcd.io/bbolt"
)
var (
	ErrMultipleEndpointsUnsupported = errors.New("boltdb supports one endpoint and should be a file path")
	ErrBoltBucketOptionMissing = errors.New("boltBucket config option missing")
)
const (
	filePerm os.FileMode = 0644
)
type BoltDB struct {
	client     *bbolt.DB
	boltBucket []byte
	dbIndex    uint64
	path       string
	timeout    time.Duration
	PersistConnection bool
	sync.Mutex
}
const (
	metadatalen      = 8
	transientTimeout = time.Duration(10) * time.Second
)