transfer

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.

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

func ToJson

func ToJson(feed *Feed) (string, error)

ToJson converts a Feed to JSON.

func XmlValue

func XmlValue(value string) (string, error)

XmlValue returns the value without namespace from the XML value.

Types

type Channel

type Channel struct {
	Url         string `json:"url"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Link        string `json:"link"`
}

Channel is a RSS channel.

type Feed

type Feed struct {
	Channel *Channel `json:"channel"`
	Items   []*Item  `json:"items"`
}

Feed is a RSS feed.

type Item

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

Item is a RSS item.

type Transfer

type Transfer interface {
	Analyze([]byte) (*Feed, error)
}

Raw is an interface for downloading raw data from a URL.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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