Update to Go 1.20 + run better align (#2927)
* chore(go): update go version to 1.20. Closes #2185 * chore(go): run better align against project To optimize struct field order. Closes #2870 * chore(go): update CI jobs to use Go 1.20 * fix(go): linter warnings for Go 1.20 update
This commit is contained in:
@@ -22,19 +22,20 @@ const (
|
||||
|
||||
// CollectedMetrics stores different collected + timestamped values.
|
||||
type CollectedMetrics struct {
|
||||
m sync.Mutex `json:"-"`
|
||||
|
||||
CPUUtilizations []TimestampedValue `json:"cpu"`
|
||||
RAMUtilizations []TimestampedValue `json:"memory"`
|
||||
DiskUtilizations []TimestampedValue `json:"disk"`
|
||||
|
||||
errorCount []TimestampedValue `json:"-"`
|
||||
lowestBitrate []TimestampedValue `json:"-"`
|
||||
medianBitrate []TimestampedValue `json:"-"`
|
||||
highestBitrate []TimestampedValue `json:"-"`
|
||||
streamHealthOverview *models.StreamHealthOverview
|
||||
|
||||
medianSegmentDownloadSeconds []TimestampedValue `json:"-"`
|
||||
maximumSegmentDownloadSeconds []TimestampedValue `json:"-"`
|
||||
DiskUtilizations []TimestampedValue `json:"disk"`
|
||||
|
||||
errorCount []TimestampedValue `json:"-"`
|
||||
lowestBitrate []TimestampedValue `json:"-"`
|
||||
medianBitrate []TimestampedValue `json:"-"`
|
||||
RAMUtilizations []TimestampedValue `json:"memory"`
|
||||
|
||||
CPUUtilizations []TimestampedValue `json:"cpu"`
|
||||
highestBitrate []TimestampedValue `json:"-"`
|
||||
|
||||
minimumSegmentDownloadSeconds []TimestampedValue `json:"-"`
|
||||
|
||||
minimumLatency []TimestampedValue `json:"-"`
|
||||
@@ -43,7 +44,7 @@ type CollectedMetrics struct {
|
||||
|
||||
qualityVariantChanges []TimestampedValue `json:"-"`
|
||||
|
||||
streamHealthOverview *models.StreamHealthOverview
|
||||
m sync.Mutex `json:"-"`
|
||||
}
|
||||
|
||||
// Metrics is the shared Metrics instance.
|
||||
|
||||
Reference in New Issue
Block a user