| 78 | } |
| 79 | |
| 80 | type Runner struct { |
| 81 | client *codersdk.Client |
| 82 | cfg Config |
| 83 | strategy requestModeStrategy |
| 84 | providerStrategy ProviderStrategy |
| 85 | |
| 86 | clock quartz.Clock |
| 87 | httpClient *http.Client |
| 88 | |
| 89 | requestCount int64 |
| 90 | successCount int64 |
| 91 | failureCount int64 |
| 92 | totalDuration time.Duration |
| 93 | totalTokens int64 |
| 94 | } |
| 95 | |
| 96 | func NewRunner(client *codersdk.Client, cfg Config) *Runner { |
| 97 | return &Runner{ |
nothing calls this directly
no outgoing calls
no test coverage detected