Documentation
¶
Index ¶
- func Open(dbPath string) (*sql.DB, error)
- type HistoryEntry
- type HistoryRepo
- func (r *HistoryRepo) Delete(id int64) error
- func (r *HistoryRepo) FetchCandidates(limit int, dedupe bool, onlyFails bool) ([]HistoryEntry, error)
- func (r *HistoryRepo) Insert(entry HistoryEntry) (int64, error)
- func (r *HistoryRepo) Recent(limit int) ([]HistoryEntry, error)
- func (r *HistoryRepo) RecentInDir(dir string, limit int) ([]HistoryEntry, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HistoryEntry ¶
type HistoryRepo ¶
type HistoryRepo struct {
// contains filtered or unexported fields
}
func NewHistoryRepo ¶
func NewHistoryRepo(db *sql.DB) *HistoryRepo
func (*HistoryRepo) Delete ¶
func (r *HistoryRepo) Delete(id int64) error
func (*HistoryRepo) FetchCandidates ¶
func (r *HistoryRepo) FetchCandidates(limit int, dedupe bool, onlyFails bool) ([]HistoryEntry, error)
func (*HistoryRepo) Insert ¶
func (r *HistoryRepo) Insert(entry HistoryEntry) (int64, error)
func (*HistoryRepo) Recent ¶
func (r *HistoryRepo) Recent(limit int) ([]HistoryEntry, error)
func (*HistoryRepo) RecentInDir ¶
func (r *HistoryRepo) RecentInDir(dir string, limit int) ([]HistoryEntry, error)
Click to show internal directories.
Click to hide internal directories.