rss

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RssFetcher

type RssFetcher struct {
	// contains filtered or unexported fields
}

func NewRssFetcher

func NewRssFetcher(di *dig.Container) *RssFetcher

func (*RssFetcher) AddHandler

func (w *RssFetcher) AddHandler(h RssHandler)

func (*RssFetcher) AddRss

func (w *RssFetcher) AddRss(name, url string)

func (*RssFetcher) AddRssMeta

func (w *RssFetcher) AddRssMeta(meta ...*vo.RssMeta)

func (*RssFetcher) Fetch

func (w *RssFetcher) Fetch()

func (*RssFetcher) FetchHandler

func (w *RssFetcher) FetchHandler(handlers ...RssHandler)

FetchHandler 顺序拉取

type RssHandler

type RssHandler func(meta *vo.RssMeta, body *vo.RssBody)

Jump to

Keyboard shortcuts

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