NewService returns a new instance of the commit service.
(gitCredsStore git.CredsStore, metricsServer *metrics.Server)
| 30 | |
| 31 | // NewService returns a new instance of the commit service. |
| 32 | func NewService(gitCredsStore git.CredsStore, metricsServer *metrics.Server) *Service { |
| 33 | return &Service{ |
| 34 | metricsServer: metricsServer, |
| 35 | repoClientFactory: NewRepoClientFactory(gitCredsStore, metricsServer), |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | type hydratorMetadataFile struct { |
| 40 | RepoURL string `json:"repoURL,omitempty"` |