sqlite

package
v0.0.0-...-54413c5 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLiteBackend

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

func NewSQLiteBackend

func NewSQLiteBackend(cfg config.SQLiteBackendConfig) (*SQLiteBackend, error)

func (*SQLiteBackend) GetArticle

func (sb *SQLiteBackend) GetArticle(messageID string) (models.Article, error)

func (*SQLiteBackend) GetArticleByNumber

func (sb *SQLiteBackend) GetArticleByNumber(g *models.Group, num int) (models.Article, error)

func (*SQLiteBackend) GetArticleNumbers

func (sb *SQLiteBackend) GetArticleNumbers(g *models.Group, low, high int64) ([]int64, error)

func (*SQLiteBackend) GetArticlesByRange

func (sb *SQLiteBackend) GetArticlesByRange(g *models.Group, low, high int64) ([]models.Article, error)

func (*SQLiteBackend) GetArticlesCount

func (sb *SQLiteBackend) GetArticlesCount(g *models.Group) (int, error)

func (*SQLiteBackend) GetGroup

func (sb *SQLiteBackend) GetGroup(groupName string) (models.Group, error)

func (*SQLiteBackend) GetGroupHighWaterMark

func (sb *SQLiteBackend) GetGroupHighWaterMark(g *models.Group) (int, error)

func (*SQLiteBackend) GetGroupLowWaterMark

func (sb *SQLiteBackend) GetGroupLowWaterMark(g *models.Group) (int, error)

func (*SQLiteBackend) GetLastArticleByNum

func (sb *SQLiteBackend) GetLastArticleByNum(g *models.Group, a *models.Article) (models.Article, error)

func (*SQLiteBackend) GetNewArticlesSince

func (sb *SQLiteBackend) GetNewArticlesSince(timestamp int64) ([]string, error)

func (*SQLiteBackend) GetNewGroupsSince

func (sb *SQLiteBackend) GetNewGroupsSince(timestamp int64) ([]models.Group, error)

func (*SQLiteBackend) GetNewThreads

func (sb *SQLiteBackend) GetNewThreads(g *models.Group, perPage int, pageNum int) ([]int, error)

func (*SQLiteBackend) GetNextArticleByNum

func (sb *SQLiteBackend) GetNextArticleByNum(g *models.Group, a *models.Article) (models.Article, error)

func (*SQLiteBackend) GetThread

func (sb *SQLiteBackend) GetThread(g *models.Group, threadNum int) ([]int, error)

func (*SQLiteBackend) ListGroups

func (sb *SQLiteBackend) ListGroups() ([]models.Group, error)

func (*SQLiteBackend) ListGroupsByPattern

func (sb *SQLiteBackend) ListGroupsByPattern(pattern string) ([]models.Group, error)

func (*SQLiteBackend) SaveArticle

func (sb *SQLiteBackend) SaveArticle(a models.Article, groups []string) error

Jump to

Keyboard shortcuts

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