Documentation
¶
Index ¶
- type DB
- func (db *DB) BayesCleanupOldArticles()
- func (db *DB) BayesDecrementStats(feedGroup string, relevant bool)
- func (db *DB) BayesDecrementWord(feedGroup, word string, relevant bool)
- func (db *DB) BayesGetArticle(hash string) (feedGroup, title, label string, found bool)
- func (db *DB) BayesGetStats(feedGroup string) (int, int)
- func (db *DB) BayesGetWordCounts(feedGroup string) map[string][2]int
- func (db *DB) BayesIncrementStats(feedGroup string, relevant bool)
- func (db *DB) BayesSaveArticle(hash, feedGroup, title string)
- func (db *DB) BayesSetArticleLabel(hash, label string)
- func (db *DB) BayesUpsertWord(feedGroup, word string, relevant bool)
- func (db *DB) ConsumeDiscordNotificationQueue() []string
- func (db *DB) ConsumeSlackNotificationQueue() []string
- func (db *DB) ConsumeTelegramNotificationQueue() []string
- func (db *DB) Exec(query string, args ...any)
- func (db *DB) GetHTTPCache(url string) (etag, lastModified string, failCount int)
- func (db *DB) GetTelegramState(key string) string
- func (db *DB) HasWeatherBeenNotifiedToday(location string) bool
- func (db *DB) IncrementHTTPCacheFailCount(url string) int
- func (db *DB) IsRSSLinkInDB(link string) bool
- func (db *DB) Query(query string, args ...any) *sql.Rows
- func (db *DB) QueueDiscordNotification(message string)
- func (db *DB) QueueSlackNotification(message string)
- func (db *DB) QueueTelegramNotification(message string)
- func (db *DB) SetHTTPCache(url, etag, lastModified string)
- func (db *DB) SetTelegramState(key, value string)
- func (db *DB) SetWeatherNotified(location string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) BayesCleanupOldArticles ¶
func (db *DB) BayesCleanupOldArticles()
func (*DB) BayesDecrementStats ¶
func (*DB) BayesDecrementWord ¶
func (*DB) BayesGetArticle ¶
func (*DB) BayesGetWordCounts ¶
func (*DB) BayesIncrementStats ¶
func (*DB) BayesSaveArticle ¶
func (*DB) BayesSetArticleLabel ¶
func (*DB) BayesUpsertWord ¶
func (*DB) ConsumeDiscordNotificationQueue ¶
func (*DB) ConsumeSlackNotificationQueue ¶
func (*DB) ConsumeTelegramNotificationQueue ¶
func (*DB) GetHTTPCache ¶
func (*DB) GetTelegramState ¶
func (*DB) HasWeatherBeenNotifiedToday ¶
func (*DB) IncrementHTTPCacheFailCount ¶
func (*DB) IsRSSLinkInDB ¶
func (*DB) QueueDiscordNotification ¶
func (*DB) QueueSlackNotification ¶
func (*DB) QueueTelegramNotification ¶
func (*DB) SetHTTPCache ¶
func (*DB) SetTelegramState ¶
func (*DB) SetWeatherNotified ¶
Click to show internal directories.
Click to hide internal directories.