NewRemoteRepoCollection loads RemoteRepos from DB and makes up collection
(db database.Storage)
| 885 | |
| 886 | // NewRemoteRepoCollection loads RemoteRepos from DB and makes up collection |
| 887 | func NewRemoteRepoCollection(db database.Storage) *RemoteRepoCollection { |
| 888 | return &RemoteRepoCollection{ |
| 889 | db: db, |
| 890 | cache: make(map[string]*RemoteRepo), |
| 891 | } |
| 892 | } |
| 893 | |
| 894 | func (collection *RemoteRepoCollection) search(filter func(*RemoteRepo) bool, unique bool) []*RemoteRepo { |
| 895 | result := []*RemoteRepo(nil) |
no outgoing calls