feeds

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateFeeds

func UpdateFeeds(feeds []*Feed)

Types

type Feed

type Feed struct {
	Id             int
	Repo           string
	Filter         string
	Name           string
	MessagePattern string
	// contains filtered or unexported fields
}

func NewFeed

func NewFeed(repo, filter, name, messagePattern string, database db.Database) (*Feed, error)

func (*Feed) ProcessFeed

func (f *Feed) ProcessFeed()

func (*Feed) SetCfg

func (f *Feed) SetCfg(cfg configs.FeedsConfig)

type Update

type Update struct {
	Type   UpdateType
	Repo   string
	Filter string

	Title   string
	Content string
	Link    string
}

type UpdateType

type UpdateType int
const (
	NewRelease UpdateType = iota
	Retag
	DescriptionChange
)

Jump to

Keyboard shortcuts

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