fleet/server/service/async
Roberto Dip ea6b59f179
upgrade Go version to 1.21.1 (#13877)
For #13715, this:

- Upgrades the Go version to `1.21.1`, infrastructure changes are
addressed separately at https://github.com/fleetdm/fleet/pull/13878
- Upgrades the linter version, as the current version doesn't work well
after the Go upgrade
- Fixes new linting errors (we now get errors for memory aliasing in
loops! 🎉 )

After this is merged people will need to:

1. Update their Go version. I use `gvm` and I did it like:

```
$ gvm install go1.21.1
$ gvm use go1.21.1 --default
```

2. Update the local version of `golangci-lint`:

```
$ go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.2
```

3. (optional) depending on your setup, you might need to re-install some
packages, for example:

```
# goimports to automatically import libraries
$  go install golang.org/x/tools/cmd/goimports@latest

# gopls for the language server
$ go install golang.org/x/tools/gopls@latest

# etc...
```
2023-09-13 15:59:35 -03:00
..
async_bench_test.go Implement async processing of hosts for label queries (#2288) 2021-11-01 14:13:16 -04:00
async_host_seen_test.go Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
async_host_seen.go Support per-task configuration for async host processing configuration (#5700) 2022-05-16 09:44:50 -04:00
async_label_test.go Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
async_label.go Support per-task configuration for async host processing configuration (#5700) 2022-05-16 09:44:50 -04:00
async_policy_test.go Prevent thundering herd when applying large number of policies on large number of hosts (#13552) 2023-08-31 10:58:50 -03:00
async_policy.go Prevent thundering herd when applying large number of policies on large number of hosts (#13552) 2023-08-31 10:58:50 -03:00
async_scheduled_query_stats_test.go Combine Schedules and Queries: API changes (#12778) 2023-07-24 20:17:20 -04:00
async_scheduled_query_stats.go Combine Schedules and Queries: API changes (#12778) 2023-07-24 20:17:20 -04:00
async_test.go upgrade Go version to 1.21.1 (#13877) 2023-09-13 15:59:35 -03:00
async.go Support async saving of scheduled query statistics (#7012) 2022-08-10 10:01:05 -04:00
collect_test.go Set authz checked when rate limiting device endpoints (#6702) 2022-07-18 14:22:49 -03:00
collect.go Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
doc.go Support async saving of hosts' last seen time (#5640) 2022-05-10 11:29:17 -04:00