readeef: github.com/urandom/readeef Index | Files | Directories

package readeef

import "github.com/urandom/readeef"

Index

Package Files

feed_manager.go fs.go fs_files.go hubbub.go timeout_client.go

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 Uses

func NewFileSystem() (http.FileSystem, error)

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

func NewTimeoutClient Uses

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

func TimeoutDialer Uses

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

type FeedManager Uses

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

func NewFeedManager Uses

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

func (*FeedManager) AddFeed Uses

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

func (*FeedManager) AddFeedProcessor Uses

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

func (*FeedManager) DiscoverFeeds Uses

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

func (*FeedManager) RemoveFeed Uses

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

func (*FeedManager) SetHubbub Uses

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

func (*FeedManager) Start Uses

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

type Hubbub Uses

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

func NewHubbub Uses

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

func (*Hubbub) InitSubscriptions Uses

func (h *Hubbub) InitSubscriptions() error

func (*Hubbub) Subscribe Uses

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

func (*Hubbub) Unsubscribe Uses

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

type SubscriptionError Uses

type SubscriptionError struct {
    Subscription content.Subscription
    // contains filtered or unexported fields
}

Directories

PathSynopsis
api
api/fever
api/token
api/ttrss
cmd/readeef
cmd/readeef-client
cmd/readeef-static-locator
config
content
content/extract
content/monitor
content/processor
content/repo
content/repo/eventable
content/repo/logging
content/repo/mock_repoPackage mock_repo is a generated GoMock package.
content/repo/sql
content/repo/sql/db
content/repo/sql/db/base
content/repo/sql/db/postgres
content/repo/sql/db/sqlite3
content/search
content/thumbnail
feed
internal/legacy
log
parser
pool
popularity
web

Package readeef imports 18 packages (graph) and is imported by 3 packages. Updated 2018-11-27. Refresh now. Tools for package owners.