sync

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HideUnseedFeeds

func HideUnseedFeeds(atx tldb.Adapter, found []int) (int, error)

HideUnseedFeeds .

func UpdateFeed

func UpdateFeed(atx tldb.Adapter, rfeed tl.Feed) (int, bool, error)

UpdateFeed .

Types

type Command

type Command struct {
	DBURL      string
	Filenames  []string
	HideUnseen bool
	Adapter    tldb.Adapter
}

Command syncs a DMFR to a database.

func (*Command) Parse

func (cmd *Command) Parse(args []string) error

Parse command line options.

func (*Command) Run

func (cmd *Command) Run() error

Run this command.

type Options

type Options struct {
	Filenames  []string
	HideUnseen bool
}

Options sets options for a sync operation.

type Result

type Result struct {
	FeedIDs     []int
	Errors      []error
	HiddenCount int
}

Result is the result of a sync operation.

func MainSync

func MainSync(atx tldb.Adapter, opts Options) (Result, error)

MainSync .

Jump to

Keyboard shortcuts

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