rss

package
v0.0.0-...-b724879 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Copyright (c) 2023 RFull Development This source code is managed under the MIT license. See LICENSE in the project root.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	Url         string `xml:"about,attr"`
	Title       string `xml:"title"`
	Link        string `xml:"link"`
	Description string `xml:"description"`
}

Channel is a RSS channel.

type Item

type Item struct {
	Title   string `xml:"title"`
	Link    string `xml:"link"`
	Creator string `xml:"creator"`
	Date    string `xml:"date"`
}

Item is a RSS item.

type Rdf

type Rdf struct {
	XMLName xml.Name `xml:"RDF"`
	Channel Channel  `xml:"channel"`
	Items   []Item   `xml:"item"`
}

Rdf is a RSS RDF.

type Rss

type Rss struct {
}

Rss is a instance of Rss.

func NewRss

func NewRss() *Rss

NewRss creates a new Rss instance.

func (*Rss) Analyze

func (instance *Rss) Analyze(raw []byte) (*transfer.Feed, error)

Analyze analyzes raw data and returns a Feed.

func (*Rss) ConvertChannel

func (instance *Rss) ConvertChannel(channel *Channel) (*transfer.Channel, error)

ConvertChannel convert to Channel.

func (*Rss) ConvertItem

func (instance *Rss) ConvertItem(item *Item) (*transfer.Item, error)

ConvertItem convert to Item.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL