parser

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "feed_parser_service"

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedParser

type FeedParser interface {
	Parse(ctx context.Context, feed models.Feed) ([]models.FeedItem, error)
}

type Plugin

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

func (*Plugin) Init

func (p *Plugin) Init(log *zap.Logger) error

func (*Plugin) Name

func (p *Plugin) Name() string

Name returns user-friendly plugin name

func (*Plugin) Parse

func (p *Plugin) Parse(ctx context.Context, feed models.Feed) ([]models.FeedItem, error)

Jump to

Keyboard shortcuts

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