func NewBoltRepository(dbpath string) Repository {
	dbFile := filepath.Join(dbpath, BoltDBFile)
	db, err := bolt.Open(dbFile, 0600, nil)
	if err != nil {
		logrus.Error("Unable to open filepath ", dbFile, err)
		return nil
	}

	return &boltRepo{
		client: db,
	}
}
// NewBoltRepository initializes a new repository
NewBoltRepository initializes a new repository
// NewBoltRepository initializes a new repository
func NewBoltRepository(dbpath string) Repository {
	dbFile := filepath.Join(dbpath, BoltDBFile)
	db, err := bolt.Open(dbFile, 0600, nil)
	if err != nil {
		logrus.Error("Unable to open filepath ", dbFile, err)
		return nil
	}
	return &boltRepo{
		client: db,
	}
}
func NewBoltRepository ( dbpath string ) Repository { dbFile := filepath . Join ( dbpath , BoltDBFile ) db , err := bolt . Open ( dbFile , 0600 , nil ) if err != nil { logrus . Error ( " " , dbFile , err ) return nil } return & boltRepo { client : db , } }
NewBoltRepository initializes a new repository
NewBoltRepository initializes a new repository