NewBaseDeps creates a BaseDeps with the provided clients and configuration.
( client *gogithub.Client, gqlClient *githubv4.Client, rawClient *raw.Client, repoAccessCache *lockdown.RepoAccessCache, t translations.TranslationHelperFunc, flags FeatureFlags, contentWindowSize int, featureChecker inventory.FeatureFlagChecker, obsv observability.Exporters, )
| 134 | |
| 135 | // NewBaseDeps creates a BaseDeps with the provided clients and configuration. |
| 136 | func NewBaseDeps( |
| 137 | client *gogithub.Client, |
| 138 | gqlClient *githubv4.Client, |
| 139 | rawClient *raw.Client, |
| 140 | repoAccessCache *lockdown.RepoAccessCache, |
| 141 | t translations.TranslationHelperFunc, |
| 142 | flags FeatureFlags, |
| 143 | contentWindowSize int, |
| 144 | featureChecker inventory.FeatureFlagChecker, |
| 145 | obsv observability.Exporters, |
| 146 | ) *BaseDeps { |
| 147 | return &BaseDeps{ |
| 148 | Client: client, |
| 149 | GQLClient: gqlClient, |
| 150 | RawClient: rawClient, |
| 151 | RepoAccessCache: repoAccessCache, |
| 152 | T: t, |
| 153 | Flags: flags, |
| 154 | ContentWindowSize: contentWindowSize, |
| 155 | featureChecker: featureChecker, |
| 156 | Obsv: obsv, |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | // GetClient implements ToolDependencies. |
| 161 | func (d BaseDeps) GetClient(_ context.Context) (*gogithub.Client, error) { |
no outgoing calls