tributary

package
v0.0.0-...-44d4e1f Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package tributary fetches a single feed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tributary

type Tributary interface {
	// Name returns a unique name to refer to the tributary.
	Name() string

	// Feeds sets a channel that is used to send out the latest updates to the
	// tributary.
	Feeds(chan<- riverjs.Feed)

	// Events sets a channel that is used to send out events for the tributary.
	Events(chan<- events.Event)

	// Start polling for updates.
	Start()

	// Stop polling.
	Stop()
}

A Tributary reports changes in a feed to the channels it is given.

func New

func New(store feed.Database, uri string, cacheTimeout time.Duration, mapping mapping.Mapping) Tributary

New returns a tributary watching the feed at the URI given.

Jump to

Keyboard shortcuts

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