Documentation ¶
Index ¶
- type SQLiteBackend
- func (sb *SQLiteBackend) GetArticle(messageID string) (models.Article, error)
- func (sb *SQLiteBackend) GetArticleByNumber(g *models.Group, num int) (models.Article, error)
- func (sb *SQLiteBackend) GetArticleNumbers(g *models.Group, low, high int64) ([]int64, error)
- func (sb *SQLiteBackend) GetArticlesByRange(g *models.Group, low, high int64) ([]models.Article, error)
- func (sb *SQLiteBackend) GetArticlesCount(g *models.Group) (int, error)
- func (sb *SQLiteBackend) GetGroup(groupName string) (models.Group, error)
- func (sb *SQLiteBackend) GetGroupHighWaterMark(g *models.Group) (int, error)
- func (sb *SQLiteBackend) GetGroupLowWaterMark(g *models.Group) (int, error)
- func (sb *SQLiteBackend) GetLastArticleByNum(g *models.Group, a *models.Article) (models.Article, error)
- func (sb *SQLiteBackend) GetNewArticlesSince(timestamp int64) ([]string, error)
- func (sb *SQLiteBackend) GetNewGroupsSince(timestamp int64) ([]models.Group, error)
- func (sb *SQLiteBackend) GetNewThreads(g *models.Group, perPage int, pageNum int) ([]int, error)
- func (sb *SQLiteBackend) GetNextArticleByNum(g *models.Group, a *models.Article) (models.Article, error)
- func (sb *SQLiteBackend) GetThread(g *models.Group, threadNum int) ([]int, error)
- func (sb *SQLiteBackend) ListGroups() ([]models.Group, error)
- func (sb *SQLiteBackend) ListGroupsByPattern(pattern string) ([]models.Group, error)
- func (sb *SQLiteBackend) SaveArticle(a models.Article, groups []string) error
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 (*SQLiteBackend) GetArticleNumbers ¶
func (*SQLiteBackend) GetArticlesByRange ¶
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 (*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 (*SQLiteBackend) GetNextArticleByNum ¶
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
Click to show internal directories.
Click to hide internal directories.