BaseDeps is the standard implementation of ToolDependencies for the local server. It stores pre-created clients. The remote server can create its own struct implementing ToolDependencies with different client creation strategies.
| 111 | // It stores pre-created clients. The remote server can create its own struct |
| 112 | // implementing ToolDependencies with different client creation strategies. |
| 113 | type BaseDeps struct { |
| 114 | // Pre-created clients |
| 115 | Client *gogithub.Client |
| 116 | GQLClient *githubv4.Client |
| 117 | RawClient *raw.Client |
| 118 | |
| 119 | // Static dependencies |
| 120 | RepoAccessCache *lockdown.RepoAccessCache |
| 121 | T translations.TranslationHelperFunc |
| 122 | Flags FeatureFlags |
| 123 | ContentWindowSize int |
| 124 | |
| 125 | // Feature flag checker for runtime checks |
| 126 | featureChecker inventory.FeatureFlagChecker |
| 127 | |
| 128 | // Observability exporters (includes logger) |
| 129 | Obsv observability.Exporters |
| 130 | } |
| 131 | |
| 132 | // Compile-time assertion to verify that BaseDeps implements the ToolDependencies interface. |
| 133 | var _ ToolDependencies = (*BaseDeps)(nil) |
nothing calls this directly
no outgoing calls
no test coverage detected