NewRequestDeps creates a RequestDeps with the provided clients and configuration.
( apiHosts utils.APIHostResolver, version string, lockdownMode bool, repoAccessOpts []lockdown.RepoAccessOption, t translations.TranslationHelperFunc, contentWindowSize int, featureChecker inventory.FeatureFlagChecker, obsv observability.Exporters, )
| 280 | |
| 281 | // NewRequestDeps creates a RequestDeps with the provided clients and configuration. |
| 282 | func NewRequestDeps( |
| 283 | apiHosts utils.APIHostResolver, |
| 284 | version string, |
| 285 | lockdownMode bool, |
| 286 | repoAccessOpts []lockdown.RepoAccessOption, |
| 287 | t translations.TranslationHelperFunc, |
| 288 | contentWindowSize int, |
| 289 | featureChecker inventory.FeatureFlagChecker, |
| 290 | obsv observability.Exporters, |
| 291 | ) *RequestDeps { |
| 292 | return &RequestDeps{ |
| 293 | apiHosts: apiHosts, |
| 294 | version: version, |
| 295 | lockdownMode: lockdownMode, |
| 296 | RepoAccessOpts: repoAccessOpts, |
| 297 | T: t, |
| 298 | ContentWindowSize: contentWindowSize, |
| 299 | featureChecker: featureChecker, |
| 300 | obsv: obsv, |
| 301 | } |
| 302 | } |
| 303 | |
| 304 | // GetClient implements ToolDependencies. |
| 305 | func (d *RequestDeps) GetClient(ctx context.Context) (*gogithub.Client, error) { |