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

	repo := boltRepo{
		client:     db,
		BucketName: "auth",
	}

	return &Repository{
		storageRepo: repo,
	}
}
// NewBoltRepository initializes a new BoltDb repository
NewBoltRepository initializes a new BoltDb repository
// NewBoltRepository initializes a new BoltDb repository
func NewBoltRepository(dbPath string) *Repository {
	p := filepath.Join(dbPath, BoltDBFile)
	db, err := bolt.Open(p, 0600, nil)
	if err != nil {
		logrus.Error("Unable to open filepath ", p, err)
		return nil
	}
	repo := boltRepo{
		client:     db,
		BucketName: "auth",
	}
	return &Repository{
		storageRepo: repo,
	}
}
func NewBoltRepository ( dbPath string ) * Repository { p := filepath . Join ( dbPath , BoltDBFile ) db , err := bolt . Open ( p , 0600 , nil ) if err != nil { logrus . Error ( " " , p , err ) return nil } repo := boltRepo { client : db , BucketName : " " , } return & Repository { storageRepo : repo , } }
NewBoltRepository initializes a new BoltDb repository
NewBoltRepository initializes a new BoltDb repository