NewService constructs a metadata Service with the default GitHub fetcher.
(store *Store)
| 30 | |
| 31 | // NewService constructs a metadata Service with the default GitHub fetcher. |
| 32 | func NewService(store *Store) *Service { |
| 33 | return &Service{store: store, fetcher: defaultFetcher{}} |
| 34 | } |
| 35 | |
| 36 | // WithFetcher overrides the repository fetcher (used in tests). |
| 37 | func (svc *Service) WithFetcher(f RepoFetcher) *Service { |
no outgoing calls