sumo

package
v0.0.0-...-9f93016 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sumo

type Sumo struct {
	DSN         string
	Config      config.Config
	OnDBErr     func(err error) *zerolog.Event
	OnFetchErr  func(msg string, err error)
	GetPatterns func(db *gorm.DB) ([]dbmod.Pattern, error)
	GetFeedUrls func(db *gorm.DB) ([]string, error)
	FetchFeed   func(url string) (dbmod.Feed, error)
	TagFeed     func(feed dbmod.Feed, patterns []dbmod.Pattern) (dbmod.Feed, error)
	SaveFeed    func(db *gorm.DB, feed dbmod.Feed) error
	// contains filtered or unexported fields
}

func (*Sumo) New

func (this *Sumo) New() *Sumo

func (*Sumo) NewTest

func (this *Sumo) NewTest(realDb bool) (*Sumo, mytest.StubData)

func (*Sumo) UpdateFeeds

func (this *Sumo) UpdateFeeds() error

Jump to

Keyboard shortcuts

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