rdf.go 836 B

12345678910111213141516171819202122232425262728293031
  1. // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
  2. // SPDX-License-Identifier: Apache-2.0
  3. package rdf // import "miniflux.app/v2/internal/reader/rdf"
  4. import (
  5. "encoding/xml"
  6. "miniflux.app/v2/internal/reader/dublincore"
  7. )
  8. // rdf sepcs: https://web.resource.org/rss/1.0/spec
  9. type rdf struct {
  10. XMLName xml.Name `xml:"http://www.w3.org/1999/02/22-rdf-syntax-ns# RDF"`
  11. Channel rdfChannel `xml:"channel"`
  12. Items []rdfItem `xml:"item"`
  13. }
  14. type rdfChannel struct {
  15. Title string `xml:"title"`
  16. Link string `xml:"link"`
  17. Description string `xml:"description"`
  18. dublincore.DublinCoreChannelElement
  19. }
  20. type rdfItem struct {
  21. Title string `xml:"http://purl.org/rss/1.0/ title"`
  22. Link string `xml:"link"`
  23. Description string `xml:"description"`
  24. dublincore.DublinCoreItemElement
  25. }