NewLocalRepoCollection loads LocalRepos from DB and makes up collection
(db database.Storage)
| 98 | |
| 99 | // NewLocalRepoCollection loads LocalRepos from DB and makes up collection |
| 100 | func NewLocalRepoCollection(db database.Storage) *LocalRepoCollection { |
| 101 | return &LocalRepoCollection{ |
| 102 | db: db, |
| 103 | cache: make(map[string]*LocalRepo), |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | func (collection *LocalRepoCollection) search(filter func(*LocalRepo) bool, unique bool) []*LocalRepo { |
| 108 | result := []*LocalRepo(nil) |
no outgoing calls