diff --git a/checker/report.go b/checker/report.go index 0dfd9f6..2ec52bb 100644 --- a/checker/report.go +++ b/checker/report.go @@ -5,6 +5,8 @@ import ( "fmt" "html/template" "strings" + + sdk "git.happydns.org/checker-sdk-go/checker" ) // reportData is the view-model fed to the HTML template. @@ -167,9 +169,9 @@ th{font-weight:600;color:#6b7280;background:#f9fafb} `)) -func (p *srvProvider) GetHTMLReport(raw json.RawMessage) (string, error) { +func (p *srvProvider) GetHTMLReport(ctx sdk.ReportContext) (string, error) { var d SRVData - if err := json.Unmarshal(raw, &d); err != nil { + if err := json.Unmarshal(ctx.Data(), &d); err != nil { return "", fmt.Errorf("failed to unmarshal SRV report: %w", err) }