Documentation ¶
Index ¶
- func FromDbTime(s string) (time.Time, error)
- type Article
- type ArticleRecord
- type DB
- func (db *DB) ArticleCount() (uint, error)
- func (db *DB) Close() error
- func (db *DB) CreateNewSpool(startDate time.Time, prefix string) error
- func (db *DB) DoesGroupMetadataExist(gm *GroupMetadata) (bool, error)
- func (db *DB) DoesMessageIDExist(msgID string) (bool, error)
- func (db *DB) FetchNewGroups(dt time.Time) ([]string, error)
- func (db *DB) FetchNewsgroups() ([]string, error)
- func (db *DB) GetAllRowIDs(group string) ([]RowID, error)
- func (db *DB) GetArticleByMsgID(msgID string) (*Article, error)
- func (db *DB) GetArticleByRowID(rowID RowID) (*Article, error)
- func (db *DB) GetHeaderByMsgID(msgID string) (*Header, error)
- func (db *DB) GetHeaderByRowID(rowID RowID) (*Header, error)
- func (db *DB) GetPrefix() (string, error)
- func (db *DB) GetRowIDs(group string) ([]RowID, error)
- func (db *DB) GetStartDate() (*time.Time, error)
- func (db *DB) GroupArticleCount(group string) (int, error)
- func (db *DB) InsertArticleRecord(ar *ArticleRecord) error
- func (db *DB) InsertGroupMetadata(gm *GroupMetadata) error
- type GroupMetadata
- type Header
- type RowID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArticleRecord ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) ArticleCount ¶
func (*DB) DoesGroupMetadataExist ¶
func (db *DB) DoesGroupMetadataExist(gm *GroupMetadata) (bool, error)
func (*DB) FetchNewsgroups ¶
func (*DB) InsertArticleRecord ¶
func (db *DB) InsertArticleRecord(ar *ArticleRecord) error
func (*DB) InsertGroupMetadata ¶
func (db *DB) InsertGroupMetadata(gm *GroupMetadata) error
type GroupMetadata ¶
Click to show internal directories.
Click to hide internal directories.