poller

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2017 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewsContent

type NewsContent struct {
	Headline    string `json:"headline"`
	Content     string `json:"content"`
	Description string `json:"description"`
	Date        int64  `json:"date"` // Timestamp in seconds
	Author      string `json:"author"`
	Link        string `json:"link"`
}

type Poller

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

func NewPoller

func NewPoller(db *database.Database, mxClient *gomatrix.Client) *Poller

func (*Poller) StartPolling

func (p *Poller) StartPolling(feed config.Feed)

Jump to

Keyboard shortcuts

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