Back to godoc.org
github.com/urandom/readeef

package readeef

v0.0.0 (ffd16d0)
Latest Go to latest
Published: 4 days ago | License: LGPL-3.0 | Module: github.com/urandom/readeef

Index

Package Files

Variables

var (
	ErrNotConfigured = errors.New("Hubbub callback URL is not set")
	ErrNoFeedHubLink = errors.New("Feed does not contain a hub link")
	ErrSubscribed    = errors.New("Feed already subscribed")
	ErrNotSubscribed = errors.New("Feed is not subscribed")
)
var (
	ErrNoFeed = errors.New("Feed not found")
)

func NewFileSystem

func NewFileSystem() (http.FileSystem, error)

NewFileSystem creates a new filesystem with pre-filled binary data.

func NewTimeoutClient

func NewTimeoutClient(connectTimeout time.Duration, readWriteTimeout time.Duration) *http.Client

func TimeoutDialer

func TimeoutDialer(ct time.Duration, rwt time.Duration) func(net, addr string) (c net.Conn, err error)

type FeedManager

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

func NewFeedManager

func NewFeedManager(repo repo.Feed, c config.Config, l log.Log) *FeedManager

func (*FeedManager) AddFeed

func (fm *FeedManager) AddFeed(feed content.Feed)
func (fm *FeedManager) AddFeedByLink(link string) (content.Feed, error)

func (*FeedManager) AddFeedProcessor

func (fm *FeedManager) AddFeedProcessor(p processor.Feed)

func (*FeedManager) DiscoverFeeds

func (fm *FeedManager) DiscoverFeeds(link string) ([]content.Feed, error)

func (*FeedManager) RemoveFeed

func (fm *FeedManager) RemoveFeed(feed content.Feed)
func (fm *FeedManager) RemoveFeedByLink(link string) (content.Feed, error)

func (*FeedManager) SetHubbub

func (fm *FeedManager) SetHubbub(hubbub *Hubbub)

func (*FeedManager) Start

func (fm *FeedManager) Start(ctx context.Context) error

type Hubbub

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

func NewHubbub

func NewHubbub(
	service repo.Service,
	c config.Config,
	l log.Log,
	endpoint string,
	feedManager *FeedManager,
) *Hubbub

func (*Hubbub) InitSubscriptions

func (h *Hubbub) InitSubscriptions() error

func (*Hubbub) Subscribe

func (h *Hubbub) Subscribe(f content.Feed) error

func (*Hubbub) Unsubscribe

func (h *Hubbub) Unsubscribe(f content.Feed) error

type SubscriptionError

type SubscriptionError struct {
	Subscription content.Subscription
	// contains filtered or unexported fields
}
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier