Fix godoc style comments (#356)

This commit is contained in:
Christian Muehlhaeuser
2020-11-13 00:14:59 +01:00
committed by GitHub
parent 8f921fbfde
commit 2e1f8d29b5
59 changed files with 147 additions and 147 deletions

View File

@@ -4,10 +4,10 @@ import (
"time"
)
// How often we poll for updates
// How often we poll for updates.
const metricsPollingInterval = 1 * time.Minute
// CollectedMetrics stores different collected + timestamped values
// CollectedMetrics stores different collected + timestamped values.
type CollectedMetrics struct {
CPUUtilizations []timestampedValue `json:"cpu"`
RAMUtilizations []timestampedValue `json:"memory"`
@@ -16,10 +16,10 @@ type CollectedMetrics struct {
Viewers []timestampedValue `json:"-"`
}
// Metrics is the shared Metrics instance
// Metrics is the shared Metrics instance.
var Metrics *CollectedMetrics
// Start will begin the metrics collection and alerting
// Start will begin the metrics collection and alerting.
func Start() {
Metrics = new(CollectedMetrics)
go startViewerCollectionMetrics()

View File

@@ -6,7 +6,7 @@ import (
"github.com/owncast/owncast/core"
)
// How often we poll for updates
// How often we poll for updates.
const viewerMetricsPollingInterval = 5 * time.Minute
func startViewerCollectionMetrics() {