Documentation ¶
Index ¶
- Constants
- Variables
- type Credentials
- type FetchSubArgs
- type Spool
- func (s *Spool) AddGroupMetadata(name string, dateCreated time.Time, daysRetained uint) error
- func (s *Spool) ArticleCount() (uint, error)
- func (s *Spool) ArticleNumToRowIDCached(group string, articleNum uint) (store.RowID, error)
- func (s *Spool) Close() error
- func (s *Spool) FetchSubreddit(args FetchSubArgs) error
- func (s *Spool) GetArticleByMsgID(group string, msgID string) (*data.Article, error)
- func (s *Spool) GetArticleByNGNum(group string, articleNum uint) (*data.Article, error)
- func (s *Spool) GetArticleNumsFromGroup(group string) ([]uint, error)
- func (s *Spool) GetHeaderByMsgID(msgID string) (*data.Header, error)
- func (s *Spool) GetHeaderByNGNum(group string, articleNum uint) (*data.Header, error)
- func (s *Spool) GetRowIDsFromCache(group string) ([]store.RowID, error)
- func (s *Spool) GroupArticleCount(group string) (int, error)
- func (s *Spool) Init(startDate time.Time, prefix string) error
- func (s *Spool) NewGroups(dt time.Time) ([]string, error)
- func (s *Spool) Newsgroups() ([]string, error)
- func (s *Spool) Prefix() (string, error)
- func (s *Spool) StartDate() (*time.Time, error)
Constants ¶
View Source
const ROWID_TTL = time.Duration(5) * time.Second
Variables ¶
View Source
var ErrArticleNumNotFound = errors.New("article not found")
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials = reddit.Credentials
type FetchSubArgs ¶
type Spool ¶
type Spool struct {
// contains filtered or unexported fields
}
func (*Spool) AddGroupMetadata ¶
func (*Spool) ArticleCount ¶
func (*Spool) ArticleNumToRowIDCached ¶
func (*Spool) FetchSubreddit ¶
func (s *Spool) FetchSubreddit(args FetchSubArgs) error
func (*Spool) GetArticleByMsgID ¶
func (*Spool) GetArticleByNGNum ¶
func (*Spool) GetArticleNumsFromGroup ¶
func (*Spool) GetHeaderByMsgID ¶
func (*Spool) GetHeaderByNGNum ¶
func (*Spool) GetRowIDsFromCache ¶
func (*Spool) Newsgroups ¶
Click to show internal directories.
Click to hide internal directories.