newsfeed

package
v0.0.0-...-4be01c1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentType   = "newsfeed_content"
	ContentTypeId = 6
)

Variables

This section is empty.

Functions

func NewDetector

func NewDetector(creator core.Creator, options core.Options) core.Detector

Types

type Content

type Content struct {
	TitleValue       title       `json:"title"`
	DescriptionValue description `json:"description"`
	Link             string      `json:"link"`
	Published        time.Time   `json:"date_published"`
	GUID             string      `json:"guid"`
}

func (Content) Description

func (c Content) Description() notificationCore.ContentComponent

func (Content) Metadata

func (Content) Title

type Options

type Options struct {
	URL            string
	UpdateInterval time.Duration
	RetryTime      time.Duration
	TimeLimit      time.Duration
}

Jump to

Keyboard shortcuts

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