Files
coder/enterprise/wsproxy/appstatsreporter.go
T
Kyle Carberry 22e781eced chore: add /v2 to import module path (#9072)
* chore: add /v2 to import module path

go mod requires semantic versioning with versions greater than 1.x

This was a mechanical update by running:
```
go install github.com/marwan-at-work/mod/cmd/mod@latest
mod upgrade
```

Migrate generated files to import /v2

* Fix gen
2023-08-18 18:55:43 +00:00

22 lines
476 B
Go

package wsproxy
import (
"context"
"github.com/coder/coder/v2/coderd/workspaceapps"
"github.com/coder/coder/v2/enterprise/wsproxy/wsproxysdk"
)
var _ workspaceapps.StatsReporter = (*appStatsReporter)(nil)
type appStatsReporter struct {
Client *wsproxysdk.Client
}
func (r *appStatsReporter) Report(ctx context.Context, stats []workspaceapps.StatsReport) error {
err := r.Client.ReportAppStats(ctx, wsproxysdk.ReportAppStatsRequest{
Stats: stats,
})
return err
}