package caldav import ( "encoding/json" "fmt" "git.happydns.org/checker-dav/internal/dav" ) // GetHTMLReport implements sdk.CheckerHTMLReporter on *caldavProvider. // // The actual rendering is delegated to the shared renderer in internal/dav so // CalDAV and CardDAV produce visually identical reports; the only difference // is the title and the set of phases rendered (CalDAV includes Scheduling). func (p *caldavProvider) GetHTMLReport(raw json.RawMessage) (string, error) { var d dav.Observation if err := json.Unmarshal(raw, &d); err != nil { return "", fmt.Errorf("failed to unmarshal caldav report: %w", err) } d.Kind = dav.KindCalDAV return dav.RenderReport(&d, "CalDAV Server") }