miniflux/internal/reader/rdf/rdf.go

32 lines
836 B
Go
Raw Normal View History

// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
2017-11-21 03:34:11 +01:00
package rdf // import "miniflux.app/v2/internal/reader/rdf"
2017-11-21 03:34:11 +01:00
import (
"encoding/xml"
"miniflux.app/v2/internal/reader/dublincore"
2017-11-21 03:34:11 +01:00
)
// RDF sepcs: https://web.resource.org/rss/1.0/spec
type RDF struct {
XMLName xml.Name `xml:"http://www.w3.org/1999/02/22-rdf-syntax-ns# RDF"`
Channel RDFChannel `xml:"channel"`
Items []RDFItem `xml:"item"`
2017-11-21 03:34:11 +01:00
}
type RDFChannel struct {
Title string `xml:"title"`
Link string `xml:"link"`
Description string `xml:"description"`
dublincore.DublinCoreChannelElement
2017-11-21 03:34:11 +01:00
}
type RDFItem struct {
Title string `xml:"http://purl.org/rss/1.0/ title"`
2017-11-21 03:34:11 +01:00
Link string `xml:"link"`
Description string `xml:"description"`
dublincore.DublinCoreItemElement
2017-11-21 03:34:11 +01:00
}