Signed-off-by: CodeLingo Bot <bot@codelingo.io>
}
}
-// Return a list of all results.
+// List returns a list of all results.
func (rh *resultHistory) List() []*result {
rh.mu.Lock()
defer rh.mu.Unlock()
return rh.results[:]
}
-// Return a given result.
+// Get returns a given result.
func (rh *resultHistory) Get(id int64) *result {
rh.mu.Lock()
defer rh.mu.Unlock()
return sl.next.Log(kvs...)
}
-// Returns plaintext debug output for a probe.
+// DebugOutput returns plaintext debug output for a probe.
func DebugOutput(module *config.Module, logBuffer *bytes.Buffer, registry *prometheus.Registry) string {
buf := &bytes.Buffer{}
fmt.Fprintf(buf, "Logs for the probe:\n")