From 299aa6727025c4f888ec2a38b8945ed39159a99c Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 14 Apr 2026 11:37:13 +0300 Subject: docs: add godoc for exports (ask 04) Document Record, Open, CreateSchema, ResetRecords, ImportFromDir, LoadRecords in storage; Reporter and reporters in goprecords; Fields and Parse in recordline; Config and Run in daemon. Made-with: Cursor --- internal/daemon/daemon.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/daemon/daemon.go') diff --git a/internal/daemon/daemon.go b/internal/daemon/daemon.go index 876fc81..852051a 100644 --- a/internal/daemon/daemon.go +++ b/internal/daemon/daemon.go @@ -24,6 +24,7 @@ const ( defaultIdleTimeout = 2 * time.Minute ) +// Config holds settings for the HTTP report/upload daemon. type Config struct { StatsDir string Addr string @@ -107,6 +108,7 @@ func newDaemonHTTPServer(addr string, handler http.Handler, errLog *log.Logger) } } +// Run starts the HTTP server for cfg until ctx is canceled, then shuts down gracefully. func Run(ctx context.Context, cfg Config) error { if cfg.StatsDir == "" { return fmt.Errorf("stats directory is required") -- cgit v1.2.3