informatikapmf

package
v0.0.0-...-9191452 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) feedgen.Feeder

New creates a new Informatika PMF feed with passed options.

Types

type F

type F struct {
	Name        string
	IconURL     string
	URL         string
	UpdatedTime time.Time
	Content     []content.C
}

F stores info about a feed.

func (F) Entries

func (f F) Entries() []feedgen.Contenter

Entries reutrns the feed entries.

func (F) ID

func (f F) ID() string

ID returns id of the feed.

func (F) Icon

func (f F) Icon() string

Icon returns the icon url of the feed.

func (f F) Links() []feedgen.Link

Links returns the links for the feed.

func (F) Subtitle

func (f F) Subtitle() string

Subtitle returns the subtitle of the feed.

func (F) Title

func (f F) Title() string

Title returns the title of the feed.

func (F) Updated

func (f F) Updated() time.Time

Updated returns time when the feed was last updated.

type Option

type Option func(*F)

Option sets an option for feed

func WithContent

func WithContent(c []content.C) Option

WithContent sets the content to passed content

func WithDefaults

func WithDefaults() Option

WithDefaults sets default options for feed

func WithUpdated

func WithUpdated(t time.Time) Option

WithUpdated sets updated time to passed time

Jump to

Keyboard shortcuts

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