sync

package
v0.0.0-...-e474068 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchFeed

func FetchFeed(feed *models.Feed) error

FetchFeed fetches a feed and populates a Feed model.

Types

type Sync

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

Sync represents a syncing worker.

func NewSync

func NewSync(db *database.DB) *Sync

NewSync creates a new Sync object

func (*Sync) Start

func (s *Sync) Start()

Start a syncer

func (*Sync) Stop

func (s *Sync) Stop()

Stop a syncer

func (*Sync) SyncCategory

func (s *Sync) SyncCategory(category *models.Category, user *models.User) error

SyncCategory owned by user.

func (*Sync) SyncFeed

func (s *Sync) SyncFeed(feed *models.Feed, user *models.User) error

SyncFeed owned by user

func (*Sync) SyncUser

func (s *Sync) SyncUser(user *models.User) error

SyncUser sync's all feeds owned by user

func (*Sync) SyncUsers

func (s *Sync) SyncUsers()

SyncUsers sync's all user's feeds.

type SyncError

type SyncError interface {
	String() string
}

Jump to

Keyboard shortcuts

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