common

package
v0.0.0-...-2ffa0bc Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedConfig

type FeedConfig struct {
	Title           string            `json:"title,omitempty"`
	Description     string            `json:"description,omitempty"`
	Link            string            `json:"link,omitempty"`
	FeedLink        string            `json:"feedLink,omitempty"`
	Updated         string            `json:"updated,omitempty"`
	UpdatedParsed   *time.Time        `json:"updatedParsed,omitempty"`
	Published       string            `json:"published,omitempty"`
	PublishedParsed *time.Time        `json:"publishedParsed,omitempty"`
	Author          *gofeed.Person    `json:"author,omitempty"`
	Language        string            `json:"language,omitempty"`
	Image           *gofeed.Image     `json:"image,omitempty"`
	Copyright       string            `json:"copyright,omitempty"`
	Generator       string            `json:"generator,omitempty"`
	Categories      []string          `json:"categories,omitempty"`
	Custom          map[string]string `json:"custom,omitempty"`
	FeedType        string            `json:"feedType"`
	FeedVersion     string            `json:"feedVersion"`
}

type FeedItem

type FeedItem struct {
	FeedRequest FeedRequest `json:"feedRequest"`
	FeedConfig  FeedConfig  `json:"feedConfig"`
	Item        gofeed.Item `json:"feedItem"`
}

type FeedRequest

type FeedRequest struct {
	Url string `json:"url"`
}

type FetchedFeed

type FetchedFeed struct {
	FeedBody    string      `json:"feedBody"`
	FeedRequest FeedRequest `json:"feedRequest"`
}

type Storage

type Storage interface {
	Set(FeedItem) error
}

Jump to

Keyboard shortcuts

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