2019-12-01 22:12:13 +01:00
|
|
|
package repository
|
|
|
|
|
2019-12-13 13:28:59 +01:00
|
|
|
import (
|
|
|
|
"github.com/pkg/errors"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
ErrNotFound = errors.New("not found")
|
|
|
|
)
|
|
|
|
|
2019-12-01 22:12:13 +01:00
|
|
|
type Repository struct {
|
|
|
|
boards BoardRepository
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *Repository) Boards() BoardRepository {
|
|
|
|
return r.boards
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRepository(boards BoardRepository) *Repository {
|
|
|
|
return &Repository{boards}
|
|
|
|
}
|