rss

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	meta.TypeMeta  `json:",inline"`
	meta.JobMeta   `json:"metadata,omitempty"`
	meta.StoreMeta `json:"store,omitempty"`

	Spec struct {
		Sources []Source `json:"sources,omitempty"`
	} `json:"spec,omitempty"`
	// contains filtered or unexported fields
}

func (*Job) Execute

func (j *Job) Execute(_ io.Reader) (io.Reader, error)

func (Job) Init

func (j Job) Init() error

func (*Job) SetStore

func (j *Job) SetStore(store meta.Store)

type Result

type Result struct {
	Items []*gofeed.Item `json:"items,omitempty"`
}

type Source

type Source struct {
	URL        string   `json:"url,omitempty"`
	Title      string   `json:"title,omitempty"`
	Categories []string `json:"categories,omitempty"`
	Languages  []string `json:"languages,omitempty"`
}

Jump to

Keyboard shortcuts

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