mirror of
https://github.com/miniflux/v2.git
synced 2025-08-11 17:51:01 +00:00
31 lines
836 B
Go
31 lines
836 B
Go
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package rdf // import "miniflux.app/v2/internal/reader/rdf"
|
|
|
|
import (
|
|
"encoding/xml"
|
|
|
|
"miniflux.app/v2/internal/reader/dublincore"
|
|
)
|
|
|
|
// 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"`
|
|
}
|
|
|
|
type rdfChannel struct {
|
|
Title string `xml:"title"`
|
|
Link string `xml:"link"`
|
|
Description string `xml:"description"`
|
|
dublincore.DublinCoreChannelElement
|
|
}
|
|
|
|
type rdfItem struct {
|
|
Title string `xml:"http://purl.org/rss/1.0/ title"`
|
|
Link string `xml:"link"`
|
|
Description string `xml:"description"`
|
|
dublincore.DublinCoreItemElement
|
|
}
|