commands

package
v0.0.0-...-aebc479 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	App = kingpin.New("rss2go", "A rss watcher and mailer")
)

Functions

func PrintMemUsage

func PrintMemUsage()

PrintMemUsage outputs the current, total and OS memory being used. As well as the number of garage collection cycles completed.

func RegisterCommands

func RegisterCommands()

RegisterCommands registers all sub commands usable by Kingpin.

Types

type Daemon

type Daemon struct {
	Config    *config.Config
	CrawlChan chan *feedwatcher.FeedCrawlRequest
	MailChan  chan *mail.Request
	Feeds     map[string]*feedwatcher.FeedWatcher
	DBH       *db.Handle
	PollFeeds bool
	Logger    logrus.FieldLogger
	ShowMem   bool
	// contains filtered or unexported fields
}

Daemon encapsulates all the information about a Daemon instance.

func NewDaemon

func NewDaemon(cfg *config.Config) *Daemon

NewDaemon returns a pointer to a new Daemon struct with defaults set.

func (*Daemon) CreateAndStartFeedWatchers

func (d *Daemon) CreateAndStartFeedWatchers(feeds []*db.FeedInfo)

CreateAndStartFeedWatchers does exactly what it says

Jump to

Keyboard shortcuts

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