plugin

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.5.0

type Config struct {
	Parser    string
	Striphtml bool
	Formatter string
	Storage   string
	Database  string
}

func (*Config) CreateMod added in v0.5.0

func (c *Config) CreateMod() (*RssMod, error)

func (*Config) FillStruct added in v0.5.0

func (s *Config) FillStruct(m map[string]any) error

type Context

type Context struct {
	rss.Repository
	rss.Parser
	rss.Formatter
}

type ModFactory added in v0.5.0

type ModFactory struct {
	Context Context
}

func (ModFactory) Create added in v0.5.0

func (m ModFactory) Create(c any) (seras.Module, error)

type RssMod

type RssMod struct {
	Context
	// contains filtered or unexported fields
}

func New

func New(ctx Context) *RssMod

func (*RssMod) Name

func (mod *RssMod) Name() string

func (*RssMod) Start

func (mod *RssMod) Start(stream seras.Stream, actions seras.Actions) error

func (*RssMod) Stop

func (mod *RssMod) Stop()

Jump to

Keyboard shortcuts

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